@firestitch/form 9.7.7 → 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.
- package/app/components/form-dialog-actions/form-dialog-actions.component.d.ts +3 -0
- package/app/directives/form/form.directive.d.ts +3 -0
- package/app/directives/form-dialog-close.directive.d.ts +3 -0
- package/app/directives/submit-button.directive.d.ts +3 -0
- package/app/directives/validators/compare.directive.d.ts +3 -0
- package/app/directives/validators/control.directive.d.ts +3 -0
- package/app/directives/validators/daterange.directive.d.ts +3 -0
- package/app/directives/validators/email.directive.d.ts +3 -0
- package/app/directives/validators/emails.directive.d.ts +3 -0
- package/app/directives/validators/function.directive.d.ts +3 -0
- package/app/directives/validators/greater.directive.d.ts +3 -0
- package/app/directives/validators/integer.directive.d.ts +3 -0
- package/app/directives/validators/lesser.directive.d.ts +3 -0
- package/app/directives/validators/max.directive.d.ts +3 -0
- package/app/directives/validators/maxlength.directive.d.ts +3 -0
- package/app/directives/validators/min.directive.d.ts +3 -0
- package/app/directives/validators/minlength.directive.d.ts +3 -0
- package/app/directives/validators/numeric.directive.d.ts +3 -0
- package/app/directives/validators/pattern.directive.d.ts +3 -0
- package/app/directives/validators/phone.directive.d.ts +3 -0
- package/app/directives/validators/required.directive.d.ts +3 -0
- package/app/directives/validators/url.directive.d.ts +3 -0
- package/app/directives/validators/validate.directive.d.ts +3 -0
- package/app/fs-form.module.d.ts +31 -0
- package/app/guards/form-deactivate.guard.d.ts +3 -0
- package/app/services/fsform.service.d.ts +3 -0
- package/bundles/firestitch-form.umd.js +1113 -984
- package/bundles/firestitch-form.umd.js.map +1 -1
- package/esm2015/app/components/form-dialog-actions/form-dialog-actions.component.js +33 -40
- package/esm2015/app/consts/error-messages.const.js +1 -1
- package/esm2015/app/directives/form/form.directive.js +87 -133
- package/esm2015/app/directives/form-dialog-close.directive.js +18 -20
- package/esm2015/app/directives/submit-button.directive.js +28 -35
- package/esm2015/app/directives/validators/compare.directive.js +22 -22
- package/esm2015/app/directives/validators/control.directive.js +51 -67
- package/esm2015/app/directives/validators/daterange.directive.js +22 -22
- package/esm2015/app/directives/validators/email.directive.js +22 -22
- package/esm2015/app/directives/validators/emails.directive.js +22 -22
- package/esm2015/app/directives/validators/function.directive.js +21 -21
- package/esm2015/app/directives/validators/greater.directive.js +22 -22
- package/esm2015/app/directives/validators/integer.directive.js +22 -22
- package/esm2015/app/directives/validators/lesser.directive.js +22 -22
- package/esm2015/app/directives/validators/max.directive.js +22 -22
- package/esm2015/app/directives/validators/maxlength.directive.js +22 -22
- package/esm2015/app/directives/validators/min.directive.js +22 -22
- package/esm2015/app/directives/validators/minlength.directive.js +22 -22
- package/esm2015/app/directives/validators/numeric.directive.js +22 -22
- package/esm2015/app/directives/validators/pattern.directive.js +22 -22
- package/esm2015/app/directives/validators/phone.directive.js +22 -22
- package/esm2015/app/directives/validators/required.directive.js +26 -28
- package/esm2015/app/directives/validators/url.directive.js +24 -26
- package/esm2015/app/directives/validators/validate.directive.js +23 -21
- package/esm2015/app/enums/confirm-result.js +1 -1
- package/esm2015/app/enums/form-status.js +1 -1
- package/esm2015/app/fs-form.module.js +128 -69
- package/esm2015/app/guards/form-deactivate.guard.js +11 -15
- package/esm2015/app/helpers/confirm-result-continue.js +1 -1
- package/esm2015/app/helpers/confirm-unsaved.js +1 -1
- package/esm2015/app/helpers/get-form-errors.js +1 -1
- package/esm2015/app/helpers/index.js +1 -1
- package/esm2015/app/helpers/is-enabled.js +1 -1
- package/esm2015/app/interfaces/async-validator.js +2 -1
- package/esm2015/app/interfaces/confirm-config.js +2 -1
- package/esm2015/app/interfaces/confirm-tab-group.js +2 -1
- package/esm2015/app/interfaces/form-deactivate.js +2 -1
- package/esm2015/app/interfaces/index.js +5 -1
- package/esm2015/app/interfaces/submit-event.js +2 -1
- package/esm2015/app/interfaces/submitted-event.js +2 -1
- package/esm2015/app/interfaces/validator.js +2 -1
- package/esm2015/app/providers/validate-messages.provider.js +1 -1
- package/esm2015/app/services/fsform.service.js +11 -12
- package/esm2015/app/validators/validators.js +1 -1
- package/esm2015/firestitch-form.js +1 -23
- package/esm2015/public_api.js +22 -1
- package/fesm2015/firestitch-form.js +711 -718
- package/fesm2015/firestitch-form.js.map +1 -1
- package/firestitch-form.d.ts +1 -22
- package/package.json +7 -8
- package/public_api.d.ts +21 -0
- package/styles.scss +4 -4
- package/bundles/firestitch-form.umd.min.js +0 -16
- package/bundles/firestitch-form.umd.min.js.map +0 -1
- package/esm5/app/components/form-dialog-actions/form-dialog-actions.component.js +0 -96
- package/esm5/app/consts/error-messages.const.js +0 -20
- package/esm5/app/directives/form/form.directive.js +0 -706
- package/esm5/app/directives/form-dialog-close.directive.js +0 -34
- package/esm5/app/directives/submit-button.directive.js +0 -144
- package/esm5/app/directives/validators/compare.directive.js +0 -60
- package/esm5/app/directives/validators/control.directive.js +0 -279
- package/esm5/app/directives/validators/daterange.directive.js +0 -50
- package/esm5/app/directives/validators/email.directive.js +0 -50
- package/esm5/app/directives/validators/emails.directive.js +0 -50
- package/esm5/app/directives/validators/function.directive.js +0 -36
- package/esm5/app/directives/validators/greater.directive.js +0 -49
- package/esm5/app/directives/validators/integer.directive.js +0 -50
- package/esm5/app/directives/validators/lesser.directive.js +0 -49
- package/esm5/app/directives/validators/max.directive.js +0 -45
- package/esm5/app/directives/validators/maxlength.directive.js +0 -44
- package/esm5/app/directives/validators/min.directive.js +0 -45
- package/esm5/app/directives/validators/minlength.directive.js +0 -44
- package/esm5/app/directives/validators/numeric.directive.js +0 -50
- package/esm5/app/directives/validators/pattern.directive.js +0 -44
- package/esm5/app/directives/validators/phone.directive.js +0 -50
- package/esm5/app/directives/validators/required.directive.js +0 -88
- package/esm5/app/directives/validators/url.directive.js +0 -56
- package/esm5/app/directives/validators/validate.directive.js +0 -36
- package/esm5/app/enums/confirm-result.js +0 -9
- package/esm5/app/enums/form-status.js +0 -11
- package/esm5/app/fs-form.module.js +0 -110
- package/esm5/app/guards/form-deactivate.guard.js +0 -45
- package/esm5/app/helpers/confirm-result-continue.js +0 -5
- package/esm5/app/helpers/confirm-unsaved.js +0 -70
- package/esm5/app/helpers/get-form-errors.js +0 -28
- package/esm5/app/helpers/index.js +0 -3
- package/esm5/app/helpers/is-enabled.js +0 -4
- package/esm5/app/interfaces/async-validator.js +0 -1
- package/esm5/app/interfaces/confirm-config.js +0 -1
- package/esm5/app/interfaces/confirm-tab-group.js +0 -1
- package/esm5/app/interfaces/form-deactivate.js +0 -1
- package/esm5/app/interfaces/index.js +0 -1
- package/esm5/app/interfaces/submit-event.js +0 -1
- package/esm5/app/interfaces/submitted-event.js +0 -1
- package/esm5/app/interfaces/validator.js +0 -1
- package/esm5/app/providers/validate-messages.provider.js +0 -12
- package/esm5/app/services/fsform.service.js +0 -27
- package/esm5/app/validators/validators.js +0 -102
- package/esm5/firestitch-form.js +0 -27
- package/esm5/public_api.js +0 -14
- package/fesm5/firestitch-form.js +0 -2396
- package/fesm5/firestitch-form.js.map +0 -1
- package/firestitch-form.metadata.json +0 -1
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { HostBinding, HostListener,
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Directive, HostBinding, HostListener, Injectable, EventEmitter, QueryList, Inject, Optional, Input, Output, ContentChildren, InjectionToken, Self, Host, Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
|
|
3
|
+
import * as i4 from '@angular/common';
|
|
3
4
|
import { CommonModule } from '@angular/common';
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
5
|
+
import * as i1 from '@angular/forms';
|
|
6
|
+
import { FormGroup, NgForm, Validators, FormsModule } from '@angular/forms';
|
|
7
|
+
import * as i1$1 from '@angular/material/button';
|
|
8
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
9
|
+
import * as i2$1 from '@angular/material/dialog';
|
|
6
10
|
import { MatDialogRef, MatDialogModule } from '@angular/material/dialog';
|
|
7
11
|
import { ErrorStateMatcher, ShowOnDirtyErrorStateMatcher } from '@angular/material/core';
|
|
8
12
|
import { MatTabGroup } from '@angular/material/tabs';
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
13
|
+
import * as i2 from '@firestitch/message';
|
|
14
|
+
import { MessageMode } from '@firestitch/message';
|
|
15
|
+
import * as i3 from '@firestitch/prompt';
|
|
11
16
|
import { guid, email, isEmpty, isNumeric, phone, url } from '@firestitch/common';
|
|
17
|
+
import * as i6 from '@firestitch/drawer';
|
|
12
18
|
import { DrawerRef } from '@firestitch/drawer';
|
|
13
19
|
import { Observable, Subject, BehaviorSubject, of, isObservable, throwError, fromEvent, iif, defer, from } from 'rxjs';
|
|
14
20
|
import { first, filter, map, take, mergeMap, tap, switchMap, catchError, takeUntil, delay, startWith } from 'rxjs/operators';
|
|
@@ -91,7 +97,7 @@ function confirmUnsaved(form, prompt) {
|
|
|
91
97
|
});
|
|
92
98
|
}
|
|
93
99
|
|
|
94
|
-
|
|
100
|
+
class FsFormDialogCloseDirective {
|
|
95
101
|
constructor() {
|
|
96
102
|
this.clicked$ = new Subject();
|
|
97
103
|
this.registered = false;
|
|
@@ -103,24 +109,23 @@ let FsFormDialogCloseDirective = class FsFormDialogCloseDirective {
|
|
|
103
109
|
ngOnDestroy() {
|
|
104
110
|
this.clicked$.complete();
|
|
105
111
|
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
], FsFormDialogCloseDirective);
|
|
112
|
+
}
|
|
113
|
+
FsFormDialogCloseDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormDialogCloseDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
114
|
+
FsFormDialogCloseDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsFormDialogCloseDirective, selector: "[fsFormDialogClose],[fs-form-dialog-close]", host: { listeners: { "click": "click($event.target)" }, properties: { "attr.type": "this.type" } }, ngImport: i0 });
|
|
115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormDialogCloseDirective, decorators: [{
|
|
116
|
+
type: Directive,
|
|
117
|
+
args: [{
|
|
118
|
+
selector: '[fsFormDialogClose],[fs-form-dialog-close]'
|
|
119
|
+
}]
|
|
120
|
+
}], propDecorators: { type: [{
|
|
121
|
+
type: HostBinding,
|
|
122
|
+
args: ['attr.type']
|
|
123
|
+
}], click: [{
|
|
124
|
+
type: HostListener,
|
|
125
|
+
args: ['click', ['$event.target']]
|
|
126
|
+
}] } });
|
|
122
127
|
|
|
123
|
-
|
|
128
|
+
class FsForm {
|
|
124
129
|
constructor() {
|
|
125
130
|
this._eventBus = new Subject();
|
|
126
131
|
}
|
|
@@ -131,14 +136,15 @@ let FsForm = class FsForm {
|
|
|
131
136
|
return this._eventBus.asObservable()
|
|
132
137
|
.pipe(filter(event => event.key === key), map(event => event.data));
|
|
133
138
|
}
|
|
134
|
-
}
|
|
135
|
-
FsForm.ɵ
|
|
136
|
-
FsForm =
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
]
|
|
139
|
+
}
|
|
140
|
+
FsForm.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsForm, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
141
|
+
FsForm.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsForm, providedIn: 'root' });
|
|
142
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsForm, decorators: [{
|
|
143
|
+
type: Injectable,
|
|
144
|
+
args: [{
|
|
145
|
+
providedIn: 'root',
|
|
146
|
+
}]
|
|
147
|
+
}], ctorParameters: function () { return []; } });
|
|
142
148
|
|
|
143
149
|
var FormStatus;
|
|
144
150
|
(function (FormStatus) {
|
|
@@ -179,7 +185,7 @@ function getFormErrors(control, key) {
|
|
|
179
185
|
return errors;
|
|
180
186
|
}
|
|
181
187
|
|
|
182
|
-
|
|
188
|
+
class FsFormDirective {
|
|
183
189
|
constructor(ngForm, _form, _element, _message, _prompt, _ngZone, _dialogRef, _drawerRef) {
|
|
184
190
|
this.ngForm = ngForm;
|
|
185
191
|
this._form = _form;
|
|
@@ -697,133 +703,82 @@ let FsFormDirective = class FsFormDirective {
|
|
|
697
703
|
console.groupEnd();
|
|
698
704
|
this._completeSubmit(false, null);
|
|
699
705
|
}
|
|
700
|
-
}
|
|
701
|
-
FsFormDirective
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
]
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
],
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
],
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
],
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
Output('fsForm'),
|
|
777
|
-
__metadata("design:type", EventEmitter)
|
|
778
|
-
], FsFormDirective.prototype, "submitEvent", void 0);
|
|
779
|
-
__decorate([
|
|
780
|
-
Output(),
|
|
781
|
-
__metadata("design:type", EventEmitter)
|
|
782
|
-
], FsFormDirective.prototype, "invalid", void 0);
|
|
783
|
-
__decorate([
|
|
784
|
-
Output(),
|
|
785
|
-
__metadata("design:type", EventEmitter)
|
|
786
|
-
], FsFormDirective.prototype, "valid", void 0);
|
|
787
|
-
__decorate([
|
|
788
|
-
Output(),
|
|
789
|
-
__metadata("design:type", EventEmitter)
|
|
790
|
-
], FsFormDirective.prototype, "submitted", void 0);
|
|
791
|
-
__decorate([
|
|
792
|
-
Output(),
|
|
793
|
-
__metadata("design:type", EventEmitter)
|
|
794
|
-
], FsFormDirective.prototype, "reseted", void 0);
|
|
795
|
-
__decorate([
|
|
796
|
-
Output(),
|
|
797
|
-
__metadata("design:type", EventEmitter)
|
|
798
|
-
], FsFormDirective.prototype, "cleared", void 0);
|
|
799
|
-
__decorate([
|
|
800
|
-
HostBinding('class.fs-form'),
|
|
801
|
-
__metadata("design:type", Object)
|
|
802
|
-
], FsFormDirective.prototype, "fsformClass", void 0);
|
|
803
|
-
__decorate([
|
|
804
|
-
ContentChildren(FsFormDialogCloseDirective, { descendants: true }),
|
|
805
|
-
__metadata("design:type", QueryList)
|
|
806
|
-
], FsFormDirective.prototype, "formDialogClose", void 0);
|
|
807
|
-
__decorate([
|
|
808
|
-
ContentChildren(MatTabGroup, { descendants: true }),
|
|
809
|
-
__metadata("design:type", QueryList)
|
|
810
|
-
], FsFormDirective.prototype, "_tabGroups", void 0);
|
|
811
|
-
FsFormDirective = __decorate([
|
|
812
|
-
Directive({
|
|
813
|
-
selector: '[fsForm]',
|
|
814
|
-
}),
|
|
815
|
-
__param(0, Inject(NgForm)),
|
|
816
|
-
__param(6, Optional()), __param(6, Inject(MatDialogRef)),
|
|
817
|
-
__param(7, Optional()), __param(7, Inject(DrawerRef)),
|
|
818
|
-
__metadata("design:paramtypes", [NgForm,
|
|
819
|
-
FsForm,
|
|
820
|
-
ElementRef,
|
|
821
|
-
FsMessage,
|
|
822
|
-
FsPrompt,
|
|
823
|
-
NgZone,
|
|
824
|
-
MatDialogRef,
|
|
825
|
-
DrawerRef])
|
|
826
|
-
], FsFormDirective);
|
|
706
|
+
}
|
|
707
|
+
FsFormDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormDirective, deps: [{ token: NgForm }, { token: FsForm }, { token: i0.ElementRef }, { token: i2.FsMessage }, { token: i3.FsPrompt }, { token: i0.NgZone }, { token: MatDialogRef, optional: true }, { token: DrawerRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
708
|
+
FsFormDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsFormDirective, selector: "[fsForm]", inputs: { 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" }, outputs: { submitEvent: "fsForm", invalid: "invalid", valid: "valid", submitted: "submitted", reseted: "reseted", cleared: "cleared" }, host: { properties: { "class.fs-form": "this.fsformClass" } }, queries: [{ propertyName: "formDialogClose", predicate: FsFormDialogCloseDirective, descendants: true }, { propertyName: "_tabGroups", predicate: MatTabGroup, descendants: true }], usesOnChanges: true, ngImport: i0 });
|
|
709
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormDirective, decorators: [{
|
|
710
|
+
type: Directive,
|
|
711
|
+
args: [{
|
|
712
|
+
selector: '[fsForm]',
|
|
713
|
+
}]
|
|
714
|
+
}], ctorParameters: function () { return [{ type: i1.NgForm, decorators: [{
|
|
715
|
+
type: Inject,
|
|
716
|
+
args: [NgForm]
|
|
717
|
+
}] }, { type: FsForm }, { type: i0.ElementRef }, { type: i2.FsMessage }, { type: i3.FsPrompt }, { type: i0.NgZone }, { type: i2$1.MatDialogRef, decorators: [{
|
|
718
|
+
type: Optional
|
|
719
|
+
}, {
|
|
720
|
+
type: Inject,
|
|
721
|
+
args: [MatDialogRef]
|
|
722
|
+
}] }, { type: i6.DrawerRef, decorators: [{
|
|
723
|
+
type: Optional
|
|
724
|
+
}, {
|
|
725
|
+
type: Inject,
|
|
726
|
+
args: [DrawerRef]
|
|
727
|
+
}] }]; }, propDecorators: { wrapperSelector: [{
|
|
728
|
+
type: Input
|
|
729
|
+
}], messageSelector: [{
|
|
730
|
+
type: Input
|
|
731
|
+
}], hintSelector: [{
|
|
732
|
+
type: Input
|
|
733
|
+
}], labelSelector: [{
|
|
734
|
+
type: Input
|
|
735
|
+
}], autocomplete: [{
|
|
736
|
+
type: Input
|
|
737
|
+
}], shortcuts: [{
|
|
738
|
+
type: Input
|
|
739
|
+
}], confirm: [{
|
|
740
|
+
type: Input
|
|
741
|
+
}], confirmDialog: [{
|
|
742
|
+
type: Input
|
|
743
|
+
}], confirmDrawer: [{
|
|
744
|
+
type: Input
|
|
745
|
+
}], confirmBrowser: [{
|
|
746
|
+
type: Input
|
|
747
|
+
}], confirmTabs: [{
|
|
748
|
+
type: Input
|
|
749
|
+
}], dirtySubmitButton: [{
|
|
750
|
+
type: Input
|
|
751
|
+
}], submit: [{
|
|
752
|
+
type: Input
|
|
753
|
+
}], successDelay: [{
|
|
754
|
+
type: Input
|
|
755
|
+
}], errorDelay: [{
|
|
756
|
+
type: Input
|
|
757
|
+
}], tabGroup: [{
|
|
758
|
+
type: Input
|
|
759
|
+
}], submitEvent: [{
|
|
760
|
+
type: Output,
|
|
761
|
+
args: ['fsForm']
|
|
762
|
+
}], invalid: [{
|
|
763
|
+
type: Output
|
|
764
|
+
}], valid: [{
|
|
765
|
+
type: Output
|
|
766
|
+
}], submitted: [{
|
|
767
|
+
type: Output
|
|
768
|
+
}], reseted: [{
|
|
769
|
+
type: Output
|
|
770
|
+
}], cleared: [{
|
|
771
|
+
type: Output
|
|
772
|
+
}], fsformClass: [{
|
|
773
|
+
type: HostBinding,
|
|
774
|
+
args: ['class.fs-form']
|
|
775
|
+
}], formDialogClose: [{
|
|
776
|
+
type: ContentChildren,
|
|
777
|
+
args: [FsFormDialogCloseDirective, { descendants: true }]
|
|
778
|
+
}], _tabGroups: [{
|
|
779
|
+
type: ContentChildren,
|
|
780
|
+
args: [MatTabGroup, { descendants: true }]
|
|
781
|
+
}] } });
|
|
827
782
|
|
|
828
783
|
const ERROR_MESSAGES = {
|
|
829
784
|
required: 'This field is required',
|
|
@@ -854,7 +809,7 @@ function messageProviderFactory() {
|
|
|
854
809
|
return Object.assign({}, ERROR_MESSAGES);
|
|
855
810
|
}
|
|
856
811
|
|
|
857
|
-
|
|
812
|
+
class FsControlDirective {
|
|
858
813
|
constructor(elementRef, renderer2, injector, _validateMessages, ngControl, formDirective) {
|
|
859
814
|
this.elementRef = elementRef;
|
|
860
815
|
this.renderer2 = renderer2;
|
|
@@ -1056,73 +1011,56 @@ let FsControlDirective = class FsControlDirective {
|
|
|
1056
1011
|
}
|
|
1057
1012
|
control.updateValueAndValidity();
|
|
1058
1013
|
}
|
|
1059
|
-
}
|
|
1060
|
-
FsControlDirective
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
]
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
]
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
]
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
]
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
__metadata("design:paramtypes", [Object])
|
|
1104
|
-
], FsControlDirective.prototype, "validateMessages", null);
|
|
1105
|
-
FsControlDirective = __decorate([
|
|
1106
|
-
Directive({
|
|
1107
|
-
selector: '[fsFormControl]',
|
|
1108
|
-
providers: [
|
|
1109
|
-
VALIDATE_MESSAGE_PROVIDER
|
|
1110
|
-
],
|
|
1111
|
-
}),
|
|
1112
|
-
__param(3, Self()), __param(3, Inject(VALIDATE_MESSAGES)),
|
|
1113
|
-
__param(4, Optional()),
|
|
1114
|
-
__param(5, Optional()), __param(5, Inject(FsFormDirective)),
|
|
1115
|
-
__metadata("design:paramtypes", [ElementRef,
|
|
1116
|
-
Renderer2,
|
|
1117
|
-
Injector, Object, NgControl,
|
|
1118
|
-
FsFormDirective])
|
|
1119
|
-
], FsControlDirective);
|
|
1014
|
+
}
|
|
1015
|
+
FsControlDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsControlDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.Injector }, { token: VALIDATE_MESSAGES, self: true }, { token: i1.NgControl, optional: true }, { token: FsFormDirective, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1016
|
+
FsControlDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsControlDirective, selector: "[fsFormControl]", inputs: { wrapperSelector: "wrapperSelector", messageSelector: "messageSelector", hintSelector: "hintSelector", labelSelector: "labelSelector", appendMessageClass: "appendMessageClass", appendLabelClass: "appendLabelClass", appendErrorClass: "appendErrorClass", appendHintClass: "appendHintClass", validateMessages: "validateMessages" }, providers: [
|
|
1017
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1018
|
+
], ngImport: i0 });
|
|
1019
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsControlDirective, decorators: [{
|
|
1020
|
+
type: Directive,
|
|
1021
|
+
args: [{
|
|
1022
|
+
selector: '[fsFormControl]',
|
|
1023
|
+
providers: [
|
|
1024
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1025
|
+
],
|
|
1026
|
+
}]
|
|
1027
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.Injector }, { type: undefined, decorators: [{
|
|
1028
|
+
type: Self
|
|
1029
|
+
}, {
|
|
1030
|
+
type: Inject,
|
|
1031
|
+
args: [VALIDATE_MESSAGES]
|
|
1032
|
+
}] }, { type: i1.NgControl, decorators: [{
|
|
1033
|
+
type: Optional
|
|
1034
|
+
}] }, { type: FsFormDirective, decorators: [{
|
|
1035
|
+
type: Optional
|
|
1036
|
+
}, {
|
|
1037
|
+
type: Inject,
|
|
1038
|
+
args: [FsFormDirective]
|
|
1039
|
+
}] }]; }, propDecorators: { wrapperSelector: [{
|
|
1040
|
+
type: Input
|
|
1041
|
+
}], messageSelector: [{
|
|
1042
|
+
type: Input
|
|
1043
|
+
}], hintSelector: [{
|
|
1044
|
+
type: Input
|
|
1045
|
+
}], labelSelector: [{
|
|
1046
|
+
type: Input
|
|
1047
|
+
}], appendMessageClass: [{
|
|
1048
|
+
type: Input
|
|
1049
|
+
}], appendLabelClass: [{
|
|
1050
|
+
type: Input
|
|
1051
|
+
}], appendErrorClass: [{
|
|
1052
|
+
type: Input
|
|
1053
|
+
}], appendHintClass: [{
|
|
1054
|
+
type: Input
|
|
1055
|
+
}], validateMessages: [{
|
|
1056
|
+
type: Input
|
|
1057
|
+
}] } });
|
|
1120
1058
|
|
|
1121
1059
|
function isEnabled(value) {
|
|
1122
1060
|
return value !== 'false' && (value || value === '');
|
|
1123
1061
|
}
|
|
1124
1062
|
|
|
1125
|
-
|
|
1063
|
+
class FsFormRequiredDirective extends FsControlDirective {
|
|
1126
1064
|
constructor() {
|
|
1127
1065
|
super(...arguments);
|
|
1128
1066
|
this.required = false;
|
|
@@ -1163,30 +1101,29 @@ let FsFormRequiredDirective = class FsFormRequiredDirective extends FsControlDir
|
|
|
1163
1101
|
}
|
|
1164
1102
|
super.render();
|
|
1165
1103
|
}
|
|
1166
|
-
}
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
]
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
], FsFormRequiredDirective);
|
|
1104
|
+
}
|
|
1105
|
+
FsFormRequiredDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormRequiredDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1106
|
+
FsFormRequiredDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsFormRequiredDirective, selector: "[fsFormRequired],[ngModel][required]", inputs: { setFsFormRequired: ["fsFormRequired", "setFsFormRequired"], setRequired: ["required", "setRequired"], validationMessage: ["fsFormRequiredMessage", "validationMessage"] }, providers: [
|
|
1107
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1108
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1109
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormRequiredDirective, decorators: [{
|
|
1110
|
+
type: Directive,
|
|
1111
|
+
args: [{
|
|
1112
|
+
selector: '[fsFormRequired],[ngModel][required]',
|
|
1113
|
+
providers: [
|
|
1114
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1115
|
+
],
|
|
1116
|
+
}]
|
|
1117
|
+
}], propDecorators: { setFsFormRequired: [{
|
|
1118
|
+
type: Input,
|
|
1119
|
+
args: ['fsFormRequired']
|
|
1120
|
+
}], setRequired: [{
|
|
1121
|
+
type: Input,
|
|
1122
|
+
args: ['required']
|
|
1123
|
+
}], validationMessage: [{
|
|
1124
|
+
type: Input,
|
|
1125
|
+
args: ['fsFormRequiredMessage']
|
|
1126
|
+
}] } });
|
|
1190
1127
|
|
|
1191
1128
|
class FsValidators {
|
|
1192
1129
|
static email(control) {
|
|
@@ -1280,7 +1217,7 @@ class FsValidators {
|
|
|
1280
1217
|
}
|
|
1281
1218
|
}
|
|
1282
1219
|
|
|
1283
|
-
|
|
1220
|
+
class FsFormMinDirective extends FsControlDirective {
|
|
1284
1221
|
set validationMessage(value) {
|
|
1285
1222
|
this._validateMessages.min = value;
|
|
1286
1223
|
}
|
|
@@ -1290,26 +1227,27 @@ let FsFormMinDirective = class FsFormMinDirective extends FsControlDirective {
|
|
|
1290
1227
|
validate(control) {
|
|
1291
1228
|
return FsValidators.numeric(this._control) || Validators.min(parseFloat(this.fsFormMin))(this._control);
|
|
1292
1229
|
}
|
|
1293
|
-
}
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
],
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
]
|
|
1230
|
+
}
|
|
1231
|
+
FsFormMinDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormMinDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1232
|
+
FsFormMinDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsFormMinDirective, selector: "[fsFormMin]", inputs: { fsFormMin: "fsFormMin", validationMessage: ["fsFormMinMessage", "validationMessage"] }, providers: [
|
|
1233
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1234
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1235
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormMinDirective, decorators: [{
|
|
1236
|
+
type: Directive,
|
|
1237
|
+
args: [{
|
|
1238
|
+
selector: '[fsFormMin]',
|
|
1239
|
+
providers: [
|
|
1240
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1241
|
+
],
|
|
1242
|
+
}]
|
|
1243
|
+
}], propDecorators: { fsFormMin: [{
|
|
1244
|
+
type: Input
|
|
1245
|
+
}], validationMessage: [{
|
|
1246
|
+
type: Input,
|
|
1247
|
+
args: ['fsFormMinMessage']
|
|
1248
|
+
}] } });
|
|
1311
1249
|
|
|
1312
|
-
|
|
1250
|
+
class FsFormMaxDirective extends FsControlDirective {
|
|
1313
1251
|
set validationMessage(value) {
|
|
1314
1252
|
this._validateMessages.max = value;
|
|
1315
1253
|
}
|
|
@@ -1319,26 +1257,27 @@ let FsFormMaxDirective = class FsFormMaxDirective extends FsControlDirective {
|
|
|
1319
1257
|
validate(control) {
|
|
1320
1258
|
return FsValidators.numeric(this._control) || Validators.max(this.fsFormMax)(this._control);
|
|
1321
1259
|
}
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
],
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
]
|
|
1260
|
+
}
|
|
1261
|
+
FsFormMaxDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormMaxDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1262
|
+
FsFormMaxDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsFormMaxDirective, selector: "[fsFormMax]", inputs: { fsFormMax: "fsFormMax", validationMessage: ["fsFormMaxMessage", "validationMessage"] }, providers: [
|
|
1263
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1264
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1265
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormMaxDirective, decorators: [{
|
|
1266
|
+
type: Directive,
|
|
1267
|
+
args: [{
|
|
1268
|
+
selector: '[fsFormMax]',
|
|
1269
|
+
providers: [
|
|
1270
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1271
|
+
],
|
|
1272
|
+
}]
|
|
1273
|
+
}], propDecorators: { fsFormMax: [{
|
|
1274
|
+
type: Input
|
|
1275
|
+
}], validationMessage: [{
|
|
1276
|
+
type: Input,
|
|
1277
|
+
args: ['fsFormMaxMessage']
|
|
1278
|
+
}] } });
|
|
1340
1279
|
|
|
1341
|
-
|
|
1280
|
+
class FsFormMinLengthDirective extends FsControlDirective {
|
|
1342
1281
|
set validationMessage(value) {
|
|
1343
1282
|
this._validateMessages.minlength = value;
|
|
1344
1283
|
}
|
|
@@ -1348,26 +1287,27 @@ let FsFormMinLengthDirective = class FsFormMinLengthDirective extends FsControlD
|
|
|
1348
1287
|
validate(control) {
|
|
1349
1288
|
return Validators.minLength(this.fsFormMinLength)(this._control);
|
|
1350
1289
|
}
|
|
1351
|
-
}
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
],
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
]
|
|
1290
|
+
}
|
|
1291
|
+
FsFormMinLengthDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormMinLengthDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1292
|
+
FsFormMinLengthDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsFormMinLengthDirective, selector: "[fsFormMinLength]", inputs: { fsFormMinLength: "fsFormMinLength", validationMessage: ["fsFormMinLengthMessage", "validationMessage"] }, providers: [
|
|
1293
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1294
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1295
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormMinLengthDirective, decorators: [{
|
|
1296
|
+
type: Directive,
|
|
1297
|
+
args: [{
|
|
1298
|
+
selector: '[fsFormMinLength]',
|
|
1299
|
+
providers: [
|
|
1300
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1301
|
+
],
|
|
1302
|
+
}]
|
|
1303
|
+
}], propDecorators: { fsFormMinLength: [{
|
|
1304
|
+
type: Input
|
|
1305
|
+
}], validationMessage: [{
|
|
1306
|
+
type: Input,
|
|
1307
|
+
args: ['fsFormMinLengthMessage']
|
|
1308
|
+
}] } });
|
|
1369
1309
|
|
|
1370
|
-
|
|
1310
|
+
class FsFormMaxLengthDirective extends FsControlDirective {
|
|
1371
1311
|
set validationMessage(value) {
|
|
1372
1312
|
this._validateMessages.maxlength = value;
|
|
1373
1313
|
}
|
|
@@ -1377,26 +1317,27 @@ let FsFormMaxLengthDirective = class FsFormMaxLengthDirective extends FsControlD
|
|
|
1377
1317
|
validate(control) {
|
|
1378
1318
|
return Validators.maxLength(this.fsFormMaxLength)(this._control);
|
|
1379
1319
|
}
|
|
1380
|
-
}
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
],
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
]
|
|
1320
|
+
}
|
|
1321
|
+
FsFormMaxLengthDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormMaxLengthDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1322
|
+
FsFormMaxLengthDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsFormMaxLengthDirective, selector: "[fsFormMaxLength]", inputs: { fsFormMaxLength: "fsFormMaxLength", validationMessage: ["fsFormMaxLengthMessage", "validationMessage"] }, providers: [
|
|
1323
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1324
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1325
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormMaxLengthDirective, decorators: [{
|
|
1326
|
+
type: Directive,
|
|
1327
|
+
args: [{
|
|
1328
|
+
selector: '[fsFormMaxLength]',
|
|
1329
|
+
providers: [
|
|
1330
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1331
|
+
],
|
|
1332
|
+
}]
|
|
1333
|
+
}], propDecorators: { fsFormMaxLength: [{
|
|
1334
|
+
type: Input
|
|
1335
|
+
}], validationMessage: [{
|
|
1336
|
+
type: Input,
|
|
1337
|
+
args: ['fsFormMaxLengthMessage']
|
|
1338
|
+
}] } });
|
|
1398
1339
|
|
|
1399
|
-
|
|
1340
|
+
class FsFormEmailDirective extends FsControlDirective {
|
|
1400
1341
|
set validationMessage(value) {
|
|
1401
1342
|
this._validateMessages.email = value;
|
|
1402
1343
|
}
|
|
@@ -1411,26 +1352,27 @@ let FsFormEmailDirective = class FsFormEmailDirective extends FsControlDirective
|
|
|
1411
1352
|
return null;
|
|
1412
1353
|
}
|
|
1413
1354
|
}
|
|
1414
|
-
}
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
],
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
]
|
|
1355
|
+
}
|
|
1356
|
+
FsFormEmailDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormEmailDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1357
|
+
FsFormEmailDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsFormEmailDirective, selector: "[fsFormEmail]", inputs: { fsFormEmail: "fsFormEmail", validationMessage: ["fsFormEmailMessage", "validationMessage"] }, providers: [
|
|
1358
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1359
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1360
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormEmailDirective, decorators: [{
|
|
1361
|
+
type: Directive,
|
|
1362
|
+
args: [{
|
|
1363
|
+
selector: '[fsFormEmail]',
|
|
1364
|
+
providers: [
|
|
1365
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1366
|
+
],
|
|
1367
|
+
}]
|
|
1368
|
+
}], propDecorators: { fsFormEmail: [{
|
|
1369
|
+
type: Input
|
|
1370
|
+
}], validationMessage: [{
|
|
1371
|
+
type: Input,
|
|
1372
|
+
args: ['fsFormEmailMessage']
|
|
1373
|
+
}] } });
|
|
1432
1374
|
|
|
1433
|
-
|
|
1375
|
+
class FsFormEmailsDirective extends FsControlDirective {
|
|
1434
1376
|
set validationMessage(value) {
|
|
1435
1377
|
this._validateMessages.emails = value;
|
|
1436
1378
|
}
|
|
@@ -1445,26 +1387,27 @@ let FsFormEmailsDirective = class FsFormEmailsDirective extends FsControlDirecti
|
|
|
1445
1387
|
return null;
|
|
1446
1388
|
}
|
|
1447
1389
|
}
|
|
1448
|
-
}
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
],
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
]
|
|
1390
|
+
}
|
|
1391
|
+
FsFormEmailsDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormEmailsDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1392
|
+
FsFormEmailsDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsFormEmailsDirective, selector: "[fsFormEmails]", inputs: { fsFormEmails: "fsFormEmails", validationMessage: ["fsFormEmailsMessage", "validationMessage"] }, providers: [
|
|
1393
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1394
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1395
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormEmailsDirective, decorators: [{
|
|
1396
|
+
type: Directive,
|
|
1397
|
+
args: [{
|
|
1398
|
+
selector: '[fsFormEmails]',
|
|
1399
|
+
providers: [
|
|
1400
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1401
|
+
],
|
|
1402
|
+
}]
|
|
1403
|
+
}], propDecorators: { fsFormEmails: [{
|
|
1404
|
+
type: Input
|
|
1405
|
+
}], validationMessage: [{
|
|
1406
|
+
type: Input,
|
|
1407
|
+
args: ['fsFormEmailsMessage']
|
|
1408
|
+
}] } });
|
|
1466
1409
|
|
|
1467
|
-
|
|
1410
|
+
class FsFormPhoneDirective extends FsControlDirective {
|
|
1468
1411
|
set validationMessage(value) {
|
|
1469
1412
|
this._validateMessages.phone = value;
|
|
1470
1413
|
}
|
|
@@ -1479,26 +1422,27 @@ let FsFormPhoneDirective = class FsFormPhoneDirective extends FsControlDirective
|
|
|
1479
1422
|
return null;
|
|
1480
1423
|
}
|
|
1481
1424
|
}
|
|
1482
|
-
}
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
],
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
]
|
|
1425
|
+
}
|
|
1426
|
+
FsFormPhoneDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormPhoneDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1427
|
+
FsFormPhoneDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsFormPhoneDirective, selector: "[fsFormPhone]", inputs: { fsFormPhone: "fsFormPhone", validationMessage: ["fsFormPhoneMessage", "validationMessage"] }, providers: [
|
|
1428
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1429
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1430
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormPhoneDirective, decorators: [{
|
|
1431
|
+
type: Directive,
|
|
1432
|
+
args: [{
|
|
1433
|
+
selector: '[fsFormPhone]',
|
|
1434
|
+
providers: [
|
|
1435
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1436
|
+
],
|
|
1437
|
+
}]
|
|
1438
|
+
}], propDecorators: { fsFormPhone: [{
|
|
1439
|
+
type: Input
|
|
1440
|
+
}], validationMessage: [{
|
|
1441
|
+
type: Input,
|
|
1442
|
+
args: ['fsFormPhoneMessage']
|
|
1443
|
+
}] } });
|
|
1500
1444
|
|
|
1501
|
-
|
|
1445
|
+
class FsFormCompareDirective extends FsControlDirective {
|
|
1502
1446
|
set validationMessage(value) {
|
|
1503
1447
|
this._validateMessages.compare = value;
|
|
1504
1448
|
}
|
|
@@ -1523,26 +1467,27 @@ let FsFormCompareDirective = class FsFormCompareDirective extends FsControlDirec
|
|
|
1523
1467
|
this._control.updateValueAndValidity();
|
|
1524
1468
|
}, false);
|
|
1525
1469
|
}
|
|
1526
|
-
}
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
],
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
]
|
|
1470
|
+
}
|
|
1471
|
+
FsFormCompareDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormCompareDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1472
|
+
FsFormCompareDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsFormCompareDirective, selector: "[fsFormCompare]", inputs: { fsFormCompare: "fsFormCompare", validationMessage: ["fsFormCompareMessage", "validationMessage"] }, providers: [
|
|
1473
|
+
VALIDATE_MESSAGE_PROVIDER,
|
|
1474
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1475
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormCompareDirective, decorators: [{
|
|
1476
|
+
type: Directive,
|
|
1477
|
+
args: [{
|
|
1478
|
+
selector: '[fsFormCompare]',
|
|
1479
|
+
providers: [
|
|
1480
|
+
VALIDATE_MESSAGE_PROVIDER,
|
|
1481
|
+
],
|
|
1482
|
+
}]
|
|
1483
|
+
}], propDecorators: { fsFormCompare: [{
|
|
1484
|
+
type: Input
|
|
1485
|
+
}], validationMessage: [{
|
|
1486
|
+
type: Input,
|
|
1487
|
+
args: ['fsFormCompareMessage']
|
|
1488
|
+
}] } });
|
|
1544
1489
|
|
|
1545
|
-
|
|
1490
|
+
class FsFormIntegerDirective extends FsControlDirective {
|
|
1546
1491
|
set validationMessage(value) {
|
|
1547
1492
|
this._validateMessages.integer = value;
|
|
1548
1493
|
}
|
|
@@ -1557,26 +1502,27 @@ let FsFormIntegerDirective = class FsFormIntegerDirective extends FsControlDirec
|
|
|
1557
1502
|
return null;
|
|
1558
1503
|
}
|
|
1559
1504
|
}
|
|
1560
|
-
}
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
],
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
]
|
|
1505
|
+
}
|
|
1506
|
+
FsFormIntegerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormIntegerDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1507
|
+
FsFormIntegerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsFormIntegerDirective, selector: "[fsFormInteger]", inputs: { fsFormInteger: "fsFormInteger", validationMessage: ["fsFormIntegerMessage", "validationMessage"] }, providers: [
|
|
1508
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1509
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1510
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormIntegerDirective, decorators: [{
|
|
1511
|
+
type: Directive,
|
|
1512
|
+
args: [{
|
|
1513
|
+
selector: '[fsFormInteger]',
|
|
1514
|
+
providers: [
|
|
1515
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1516
|
+
],
|
|
1517
|
+
}]
|
|
1518
|
+
}], propDecorators: { fsFormInteger: [{
|
|
1519
|
+
type: Input
|
|
1520
|
+
}], validationMessage: [{
|
|
1521
|
+
type: Input,
|
|
1522
|
+
args: ['fsFormIntegerMessage']
|
|
1523
|
+
}] } });
|
|
1578
1524
|
|
|
1579
|
-
|
|
1525
|
+
class FsFormNumericDirective extends FsControlDirective {
|
|
1580
1526
|
set validationMessage(value) {
|
|
1581
1527
|
this._validateMessages.numeric = value;
|
|
1582
1528
|
}
|
|
@@ -1591,26 +1537,27 @@ let FsFormNumericDirective = class FsFormNumericDirective extends FsControlDirec
|
|
|
1591
1537
|
return null;
|
|
1592
1538
|
}
|
|
1593
1539
|
}
|
|
1594
|
-
}
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
],
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
]
|
|
1540
|
+
}
|
|
1541
|
+
FsFormNumericDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormNumericDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1542
|
+
FsFormNumericDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsFormNumericDirective, selector: "[fsFormNumeric]", inputs: { fsFormNumeric: "fsFormNumeric", validationMessage: ["fsFormNumericMessage", "validationMessage"] }, providers: [
|
|
1543
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1544
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1545
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormNumericDirective, decorators: [{
|
|
1546
|
+
type: Directive,
|
|
1547
|
+
args: [{
|
|
1548
|
+
selector: '[fsFormNumeric]',
|
|
1549
|
+
providers: [
|
|
1550
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1551
|
+
],
|
|
1552
|
+
}]
|
|
1553
|
+
}], propDecorators: { fsFormNumeric: [{
|
|
1554
|
+
type: Input
|
|
1555
|
+
}], validationMessage: [{
|
|
1556
|
+
type: Input,
|
|
1557
|
+
args: ['fsFormNumericMessage']
|
|
1558
|
+
}] } });
|
|
1612
1559
|
|
|
1613
|
-
|
|
1560
|
+
class FsFormPatternDirective extends FsControlDirective {
|
|
1614
1561
|
set validationMessage(value) {
|
|
1615
1562
|
this._validateMessages.pattern = value;
|
|
1616
1563
|
}
|
|
@@ -1620,51 +1567,53 @@ let FsFormPatternDirective = class FsFormPatternDirective extends FsControlDirec
|
|
|
1620
1567
|
validate(control) {
|
|
1621
1568
|
return Validators.pattern(this.fsFormPattern)(this._control);
|
|
1622
1569
|
}
|
|
1623
|
-
}
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
],
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
]
|
|
1570
|
+
}
|
|
1571
|
+
FsFormPatternDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormPatternDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1572
|
+
FsFormPatternDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsFormPatternDirective, selector: "[fsFormPattern]", inputs: { fsFormPattern: "fsFormPattern", validationMessage: ["fsFormPatternMessage", "validationMessage"] }, providers: [
|
|
1573
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1574
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1575
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormPatternDirective, decorators: [{
|
|
1576
|
+
type: Directive,
|
|
1577
|
+
args: [{
|
|
1578
|
+
selector: '[fsFormPattern]',
|
|
1579
|
+
providers: [
|
|
1580
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1581
|
+
],
|
|
1582
|
+
}]
|
|
1583
|
+
}], propDecorators: { fsFormPattern: [{
|
|
1584
|
+
type: Input
|
|
1585
|
+
}], validationMessage: [{
|
|
1586
|
+
type: Input,
|
|
1587
|
+
args: ['fsFormPatternMessage']
|
|
1588
|
+
}] } });
|
|
1641
1589
|
|
|
1642
|
-
|
|
1590
|
+
class FsFormFunctionDirective extends FsControlDirective {
|
|
1643
1591
|
ngOnChanges() {
|
|
1644
1592
|
this._control.updateValueAndValidity();
|
|
1645
1593
|
}
|
|
1646
1594
|
validateAsync(control) {
|
|
1647
1595
|
return FsValidators.func(this._control, this.fsFormFunction, this.fsFormFunctionData);
|
|
1648
1596
|
}
|
|
1649
|
-
}
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
],
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
],
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1597
|
+
}
|
|
1598
|
+
FsFormFunctionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormFunctionDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1599
|
+
FsFormFunctionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsFormFunctionDirective, selector: "[fsFormFunction]", inputs: { fsFormFunction: "fsFormFunction", fsFormFunctionData: "fsFormFunctionData" }, providers: [
|
|
1600
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1601
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1602
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormFunctionDirective, decorators: [{
|
|
1603
|
+
type: Directive,
|
|
1604
|
+
args: [{
|
|
1605
|
+
selector: '[fsFormFunction]',
|
|
1606
|
+
providers: [
|
|
1607
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1608
|
+
],
|
|
1609
|
+
}]
|
|
1610
|
+
}], propDecorators: { fsFormFunction: [{
|
|
1611
|
+
type: Input
|
|
1612
|
+
}], fsFormFunctionData: [{
|
|
1613
|
+
type: Input
|
|
1614
|
+
}] } });
|
|
1666
1615
|
|
|
1667
|
-
|
|
1616
|
+
class FsFormGreaterDirective extends FsControlDirective {
|
|
1668
1617
|
set validationMessage(value) {
|
|
1669
1618
|
this._validateMessages.greater = value;
|
|
1670
1619
|
}
|
|
@@ -1679,26 +1628,27 @@ let FsFormGreaterDirective = class FsFormGreaterDirective extends FsControlDirec
|
|
|
1679
1628
|
}
|
|
1680
1629
|
return FsValidators.numeric(this._control);
|
|
1681
1630
|
}
|
|
1682
|
-
}
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
],
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
]
|
|
1631
|
+
}
|
|
1632
|
+
FsFormGreaterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormGreaterDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1633
|
+
FsFormGreaterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsFormGreaterDirective, selector: "[fsFormGreater]", inputs: { fsFormGreater: "fsFormGreater", validationMessage: ["fsFormGreaterMessage", "validationMessage"] }, providers: [
|
|
1634
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1635
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1636
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormGreaterDirective, decorators: [{
|
|
1637
|
+
type: Directive,
|
|
1638
|
+
args: [{
|
|
1639
|
+
selector: '[fsFormGreater]',
|
|
1640
|
+
providers: [
|
|
1641
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1642
|
+
],
|
|
1643
|
+
}]
|
|
1644
|
+
}], propDecorators: { fsFormGreater: [{
|
|
1645
|
+
type: Input
|
|
1646
|
+
}], validationMessage: [{
|
|
1647
|
+
type: Input,
|
|
1648
|
+
args: ['fsFormGreaterMessage']
|
|
1649
|
+
}] } });
|
|
1700
1650
|
|
|
1701
|
-
|
|
1651
|
+
class FsFormDateRangeDirective extends FsControlDirective {
|
|
1702
1652
|
set validationMessage(value) {
|
|
1703
1653
|
this._validateMessages.dateRange = value;
|
|
1704
1654
|
}
|
|
@@ -1713,26 +1663,27 @@ let FsFormDateRangeDirective = class FsFormDateRangeDirective extends FsControlD
|
|
|
1713
1663
|
return null;
|
|
1714
1664
|
}
|
|
1715
1665
|
}
|
|
1716
|
-
}
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
],
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
]
|
|
1666
|
+
}
|
|
1667
|
+
FsFormDateRangeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormDateRangeDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1668
|
+
FsFormDateRangeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsFormDateRangeDirective, selector: "[fsFormDateRange]", inputs: { fsFormDateRange: "fsFormDateRange", validationMessage: ["fsFormDateRangeMessage", "validationMessage"] }, providers: [
|
|
1669
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1670
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1671
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormDateRangeDirective, decorators: [{
|
|
1672
|
+
type: Directive,
|
|
1673
|
+
args: [{
|
|
1674
|
+
selector: '[fsFormDateRange]',
|
|
1675
|
+
providers: [
|
|
1676
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1677
|
+
],
|
|
1678
|
+
}]
|
|
1679
|
+
}], propDecorators: { fsFormDateRange: [{
|
|
1680
|
+
type: Input
|
|
1681
|
+
}], validationMessage: [{
|
|
1682
|
+
type: Input,
|
|
1683
|
+
args: ['fsFormDateRangeMessage']
|
|
1684
|
+
}] } });
|
|
1734
1685
|
|
|
1735
|
-
|
|
1686
|
+
class FsFormLesserDirective extends FsControlDirective {
|
|
1736
1687
|
set validationMessage(value) {
|
|
1737
1688
|
this._validateMessages.lesser = value;
|
|
1738
1689
|
}
|
|
@@ -1747,26 +1698,27 @@ let FsFormLesserDirective = class FsFormLesserDirective extends FsControlDirecti
|
|
|
1747
1698
|
}
|
|
1748
1699
|
return FsValidators.numeric(this._control);
|
|
1749
1700
|
}
|
|
1750
|
-
}
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
],
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
]
|
|
1701
|
+
}
|
|
1702
|
+
FsFormLesserDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormLesserDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1703
|
+
FsFormLesserDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsFormLesserDirective, selector: "[fsFormLesser]", inputs: { fsFormLesser: "fsFormLesser", validationMessage: ["fsFormLesserMessage", "validationMessage"] }, providers: [
|
|
1704
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1705
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1706
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormLesserDirective, decorators: [{
|
|
1707
|
+
type: Directive,
|
|
1708
|
+
args: [{
|
|
1709
|
+
selector: '[fsFormLesser]',
|
|
1710
|
+
providers: [
|
|
1711
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1712
|
+
],
|
|
1713
|
+
}]
|
|
1714
|
+
}], propDecorators: { fsFormLesser: [{
|
|
1715
|
+
type: Input
|
|
1716
|
+
}], validationMessage: [{
|
|
1717
|
+
type: Input,
|
|
1718
|
+
args: ['fsFormLesserMessage']
|
|
1719
|
+
}] } });
|
|
1768
1720
|
|
|
1769
|
-
|
|
1721
|
+
class FsFormUrlDirective extends FsControlDirective {
|
|
1770
1722
|
constructor() {
|
|
1771
1723
|
super(...arguments);
|
|
1772
1724
|
this.fsFormUrlProtocol = false;
|
|
@@ -1785,30 +1737,29 @@ let FsFormUrlDirective = class FsFormUrlDirective extends FsControlDirective {
|
|
|
1785
1737
|
return null;
|
|
1786
1738
|
}
|
|
1787
1739
|
}
|
|
1788
|
-
}
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
],
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
],
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
],
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
], FsFormUrlDirective);
|
|
1740
|
+
}
|
|
1741
|
+
FsFormUrlDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormUrlDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1742
|
+
FsFormUrlDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsFormUrlDirective, selector: "[fsFormUrl]", inputs: { fsFormUrl: "fsFormUrl", fsFormUrlProtocol: "fsFormUrlProtocol", validationMessage: ["fsFormUrlMessage", "validationMessage"] }, providers: [
|
|
1743
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1744
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1745
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormUrlDirective, decorators: [{
|
|
1746
|
+
type: Directive,
|
|
1747
|
+
args: [{
|
|
1748
|
+
selector: '[fsFormUrl]',
|
|
1749
|
+
providers: [
|
|
1750
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1751
|
+
],
|
|
1752
|
+
}]
|
|
1753
|
+
}], propDecorators: { fsFormUrl: [{
|
|
1754
|
+
type: Input
|
|
1755
|
+
}], fsFormUrlProtocol: [{
|
|
1756
|
+
type: Input
|
|
1757
|
+
}], validationMessage: [{
|
|
1758
|
+
type: Input,
|
|
1759
|
+
args: ['fsFormUrlMessage']
|
|
1760
|
+
}] } });
|
|
1810
1761
|
|
|
1811
|
-
|
|
1762
|
+
class FsSubmitButtonDirective {
|
|
1812
1763
|
constructor(_matButton, _form, _elementRef, _cdRef) {
|
|
1813
1764
|
this._matButton = _matButton;
|
|
1814
1765
|
this._form = _form;
|
|
@@ -1922,63 +1873,58 @@ let FsSubmitButtonDirective = class FsSubmitButtonDirective {
|
|
|
1922
1873
|
return new DOMParser().parseFromString(`<svg class="svg-icon svg-icon-error" xmlns="http://www.w3.org/2000/svg" width="38px" height="38px" viewBox="0 0 16 16"><g><path d="M8 1c3.9 0 7 3.1 7 7s-3.1 7-7 7-7-3.1-7-7 3.1-7 7-7zM8 0c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8v0z" data-original="#444444" data-old_color="#444444"/><path d="M12.2 10.8l-2.8-2.8 2.8-2.8-1.4-1.4-2.8 2.8-2.8-2.8-1.4 1.4 2.8 2.8-2.8 2.8 1.4 1.4 2.8-2.8 2.8 2.8z"/></g> </svg>`, 'text/xml').firstChild;
|
|
1923
1874
|
}
|
|
1924
1875
|
}
|
|
1925
|
-
}
|
|
1926
|
-
FsSubmitButtonDirective
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
]
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
],
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
],
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
}),
|
|
1948
|
-
__param(0, Optional()), __param(0, Host()),
|
|
1949
|
-
__param(1, Optional()),
|
|
1950
|
-
__metadata("design:paramtypes", [MatButton,
|
|
1951
|
-
FsFormDirective,
|
|
1952
|
-
ElementRef,
|
|
1953
|
-
ChangeDetectorRef])
|
|
1954
|
-
], FsSubmitButtonDirective);
|
|
1876
|
+
}
|
|
1877
|
+
FsSubmitButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsSubmitButtonDirective, deps: [{ token: i1$1.MatButton, host: true, optional: true }, { token: FsFormDirective, optional: true }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1878
|
+
FsSubmitButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsSubmitButtonDirective, selector: "button[type=\"submit\"]", inputs: { name: "name", dirtySubmit: "dirtySubmit" }, host: { properties: { "style.transition": "this.transitionStyle" } }, ngImport: i0 });
|
|
1879
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsSubmitButtonDirective, decorators: [{
|
|
1880
|
+
type: Directive,
|
|
1881
|
+
args: [{
|
|
1882
|
+
selector: 'button[type="submit"]',
|
|
1883
|
+
}]
|
|
1884
|
+
}], ctorParameters: function () { return [{ type: i1$1.MatButton, decorators: [{
|
|
1885
|
+
type: Optional
|
|
1886
|
+
}, {
|
|
1887
|
+
type: Host
|
|
1888
|
+
}] }, { type: FsFormDirective, decorators: [{
|
|
1889
|
+
type: Optional
|
|
1890
|
+
}] }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { name: [{
|
|
1891
|
+
type: Input
|
|
1892
|
+
}], dirtySubmit: [{
|
|
1893
|
+
type: Input
|
|
1894
|
+
}], transitionStyle: [{
|
|
1895
|
+
type: HostBinding,
|
|
1896
|
+
args: ['style.transition']
|
|
1897
|
+
}] } });
|
|
1955
1898
|
|
|
1956
|
-
|
|
1899
|
+
class FsFormValidateDirective extends FsControlDirective {
|
|
1957
1900
|
ngOnChanges() {
|
|
1958
1901
|
this._control.updateValueAndValidity();
|
|
1959
1902
|
}
|
|
1960
1903
|
validateAsync(control) {
|
|
1961
1904
|
return FsValidators.func(this._control, this.validateFn, this.validateFnData);
|
|
1962
1905
|
}
|
|
1963
|
-
}
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
],
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
],
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
],
|
|
1906
|
+
}
|
|
1907
|
+
FsFormValidateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormValidateDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1908
|
+
FsFormValidateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsFormValidateDirective, selector: "[validate]", inputs: { validateFn: ["validate", "validateFn"], validateFnData: ["validateData", "validateFnData"] }, providers: [
|
|
1909
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1910
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1911
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormValidateDirective, decorators: [{
|
|
1912
|
+
type: Directive,
|
|
1913
|
+
args: [{
|
|
1914
|
+
selector: '[validate]',
|
|
1915
|
+
providers: [
|
|
1916
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1917
|
+
],
|
|
1918
|
+
}]
|
|
1919
|
+
}], propDecorators: { validateFn: [{
|
|
1920
|
+
type: Input,
|
|
1921
|
+
args: ['validate']
|
|
1922
|
+
}], validateFnData: [{
|
|
1923
|
+
type: Input,
|
|
1924
|
+
args: ['validateData']
|
|
1925
|
+
}] } });
|
|
1980
1926
|
|
|
1981
|
-
|
|
1927
|
+
class FsFormDialogActionsComponent {
|
|
1982
1928
|
constructor(_form, _dialogRef, _cdRef) {
|
|
1983
1929
|
this._form = _form;
|
|
1984
1930
|
this._dialogRef = _dialogRef;
|
|
@@ -2027,118 +1973,167 @@ let FsFormDialogActionsComponent = class FsFormDialogActionsComponent {
|
|
|
2027
1973
|
this._destroy$.next();
|
|
2028
1974
|
this._destroy$.complete();
|
|
2029
1975
|
}
|
|
2030
|
-
}
|
|
2031
|
-
FsFormDialogActionsComponent
|
|
2032
|
-
{ type:
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
],
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
],
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
],
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
selector: 'fs-form-dialog-actions',
|
|
2055
|
-
template: "<div class=\"buttons\">\r\n <ng-container *ngIf=\"save\">\r\n <button \r\n mat-button \r\n type=\"submit\"\r\n color=\"primary\" \r\n [name]=\"name\">\r\n {{create ? 'Create' : 'Save'}}\r\n </button>\r\n <button \r\n mat-button \r\n type=\"button\"\r\n [disabled]=\"close && !dirty && !create\"\r\n [matDialogClose]=\"null\">\r\n Cancel\r\n </button>\r\n </ng-container>\r\n\r\n <ng-content></ng-content>\r\n <div class=\"close\" *ngIf=\"close\">\r\n <button \r\n mat-button \r\n type=\"button\"\r\n [color]=\"dirty ? 'basic' : 'primary'\"\r\n (click)=\"closeClick()\">\r\n Close\r\n </button>\r\n </div>\r\n</div>",
|
|
2056
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2057
|
-
styles: [".buttons{display:flex;flex-grow:1;align-items:center}.buttons .close{display:flex;flex-grow:1;justify-content:flex-end}:host{display:flex;flex-grow:1}@media only screen and (max-width:599px){.buttons{flex-direction:column}}"]
|
|
2058
|
-
}),
|
|
2059
|
-
__param(0, Optional()),
|
|
2060
|
-
__param(1, Optional()),
|
|
2061
|
-
__metadata("design:paramtypes", [FsFormDirective,
|
|
2062
|
-
MatDialogRef,
|
|
2063
|
-
ChangeDetectorRef])
|
|
2064
|
-
], FsFormDialogActionsComponent);
|
|
1976
|
+
}
|
|
1977
|
+
FsFormDialogActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormDialogActionsComponent, deps: [{ token: FsFormDirective, optional: true }, { token: i2$1.MatDialogRef, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1978
|
+
FsFormDialogActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FsFormDialogActionsComponent, selector: "fs-form-dialog-actions", inputs: { save: "save", create: "create", close: "close", name: "name" }, ngImport: i0, template: "<div class=\"buttons\">\r\n <ng-container *ngIf=\"save\">\r\n <button \r\n mat-button \r\n type=\"submit\"\r\n color=\"primary\" \r\n [name]=\"name\">\r\n {{create ? 'Create' : 'Save'}}\r\n </button>\r\n <button \r\n mat-button \r\n type=\"button\"\r\n [disabled]=\"close && !dirty && !create\"\r\n [matDialogClose]=\"null\">\r\n Cancel\r\n </button>\r\n </ng-container>\r\n\r\n <ng-content></ng-content>\r\n <div class=\"close\" *ngIf=\"close\">\r\n <button \r\n mat-button \r\n type=\"button\"\r\n [color]=\"dirty ? 'basic' : 'primary'\"\r\n (click)=\"closeClick()\">\r\n Close\r\n </button>\r\n </div>\r\n</div>", styles: [".buttons{display:flex;flex-grow:1;align-items:center}.buttons .close{display:flex;flex-grow:1;justify-content:flex-end}:host{display:flex;flex-grow:1}@media only screen and (max-width: 599px){.buttons{flex-direction:column}}\n"], components: [{ type: i1$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: FsSubmitButtonDirective, selector: "button[type=\"submit\"]", inputs: ["name", "dirtySubmit"] }, { type: i2$1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1979
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormDialogActionsComponent, decorators: [{
|
|
1980
|
+
type: Component,
|
|
1981
|
+
args: [{
|
|
1982
|
+
selector: 'fs-form-dialog-actions',
|
|
1983
|
+
templateUrl: './form-dialog-actions.component.html',
|
|
1984
|
+
styleUrls: ['./form-dialog-actions.component.scss'],
|
|
1985
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1986
|
+
}]
|
|
1987
|
+
}], ctorParameters: function () { return [{ type: FsFormDirective, decorators: [{
|
|
1988
|
+
type: Optional
|
|
1989
|
+
}] }, { type: i2$1.MatDialogRef, decorators: [{
|
|
1990
|
+
type: Optional
|
|
1991
|
+
}] }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { save: [{
|
|
1992
|
+
type: Input
|
|
1993
|
+
}], create: [{
|
|
1994
|
+
type: Input
|
|
1995
|
+
}], close: [{
|
|
1996
|
+
type: Input
|
|
1997
|
+
}], name: [{
|
|
1998
|
+
type: Input
|
|
1999
|
+
}] } });
|
|
2065
2000
|
|
|
2066
|
-
|
|
2067
|
-
let FsFormModule = FsFormModule_1 = class FsFormModule {
|
|
2001
|
+
class FsFormModule {
|
|
2068
2002
|
static forRoot() {
|
|
2069
2003
|
return {
|
|
2070
|
-
ngModule:
|
|
2004
|
+
ngModule: FsFormModule,
|
|
2071
2005
|
};
|
|
2072
2006
|
}
|
|
2073
|
-
}
|
|
2074
|
-
FsFormModule =
|
|
2075
|
-
|
|
2076
|
-
|
|
2007
|
+
}
|
|
2008
|
+
FsFormModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2009
|
+
FsFormModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormModule, declarations: [FsFormDirective,
|
|
2010
|
+
FsControlDirective,
|
|
2011
|
+
FsFormRequiredDirective,
|
|
2012
|
+
FsFormMinDirective,
|
|
2013
|
+
FsFormMaxDirective,
|
|
2014
|
+
FsFormMinLengthDirective,
|
|
2015
|
+
FsFormMaxLengthDirective,
|
|
2016
|
+
FsFormEmailDirective,
|
|
2017
|
+
FsFormEmailsDirective,
|
|
2018
|
+
FsFormPhoneDirective,
|
|
2019
|
+
FsFormCompareDirective,
|
|
2020
|
+
FsFormIntegerDirective,
|
|
2021
|
+
FsFormNumericDirective,
|
|
2022
|
+
FsFormPatternDirective,
|
|
2023
|
+
FsFormFunctionDirective,
|
|
2024
|
+
FsFormDateRangeDirective,
|
|
2025
|
+
FsFormGreaterDirective,
|
|
2026
|
+
FsFormLesserDirective,
|
|
2027
|
+
FsFormUrlDirective,
|
|
2028
|
+
FsFormDialogCloseDirective,
|
|
2029
|
+
FsSubmitButtonDirective,
|
|
2030
|
+
FsFormValidateDirective,
|
|
2031
|
+
FsFormDialogActionsComponent], imports: [CommonModule,
|
|
2032
|
+
FormsModule,
|
|
2033
|
+
MatButtonModule,
|
|
2034
|
+
MatDialogModule], exports: [FsFormDirective,
|
|
2035
|
+
FsControlDirective,
|
|
2036
|
+
FsFormRequiredDirective,
|
|
2037
|
+
FsFormMinDirective,
|
|
2038
|
+
FsFormMaxDirective,
|
|
2039
|
+
FsFormMinLengthDirective,
|
|
2040
|
+
FsFormMaxLengthDirective,
|
|
2041
|
+
FsFormEmailDirective,
|
|
2042
|
+
FsFormEmailsDirective,
|
|
2043
|
+
FsFormPhoneDirective,
|
|
2044
|
+
FsFormCompareDirective,
|
|
2045
|
+
FsFormIntegerDirective,
|
|
2046
|
+
FsFormNumericDirective,
|
|
2047
|
+
FsFormPatternDirective,
|
|
2048
|
+
FsFormFunctionDirective,
|
|
2049
|
+
FsFormDateRangeDirective,
|
|
2050
|
+
FsFormGreaterDirective,
|
|
2051
|
+
FsFormLesserDirective,
|
|
2052
|
+
FsFormUrlDirective,
|
|
2053
|
+
FsFormDialogCloseDirective,
|
|
2054
|
+
FsSubmitButtonDirective,
|
|
2055
|
+
FsFormValidateDirective,
|
|
2056
|
+
FsFormDialogActionsComponent] });
|
|
2057
|
+
FsFormModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormModule, providers: [
|
|
2058
|
+
{
|
|
2059
|
+
provide: ErrorStateMatcher,
|
|
2060
|
+
useClass: ShowOnDirtyErrorStateMatcher,
|
|
2061
|
+
},
|
|
2062
|
+
], imports: [[
|
|
2077
2063
|
CommonModule,
|
|
2078
2064
|
FormsModule,
|
|
2079
2065
|
MatButtonModule,
|
|
2080
2066
|
MatDialogModule,
|
|
2081
|
-
]
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2067
|
+
]] });
|
|
2068
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormModule, decorators: [{
|
|
2069
|
+
type: NgModule,
|
|
2070
|
+
args: [{
|
|
2071
|
+
imports: [
|
|
2072
|
+
CommonModule,
|
|
2073
|
+
FormsModule,
|
|
2074
|
+
MatButtonModule,
|
|
2075
|
+
MatDialogModule,
|
|
2076
|
+
],
|
|
2077
|
+
declarations: [
|
|
2078
|
+
FsFormDirective,
|
|
2079
|
+
FsControlDirective,
|
|
2080
|
+
FsFormRequiredDirective,
|
|
2081
|
+
FsFormMinDirective,
|
|
2082
|
+
FsFormMaxDirective,
|
|
2083
|
+
FsFormMinLengthDirective,
|
|
2084
|
+
FsFormMaxLengthDirective,
|
|
2085
|
+
FsFormEmailDirective,
|
|
2086
|
+
FsFormEmailsDirective,
|
|
2087
|
+
FsFormPhoneDirective,
|
|
2088
|
+
FsFormCompareDirective,
|
|
2089
|
+
FsFormIntegerDirective,
|
|
2090
|
+
FsFormNumericDirective,
|
|
2091
|
+
FsFormPatternDirective,
|
|
2092
|
+
FsFormFunctionDirective,
|
|
2093
|
+
FsFormDateRangeDirective,
|
|
2094
|
+
FsFormGreaterDirective,
|
|
2095
|
+
FsFormLesserDirective,
|
|
2096
|
+
FsFormUrlDirective,
|
|
2097
|
+
FsFormDialogCloseDirective,
|
|
2098
|
+
FsSubmitButtonDirective,
|
|
2099
|
+
FsFormValidateDirective,
|
|
2100
|
+
FsFormDialogActionsComponent,
|
|
2101
|
+
],
|
|
2102
|
+
exports: [
|
|
2103
|
+
FsFormDirective,
|
|
2104
|
+
FsControlDirective,
|
|
2105
|
+
FsFormRequiredDirective,
|
|
2106
|
+
FsFormMinDirective,
|
|
2107
|
+
FsFormMaxDirective,
|
|
2108
|
+
FsFormMinLengthDirective,
|
|
2109
|
+
FsFormMaxLengthDirective,
|
|
2110
|
+
FsFormEmailDirective,
|
|
2111
|
+
FsFormEmailsDirective,
|
|
2112
|
+
FsFormPhoneDirective,
|
|
2113
|
+
FsFormCompareDirective,
|
|
2114
|
+
FsFormIntegerDirective,
|
|
2115
|
+
FsFormNumericDirective,
|
|
2116
|
+
FsFormPatternDirective,
|
|
2117
|
+
FsFormFunctionDirective,
|
|
2118
|
+
FsFormDateRangeDirective,
|
|
2119
|
+
FsFormGreaterDirective,
|
|
2120
|
+
FsFormLesserDirective,
|
|
2121
|
+
FsFormUrlDirective,
|
|
2122
|
+
FsFormDialogCloseDirective,
|
|
2123
|
+
FsSubmitButtonDirective,
|
|
2124
|
+
FsFormValidateDirective,
|
|
2125
|
+
FsFormDialogActionsComponent,
|
|
2126
|
+
],
|
|
2127
|
+
providers: [
|
|
2128
|
+
{
|
|
2129
|
+
provide: ErrorStateMatcher,
|
|
2130
|
+
useClass: ShowOnDirtyErrorStateMatcher,
|
|
2131
|
+
},
|
|
2132
|
+
],
|
|
2133
|
+
}]
|
|
2134
|
+
}] });
|
|
2140
2135
|
|
|
2141
|
-
|
|
2136
|
+
class FormDeactivateGuard {
|
|
2142
2137
|
constructor(_prompt) {
|
|
2143
2138
|
this._prompt = _prompt;
|
|
2144
2139
|
}
|
|
@@ -2159,17 +2154,15 @@ let FormDeactivateGuard = class FormDeactivateGuard {
|
|
|
2159
2154
|
return confirmResultContinue(result);
|
|
2160
2155
|
}));
|
|
2161
2156
|
}
|
|
2162
|
-
}
|
|
2163
|
-
FormDeactivateGuard
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
__metadata("design:paramtypes", [FsPrompt])
|
|
2172
|
-
], FormDeactivateGuard);
|
|
2157
|
+
}
|
|
2158
|
+
FormDeactivateGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormDeactivateGuard, deps: [{ token: i3.FsPrompt }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2159
|
+
FormDeactivateGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormDeactivateGuard, providedIn: 'root' });
|
|
2160
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormDeactivateGuard, decorators: [{
|
|
2161
|
+
type: Injectable,
|
|
2162
|
+
args: [{
|
|
2163
|
+
providedIn: 'root'
|
|
2164
|
+
}]
|
|
2165
|
+
}], ctorParameters: function () { return [{ type: i3.FsPrompt }]; } });
|
|
2173
2166
|
|
|
2174
2167
|
// Modules
|
|
2175
2168
|
|
|
@@ -2177,5 +2170,5 @@ FormDeactivateGuard = __decorate([
|
|
|
2177
2170
|
* Generated bundle index. Do not edit.
|
|
2178
2171
|
*/
|
|
2179
2172
|
|
|
2180
|
-
export { ConfirmResult, FormDeactivateGuard, FormStatus,
|
|
2173
|
+
export { ConfirmResult, FormDeactivateGuard, FormStatus, FsControlDirective, FsForm, FsFormCompareDirective, FsFormDateRangeDirective, FsFormDialogActionsComponent, FsFormDialogCloseDirective, FsFormDirective, FsFormEmailDirective, FsFormEmailsDirective, FsFormFunctionDirective, FsFormGreaterDirective, FsFormIntegerDirective, FsFormLesserDirective, FsFormMaxDirective, FsFormMaxLengthDirective, FsFormMinDirective, FsFormMinLengthDirective, FsFormModule, FsFormNumericDirective, FsFormPatternDirective, FsFormPhoneDirective, FsFormRequiredDirective, FsFormUrlDirective, FsFormValidateDirective, FsSubmitButtonDirective, FsValidators };
|
|
2181
2174
|
//# sourceMappingURL=firestitch-form.js.map
|