@firestitch/form 15.0.0 → 17.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 +1 -1
- package/app/components/form-template/form-template.component.d.ts +1 -1
- package/app/components/form-template-outlet/form-template-outlet.component.d.ts +1 -1
- package/app/directives/button.directive.d.ts +1 -1
- package/app/directives/form/form.directive.d.ts +1 -1
- package/app/directives/form-dialog-close.directive.d.ts +1 -1
- package/app/directives/validators/compare.directive.d.ts +1 -1
- package/app/directives/validators/control.directive.d.ts +1 -1
- package/app/directives/validators/daterange.directive.d.ts +1 -1
- package/app/directives/validators/email.directive.d.ts +1 -1
- package/app/directives/validators/emails.directive.d.ts +1 -1
- package/app/directives/validators/function.directive.d.ts +1 -1
- package/app/directives/validators/greater-equal.directive.d.ts +1 -1
- package/app/directives/validators/greater.directive.d.ts +1 -1
- package/app/directives/validators/integer.directive.d.ts +1 -1
- package/app/directives/validators/lesser-equal.directive.d.ts +1 -1
- package/app/directives/validators/lesser.directive.d.ts +1 -1
- package/app/directives/validators/max.directive.d.ts +1 -1
- package/app/directives/validators/maxlength.directive.d.ts +1 -1
- package/app/directives/validators/min.directive.d.ts +1 -1
- package/app/directives/validators/minlength.directive.d.ts +1 -1
- package/app/directives/validators/numeric.directive.d.ts +1 -1
- package/app/directives/validators/pattern.directive.d.ts +1 -1
- package/app/directives/validators/phone.directive.d.ts +1 -1
- package/app/directives/validators/required.directive.d.ts +1 -1
- package/app/directives/validators/url.directive.d.ts +1 -1
- package/app/directives/validators/validate.directive.d.ts +1 -1
- package/app/guards/form-deactivate.guard.d.ts +2 -2
- package/esm2022/app/components/confirm-unsaved/confirm-unsaved.component.mjs +51 -0
- package/esm2022/app/components/form-dialog-actions/form-dialog-actions.component.mjs +79 -0
- package/esm2022/app/components/form-template/form-template.component.mjs +34 -0
- package/{esm2020 → esm2022}/app/components/form-template/index.mjs +1 -1
- package/esm2022/app/components/form-template-outlet/form-template-outlet.component.mjs +32 -0
- package/{esm2020 → esm2022}/app/components/form-template-outlet/index.mjs +1 -1
- package/esm2022/app/directives/button.directive.mjs +172 -0
- package/esm2022/app/directives/form/form.directive.mjs +703 -0
- package/esm2022/app/directives/form-dialog-close.directive.mjs +57 -0
- package/esm2022/app/directives/form-template.directive.mjs +21 -0
- package/{esm2020 → esm2022}/app/directives/submit-button.directive.mjs +4 -4
- package/esm2022/app/directives/validators/compare.directive.mjs +48 -0
- package/esm2022/app/directives/validators/control.directive.mjs +269 -0
- package/esm2022/app/directives/validators/daterange.directive.mjs +42 -0
- package/esm2022/app/directives/validators/email.directive.mjs +42 -0
- package/esm2022/app/directives/validators/emails.directive.mjs +42 -0
- package/esm2022/app/directives/validators/function.directive.mjs +40 -0
- package/esm2022/app/directives/validators/greater-equal.directive.mjs +41 -0
- package/esm2022/app/directives/validators/greater.directive.mjs +41 -0
- package/esm2022/app/directives/validators/integer.directive.mjs +40 -0
- package/esm2022/app/directives/validators/lesser-equal.directive.mjs +41 -0
- package/esm2022/app/directives/validators/lesser.directive.mjs +41 -0
- package/esm2022/app/directives/validators/max.directive.mjs +37 -0
- package/esm2022/app/directives/validators/maxlength.directive.mjs +36 -0
- package/esm2022/app/directives/validators/min.directive.mjs +37 -0
- package/esm2022/app/directives/validators/minlength.directive.mjs +36 -0
- package/esm2022/app/directives/validators/no-fs-validators.directive.mjs +53 -0
- package/esm2022/app/directives/validators/numeric.directive.mjs +42 -0
- package/esm2022/app/directives/validators/pattern.directive.mjs +36 -0
- package/esm2022/app/directives/validators/phone.directive.mjs +42 -0
- package/esm2022/app/directives/validators/required.directive.mjs +66 -0
- package/esm2022/app/directives/validators/url.directive.mjs +43 -0
- package/esm2022/app/directives/validators/validate.directive.mjs +42 -0
- package/esm2022/app/fs-form.module.mjs +209 -0
- package/esm2022/app/guards/form-deactivate.guard.mjs +44 -0
- package/{esm2020 → esm2022}/app/helpers/get-active-route.mjs +1 -1
- package/esm2022/app/helpers/get-form-errors.mjs +25 -0
- package/esm2022/app/services/fsform.service.mjs +94 -0
- package/esm2022/app/validators/validators.mjs +93 -0
- package/{fesm2020 → fesm2022}/firestitch-form.mjs +383 -319
- package/fesm2022/firestitch-form.mjs.map +1 -0
- package/package.json +5 -11
- package/esm2020/app/components/confirm-unsaved/confirm-unsaved.component.mjs +0 -44
- package/esm2020/app/components/form-dialog-actions/form-dialog-actions.component.mjs +0 -75
- package/esm2020/app/components/form-template/form-template.component.mjs +0 -31
- package/esm2020/app/components/form-template-outlet/form-template-outlet.component.mjs +0 -30
- package/esm2020/app/directives/button.directive.mjs +0 -166
- package/esm2020/app/directives/form/form.directive.mjs +0 -689
- package/esm2020/app/directives/form-dialog-close.directive.mjs +0 -54
- package/esm2020/app/directives/form-template.directive.mjs +0 -20
- package/esm2020/app/directives/validators/compare.directive.mjs +0 -47
- package/esm2020/app/directives/validators/control.directive.mjs +0 -258
- package/esm2020/app/directives/validators/daterange.directive.mjs +0 -41
- package/esm2020/app/directives/validators/email.directive.mjs +0 -41
- package/esm2020/app/directives/validators/emails.directive.mjs +0 -41
- package/esm2020/app/directives/validators/function.directive.mjs +0 -41
- package/esm2020/app/directives/validators/greater-equal.directive.mjs +0 -40
- package/esm2020/app/directives/validators/greater.directive.mjs +0 -40
- package/esm2020/app/directives/validators/integer.directive.mjs +0 -39
- package/esm2020/app/directives/validators/lesser-equal.directive.mjs +0 -40
- package/esm2020/app/directives/validators/lesser.directive.mjs +0 -40
- package/esm2020/app/directives/validators/max.directive.mjs +0 -36
- package/esm2020/app/directives/validators/maxlength.directive.mjs +0 -35
- package/esm2020/app/directives/validators/min.directive.mjs +0 -36
- package/esm2020/app/directives/validators/minlength.directive.mjs +0 -35
- package/esm2020/app/directives/validators/no-fs-validators.directive.mjs +0 -53
- package/esm2020/app/directives/validators/numeric.directive.mjs +0 -41
- package/esm2020/app/directives/validators/pattern.directive.mjs +0 -35
- package/esm2020/app/directives/validators/phone.directive.mjs +0 -41
- package/esm2020/app/directives/validators/required.directive.mjs +0 -69
- package/esm2020/app/directives/validators/url.directive.mjs +0 -45
- package/esm2020/app/directives/validators/validate.directive.mjs +0 -43
- package/esm2020/app/fs-form.module.mjs +0 -209
- package/esm2020/app/guards/form-deactivate.guard.mjs +0 -42
- package/esm2020/app/helpers/get-form-errors.mjs +0 -25
- package/esm2020/app/services/fsform.service.mjs +0 -92
- package/esm2020/app/validators/validators.mjs +0 -93
- package/fesm2015/firestitch-form.mjs +0 -2579
- package/fesm2015/firestitch-form.mjs.map +0 -1
- package/fesm2020/firestitch-form.mjs.map +0 -1
- /package/{esm2020 → esm2022}/app/components/confirm-unsaved/index.mjs +0 -0
- /package/{esm2020 → esm2022}/app/components/form-dialog-actions/index.mjs +0 -0
- /package/{esm2020 → esm2022}/app/components/index.mjs +0 -0
- /package/{esm2020 → esm2022}/app/consts/error-messages.const.mjs +0 -0
- /package/{esm2020 → esm2022}/app/directives/form/index.mjs +0 -0
- /package/{esm2020 → esm2022}/app/directives/index.mjs +0 -0
- /package/{esm2020 → esm2022}/app/directives/validators/index.mjs +0 -0
- /package/{esm2020 → esm2022}/app/enums/confirm-result.mjs +0 -0
- /package/{esm2020 → esm2022}/app/enums/form-status.mjs +0 -0
- /package/{esm2020 → esm2022}/app/enums/index.mjs +0 -0
- /package/{esm2020 → esm2022}/app/helpers/confirm-result-continue.mjs +0 -0
- /package/{esm2020 → esm2022}/app/helpers/index.mjs +0 -0
- /package/{esm2020 → esm2022}/app/helpers/is-enabled.mjs +0 -0
- /package/{esm2020 → esm2022}/app/interfaces/async-validator.mjs +0 -0
- /package/{esm2020 → esm2022}/app/interfaces/confirm-config.mjs +0 -0
- /package/{esm2020 → esm2022}/app/interfaces/confirm-tab-group.mjs +0 -0
- /package/{esm2020 → esm2022}/app/interfaces/index.mjs +0 -0
- /package/{esm2020 → esm2022}/app/interfaces/submit-event.mjs +0 -0
- /package/{esm2020 → esm2022}/app/interfaces/submitted-event.mjs +0 -0
- /package/{esm2020 → esm2022}/app/interfaces/validator.mjs +0 -0
- /package/{esm2020 → esm2022}/app/providers/validate-messages.provider.mjs +0 -0
- /package/{esm2020 → esm2022}/firestitch-form.mjs +0 -0
- /package/{esm2020 → esm2022}/public_api.mjs +0 -0
|
@@ -24,10 +24,17 @@ import { values, keys, isObject } from 'lodash-es';
|
|
|
24
24
|
import { isValid } from 'date-fns';
|
|
25
25
|
|
|
26
26
|
class ConfirmUnsavedComponent {
|
|
27
|
+
_data;
|
|
28
|
+
_dialogRef;
|
|
29
|
+
saveLabel;
|
|
30
|
+
discardLabel;
|
|
31
|
+
cancelLabel;
|
|
32
|
+
message;
|
|
33
|
+
title;
|
|
34
|
+
_destroy$ = new Subject();
|
|
27
35
|
constructor(_data, _dialogRef) {
|
|
28
36
|
this._data = _data;
|
|
29
37
|
this._dialogRef = _dialogRef;
|
|
30
|
-
this._destroy$ = new Subject();
|
|
31
38
|
}
|
|
32
39
|
ngOnInit() {
|
|
33
40
|
this.saveLabel = this._data.saveLabel;
|
|
@@ -46,19 +53,19 @@ class ConfirmUnsavedComponent {
|
|
|
46
53
|
this._dialogRef.close(null);
|
|
47
54
|
}
|
|
48
55
|
ngOnDestroy() {
|
|
49
|
-
this._destroy$.next();
|
|
56
|
+
this._destroy$.next(null);
|
|
50
57
|
this._destroy$.complete();
|
|
51
58
|
}
|
|
59
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ConfirmUnsavedComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1.MatDialogRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
60
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ConfirmUnsavedComponent, selector: "ng-component", ngImport: i0, template: "<fs-dialog>\n <h1 mat-dialog-title>{{title}}</h1>\n <mat-dialog-content>\n {{message}}\n </mat-dialog-content> \n <mat-dialog-actions>\n <button\n type=\"button\"\n color=\"primary\"\n (click)=\"save()\"\n fsFormButtonStandalone\n mat-button>\n {{saveLabel}}\n </button>\n <button\n type=\"button\"\n (click)=\"discard()\"\n fsFormButtonStandalone\n mat-button>\n {{discardLabel}}\n </button> \n <button\n type=\"button\"\n (click)=\"cancel()\"\n fsFormButtonStandalone\n mat-button>\n {{cancelLabel}}\n </button> \n </mat-dialog-actions>\n</fs-dialog>\n", styles: [":host{width:100%}.form-buttons.save-create .close-button:not(.cancel-button){float:right}\n"], dependencies: [{ kind: "component", type: i1$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: i1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: i3.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode", "mobileButtonPlacement", "mobileWidth", "mode", "buttonLayout", "dock", "dockable", "fullscreenPercent"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
52
61
|
}
|
|
53
|
-
|
|
54
|
-
ConfirmUnsavedComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ConfirmUnsavedComponent, selector: "ng-component", ngImport: i0, template: "<fs-dialog>\n <h1 mat-dialog-title>{{title}}</h1>\n <mat-dialog-content>\n {{message}}\n </mat-dialog-content> \n <mat-dialog-actions>\n <button\n type=\"button\"\n color=\"primary\"\n (click)=\"save()\"\n fsFormButtonStandalone\n mat-button>\n {{saveLabel}}\n </button>\n <button\n type=\"button\"\n (click)=\"discard()\"\n fsFormButtonStandalone\n mat-button>\n {{discardLabel}}\n </button> \n <button\n type=\"button\"\n (click)=\"cancel()\"\n fsFormButtonStandalone\n mat-button>\n {{cancelLabel}}\n </button> \n </mat-dialog-actions>\n</fs-dialog>\n", styles: [":host{width:100%}.form-buttons.save-create .close-button:not(.cancel-button){float:right}\n"], dependencies: [{ kind: "component", type: i1$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "component", type: i3.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode", "mobileButtonPlacement", "mobileWidth", "mode", "buttonLayout", "dock", "dockable", "fullscreenPercent"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
55
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ConfirmUnsavedComponent, decorators: [{
|
|
62
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ConfirmUnsavedComponent, decorators: [{
|
|
56
63
|
type: Component,
|
|
57
64
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, template: "<fs-dialog>\n <h1 mat-dialog-title>{{title}}</h1>\n <mat-dialog-content>\n {{message}}\n </mat-dialog-content> \n <mat-dialog-actions>\n <button\n type=\"button\"\n color=\"primary\"\n (click)=\"save()\"\n fsFormButtonStandalone\n mat-button>\n {{saveLabel}}\n </button>\n <button\n type=\"button\"\n (click)=\"discard()\"\n fsFormButtonStandalone\n mat-button>\n {{discardLabel}}\n </button> \n <button\n type=\"button\"\n (click)=\"cancel()\"\n fsFormButtonStandalone\n mat-button>\n {{cancelLabel}}\n </button> \n </mat-dialog-actions>\n</fs-dialog>\n", styles: [":host{width:100%}.form-buttons.save-create .close-button:not(.cancel-button){float:right}\n"] }]
|
|
58
|
-
}], ctorParameters:
|
|
65
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
59
66
|
type: Inject,
|
|
60
67
|
args: [MAT_DIALOG_DATA]
|
|
61
|
-
}] }, { type: i1.MatDialogRef }]
|
|
68
|
+
}] }, { type: i1.MatDialogRef }] });
|
|
62
69
|
|
|
63
70
|
var ConfirmResult;
|
|
64
71
|
(function (ConfirmResult) {
|
|
@@ -93,10 +100,12 @@ var FormStatus;
|
|
|
93
100
|
})(FormStatus || (FormStatus = {}));
|
|
94
101
|
|
|
95
102
|
class FsForm {
|
|
103
|
+
_dialog;
|
|
104
|
+
// value is array for future possibilities of extension
|
|
105
|
+
_formDirectiveStore = new WeakMap();
|
|
106
|
+
_eventBus;
|
|
96
107
|
constructor(_dialog) {
|
|
97
108
|
this._dialog = _dialog;
|
|
98
|
-
// value is array for future possibilities of extension
|
|
99
|
-
this._formDirectiveStore = new WeakMap();
|
|
100
109
|
this._eventBus = new Subject();
|
|
101
110
|
}
|
|
102
111
|
// @deprecated
|
|
@@ -166,17 +175,19 @@ class FsForm {
|
|
|
166
175
|
}
|
|
167
176
|
}));
|
|
168
177
|
}
|
|
178
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsForm, deps: [{ token: i1.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
179
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsForm, providedIn: 'root' });
|
|
169
180
|
}
|
|
170
|
-
|
|
171
|
-
FsForm.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FsForm, providedIn: 'root' });
|
|
172
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FsForm, decorators: [{
|
|
181
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsForm, decorators: [{
|
|
173
182
|
type: Injectable,
|
|
174
183
|
args: [{
|
|
175
184
|
providedIn: 'root',
|
|
176
185
|
}]
|
|
177
|
-
}], ctorParameters:
|
|
186
|
+
}], ctorParameters: () => [{ type: i1.MatDialog }] });
|
|
178
187
|
|
|
179
188
|
class FormDeactivateGuard {
|
|
189
|
+
_form;
|
|
190
|
+
_route;
|
|
180
191
|
constructor(_form, _route) {
|
|
181
192
|
this._form = _form;
|
|
182
193
|
this._route = _route;
|
|
@@ -198,15 +209,15 @@ class FormDeactivateGuard {
|
|
|
198
209
|
return confirmResultContinue(result);
|
|
199
210
|
}));
|
|
200
211
|
}
|
|
212
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormDeactivateGuard, deps: [{ token: FsForm }, { token: i2.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
213
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormDeactivateGuard, providedIn: 'root' });
|
|
201
214
|
}
|
|
202
|
-
|
|
203
|
-
FormDeactivateGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormDeactivateGuard, providedIn: 'root' });
|
|
204
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormDeactivateGuard, decorators: [{
|
|
215
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormDeactivateGuard, decorators: [{
|
|
205
216
|
type: Injectable,
|
|
206
217
|
args: [{
|
|
207
218
|
providedIn: 'root',
|
|
208
219
|
}]
|
|
209
|
-
}], ctorParameters:
|
|
220
|
+
}], ctorParameters: () => [{ type: FsForm }, { type: i2.ActivatedRoute }] });
|
|
210
221
|
|
|
211
222
|
function getFormErrors(control, key) {
|
|
212
223
|
let errors = null;
|
|
@@ -233,12 +244,55 @@ function getFormErrors(control, key) {
|
|
|
233
244
|
}
|
|
234
245
|
|
|
235
246
|
class FsFormDirective {
|
|
247
|
+
ngForm;
|
|
248
|
+
_form;
|
|
249
|
+
_element;
|
|
250
|
+
_message;
|
|
251
|
+
_ngZone;
|
|
252
|
+
_cdRef;
|
|
253
|
+
_dialogRef;
|
|
254
|
+
_drawerRef;
|
|
255
|
+
_route;
|
|
256
|
+
wrapperSelector = '.fs-form-wrapper,.mat-form-field';
|
|
257
|
+
messageSelector = '.fs-form-message,.mat-form-field-subscript-wrapper';
|
|
258
|
+
hintSelector = '.fs-form-hint,.mat-form-field-hint-wrapper';
|
|
259
|
+
labelSelector = '.fs-form-label,.mat-form-field-label';
|
|
260
|
+
autocomplete = false;
|
|
261
|
+
shortcuts = true; // Ctrl + s
|
|
262
|
+
confirm = true;
|
|
263
|
+
confirmDialog = true;
|
|
264
|
+
confirmDrawer = true;
|
|
265
|
+
confirmBrowser = true;
|
|
266
|
+
confirmTabs = true;
|
|
267
|
+
dirtySubmitButton = true;
|
|
236
268
|
set submit(submit$) {
|
|
237
269
|
this._submit$ = submit$;
|
|
238
270
|
}
|
|
239
271
|
get submit() {
|
|
240
272
|
return this._submit$;
|
|
241
273
|
}
|
|
274
|
+
successDelay = 0;
|
|
275
|
+
errorDelay = 1000;
|
|
276
|
+
tabGroup;
|
|
277
|
+
deactivationGuard = true;
|
|
278
|
+
submitEvent = new EventEmitter();
|
|
279
|
+
invalid = new EventEmitter();
|
|
280
|
+
valid = new EventEmitter();
|
|
281
|
+
submitted = new EventEmitter();
|
|
282
|
+
reseted = new EventEmitter();
|
|
283
|
+
cleared = new EventEmitter();
|
|
284
|
+
fsFormClass = true;
|
|
285
|
+
_tabGroups = new QueryList();
|
|
286
|
+
_buttons = new QueryList();
|
|
287
|
+
_registerControl;
|
|
288
|
+
_activeSubmitButton;
|
|
289
|
+
_dialogBackdropEscape = false;
|
|
290
|
+
_snapshot = {};
|
|
291
|
+
_activatedRouteConfig;
|
|
292
|
+
_status$ = new BehaviorSubject(FormStatus.Valid);
|
|
293
|
+
_destroy$ = new Subject();
|
|
294
|
+
_confirmed = false;
|
|
295
|
+
_submit$ = null;
|
|
242
296
|
constructor(ngForm, _form, _element, _message, _ngZone, _cdRef, _dialogRef, _drawerRef, _route) {
|
|
243
297
|
this.ngForm = ngForm;
|
|
244
298
|
this._form = _form;
|
|
@@ -249,36 +303,6 @@ class FsFormDirective {
|
|
|
249
303
|
this._dialogRef = _dialogRef;
|
|
250
304
|
this._drawerRef = _drawerRef;
|
|
251
305
|
this._route = _route;
|
|
252
|
-
this.wrapperSelector = '.fs-form-wrapper,.mat-form-field';
|
|
253
|
-
this.messageSelector = '.fs-form-message,.mat-form-field-subscript-wrapper';
|
|
254
|
-
this.hintSelector = '.fs-form-hint,.mat-form-field-hint-wrapper';
|
|
255
|
-
this.labelSelector = '.fs-form-label,.mat-form-field-label';
|
|
256
|
-
this.autocomplete = false;
|
|
257
|
-
this.shortcuts = true; // Ctrl + s
|
|
258
|
-
this.confirm = true;
|
|
259
|
-
this.confirmDialog = true;
|
|
260
|
-
this.confirmDrawer = true;
|
|
261
|
-
this.confirmBrowser = true;
|
|
262
|
-
this.confirmTabs = true;
|
|
263
|
-
this.dirtySubmitButton = true;
|
|
264
|
-
this.successDelay = 0;
|
|
265
|
-
this.errorDelay = 1000;
|
|
266
|
-
this.deactivationGuard = true;
|
|
267
|
-
this.submitEvent = new EventEmitter();
|
|
268
|
-
this.invalid = new EventEmitter();
|
|
269
|
-
this.valid = new EventEmitter();
|
|
270
|
-
this.submitted = new EventEmitter();
|
|
271
|
-
this.reseted = new EventEmitter();
|
|
272
|
-
this.cleared = new EventEmitter();
|
|
273
|
-
this.fsFormClass = true;
|
|
274
|
-
this._tabGroups = new QueryList();
|
|
275
|
-
this._buttons = new QueryList();
|
|
276
|
-
this._dialogBackdropEscape = false;
|
|
277
|
-
this._snapshot = {};
|
|
278
|
-
this._status$ = new BehaviorSubject(FormStatus.Valid);
|
|
279
|
-
this._destroy$ = new Subject();
|
|
280
|
-
this._confirmed = false;
|
|
281
|
-
this._submit$ = null;
|
|
282
306
|
}
|
|
283
307
|
get submitting() {
|
|
284
308
|
return this._status$.getValue() === FormStatus.Submitting;
|
|
@@ -369,7 +393,7 @@ class FsFormDirective {
|
|
|
369
393
|
}
|
|
370
394
|
ngOnDestroy() {
|
|
371
395
|
this._cleanupCanDeactivate();
|
|
372
|
-
this._destroy$.next();
|
|
396
|
+
this._destroy$.next(null);
|
|
373
397
|
this._destroy$.complete();
|
|
374
398
|
}
|
|
375
399
|
createSnapshot() {
|
|
@@ -512,7 +536,7 @@ class FsFormDirective {
|
|
|
512
536
|
event.preventDefault();
|
|
513
537
|
if (this.shortcuts) {
|
|
514
538
|
if (this._elementInForm(document.activeElement)) {
|
|
515
|
-
this.ngForm.ngSubmit.next();
|
|
539
|
+
this.ngForm.ngSubmit.next(null);
|
|
516
540
|
}
|
|
517
541
|
}
|
|
518
542
|
}
|
|
@@ -630,7 +654,7 @@ class FsFormDirective {
|
|
|
630
654
|
.pipe(filter((status) => status === FormStatus.Success || status === FormStatus.Error), takeUntil(this._destroy$))
|
|
631
655
|
.subscribe((status) => {
|
|
632
656
|
if (status === FormStatus.Success) {
|
|
633
|
-
subscriber.next();
|
|
657
|
+
subscriber.next(null);
|
|
634
658
|
subscriber.complete();
|
|
635
659
|
}
|
|
636
660
|
else {
|
|
@@ -639,7 +663,7 @@ class FsFormDirective {
|
|
|
639
663
|
});
|
|
640
664
|
}
|
|
641
665
|
else {
|
|
642
|
-
subscriber.next();
|
|
666
|
+
subscriber.next(null);
|
|
643
667
|
subscriber.complete();
|
|
644
668
|
}
|
|
645
669
|
});
|
|
@@ -652,12 +676,13 @@ class FsFormDirective {
|
|
|
652
676
|
return iif(() => this.confirm && this.confirmDrawer, this.triggerConfirm()
|
|
653
677
|
.pipe(map((result) => confirmResultContinue(result)), tap((result) => {
|
|
654
678
|
if (result) {
|
|
655
|
-
subscriber.next();
|
|
679
|
+
subscriber.next(null);
|
|
656
680
|
subscriber.complete();
|
|
657
681
|
}
|
|
658
682
|
})), defer(() => {
|
|
659
|
-
subscriber.next();
|
|
683
|
+
subscriber.next(null);
|
|
660
684
|
subscriber.complete();
|
|
685
|
+
return of(null);
|
|
661
686
|
}));
|
|
662
687
|
}), takeUntil(this._destroy$))
|
|
663
688
|
.subscribe();
|
|
@@ -820,16 +845,16 @@ class FsFormDirective {
|
|
|
820
845
|
this._activatedRouteConfig.canDeactivate.splice(guardIndex, 1);
|
|
821
846
|
this._form.removeFormDirective(this._activatedRouteConfig.component);
|
|
822
847
|
}
|
|
848
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormDirective, deps: [{ token: NgForm }, { token: FsForm }, { token: i0.ElementRef }, { token: i2$1.FsMessage }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: MatDialogRef, optional: true }, { token: DrawerRef, optional: true }, { token: i2.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Directive });
|
|
849
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.12", 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", deactivationGuard: "deactivationGuard" }, outputs: { submitEvent: "fsForm", invalid: "invalid", valid: "valid", submitted: "submitted", reseted: "reseted", cleared: "cleared" }, host: { properties: { "class.fs-form": "this.fsFormClass" } }, queries: [{ propertyName: "_tabGroups", predicate: MatTabGroup, descendants: true }], exportAs: ["fsForm"], usesOnChanges: true, ngImport: i0 });
|
|
823
850
|
}
|
|
824
|
-
|
|
825
|
-
FsFormDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", 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", deactivationGuard: "deactivationGuard" }, outputs: { submitEvent: "fsForm", invalid: "invalid", valid: "valid", submitted: "submitted", reseted: "reseted", cleared: "cleared" }, host: { properties: { "class.fs-form": "this.fsFormClass" } }, queries: [{ propertyName: "_tabGroups", predicate: MatTabGroup, descendants: true }], exportAs: ["fsForm"], usesOnChanges: true, ngImport: i0 });
|
|
826
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FsFormDirective, decorators: [{
|
|
851
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormDirective, decorators: [{
|
|
827
852
|
type: Directive,
|
|
828
853
|
args: [{
|
|
829
854
|
selector: '[fsForm]',
|
|
830
855
|
exportAs: 'fsForm',
|
|
831
856
|
}]
|
|
832
|
-
}], ctorParameters:
|
|
857
|
+
}], ctorParameters: () => [{ type: i1$2.NgForm, decorators: [{
|
|
833
858
|
type: Inject,
|
|
834
859
|
args: [NgForm]
|
|
835
860
|
}] }, { type: FsForm }, { type: i0.ElementRef }, { type: i2$1.FsMessage }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i1.MatDialogRef, decorators: [{
|
|
@@ -842,7 +867,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
842
867
|
}, {
|
|
843
868
|
type: Inject,
|
|
844
869
|
args: [DrawerRef]
|
|
845
|
-
}] }, { type: i2.ActivatedRoute }]
|
|
870
|
+
}] }, { type: i2.ActivatedRoute }], propDecorators: { wrapperSelector: [{
|
|
846
871
|
type: Input
|
|
847
872
|
}], messageSelector: [{
|
|
848
873
|
type: Input
|
|
@@ -898,11 +923,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
898
923
|
}] } });
|
|
899
924
|
|
|
900
925
|
class FsFormDialogCloseDirective {
|
|
926
|
+
_form;
|
|
927
|
+
_dialogRef;
|
|
928
|
+
closeData;
|
|
929
|
+
type = 'button';
|
|
930
|
+
_destroy$ = new Subject();
|
|
901
931
|
constructor(_form, _dialogRef) {
|
|
902
932
|
this._form = _form;
|
|
903
933
|
this._dialogRef = _dialogRef;
|
|
904
|
-
this.type = 'button';
|
|
905
|
-
this._destroy$ = new Subject();
|
|
906
934
|
}
|
|
907
935
|
closeClick() {
|
|
908
936
|
if (this._form) {
|
|
@@ -917,22 +945,22 @@ class FsFormDialogCloseDirective {
|
|
|
917
945
|
}
|
|
918
946
|
}
|
|
919
947
|
ngOnDestroy() {
|
|
920
|
-
this._destroy$.next();
|
|
948
|
+
this._destroy$.next(null);
|
|
921
949
|
this._destroy$.complete();
|
|
922
950
|
}
|
|
951
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormDialogCloseDirective, deps: [{ token: FsFormDirective, optional: true }, { token: i1.MatDialogRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
952
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.12", type: FsFormDialogCloseDirective, selector: "[fsFormDialogClose],[fs-form-dialog-close]", inputs: { closeData: "closeData" }, host: { listeners: { "click": "closeClick($event.target)" }, properties: { "attr.type": "this.type" } }, ngImport: i0 });
|
|
923
953
|
}
|
|
924
|
-
|
|
925
|
-
FsFormDialogCloseDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FsFormDialogCloseDirective, selector: "[fsFormDialogClose],[fs-form-dialog-close]", inputs: { closeData: "closeData" }, host: { listeners: { "click": "closeClick($event.target)" }, properties: { "attr.type": "this.type" } }, ngImport: i0 });
|
|
926
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FsFormDialogCloseDirective, decorators: [{
|
|
954
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormDialogCloseDirective, decorators: [{
|
|
927
955
|
type: Directive,
|
|
928
956
|
args: [{
|
|
929
957
|
selector: '[fsFormDialogClose],[fs-form-dialog-close]',
|
|
930
958
|
}]
|
|
931
|
-
}], ctorParameters:
|
|
959
|
+
}], ctorParameters: () => [{ type: FsFormDirective, decorators: [{
|
|
932
960
|
type: Optional
|
|
933
961
|
}] }, { type: i1.MatDialogRef, decorators: [{
|
|
934
962
|
type: Optional
|
|
935
|
-
}] }]
|
|
963
|
+
}] }], propDecorators: { closeData: [{
|
|
936
964
|
type: Input
|
|
937
965
|
}], type: [{
|
|
938
966
|
type: HostBinding,
|
|
@@ -943,17 +971,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
943
971
|
}] } });
|
|
944
972
|
|
|
945
973
|
class FsButtonDirective {
|
|
974
|
+
_matButton;
|
|
975
|
+
_form;
|
|
976
|
+
_elementRef;
|
|
977
|
+
_cdRef;
|
|
978
|
+
name;
|
|
979
|
+
dirtySubmit = true;
|
|
980
|
+
form;
|
|
981
|
+
transitionStyle = null;
|
|
982
|
+
active = false;
|
|
983
|
+
submit = false;
|
|
984
|
+
_previousDisabled = false;
|
|
985
|
+
_destroy$ = new Subject();
|
|
946
986
|
constructor(_matButton, _form, _elementRef, _cdRef) {
|
|
947
987
|
this._matButton = _matButton;
|
|
948
988
|
this._form = _form;
|
|
949
989
|
this._elementRef = _elementRef;
|
|
950
990
|
this._cdRef = _cdRef;
|
|
951
|
-
this.dirtySubmit = true;
|
|
952
|
-
this.transitionStyle = null;
|
|
953
|
-
this.active = false;
|
|
954
|
-
this.submit = false;
|
|
955
|
-
this._previousDisabled = false;
|
|
956
|
-
this._destroy$ = new Subject();
|
|
957
991
|
}
|
|
958
992
|
ngOnInit() {
|
|
959
993
|
this.submit = this._elementRef.nativeElement.getAttribute('type') === 'submit';
|
|
@@ -1039,7 +1073,7 @@ class FsButtonDirective {
|
|
|
1039
1073
|
this._resetClass();
|
|
1040
1074
|
}
|
|
1041
1075
|
ngOnDestroy() {
|
|
1042
|
-
this._destroy$.next();
|
|
1076
|
+
this._destroy$.next(null);
|
|
1043
1077
|
this._destroy$.complete();
|
|
1044
1078
|
this.form?.removeButton(this);
|
|
1045
1079
|
}
|
|
@@ -1075,21 +1109,21 @@ class FsButtonDirective {
|
|
|
1075
1109
|
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;
|
|
1076
1110
|
}
|
|
1077
1111
|
}
|
|
1112
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsButtonDirective, deps: [{ token: i1$1.MatButton, host: true, optional: true }, { token: FsFormDirective, optional: true }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1113
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.12", type: FsButtonDirective, selector: "[mat-raised-button]:not([fsFormButtonStandalone]),[mat-button]:not([fsFormButtonStandalone]),[mat-flat-button]:not([fsFormButtonStandalone]),[mat-stroked-button]:not([fsFormButtonStandalone])", inputs: { name: "name", dirtySubmit: "dirtySubmit", form: "form" }, host: { properties: { "style.transition": "this.transitionStyle" } }, ngImport: i0 });
|
|
1078
1114
|
}
|
|
1079
|
-
|
|
1080
|
-
FsButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FsButtonDirective, selector: "[mat-raised-button]:not([fsFormButtonStandalone]),[mat-button]:not([fsFormButtonStandalone]),[mat-flat-button]:not([fsFormButtonStandalone]),[mat-stroked-button]:not([fsFormButtonStandalone])", inputs: { name: "name", dirtySubmit: "dirtySubmit", form: "form" }, host: { properties: { "style.transition": "this.transitionStyle" } }, ngImport: i0 });
|
|
1081
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FsButtonDirective, decorators: [{
|
|
1115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsButtonDirective, decorators: [{
|
|
1082
1116
|
type: Directive,
|
|
1083
1117
|
args: [{
|
|
1084
1118
|
selector: '[mat-raised-button]:not([fsFormButtonStandalone]),[mat-button]:not([fsFormButtonStandalone]),[mat-flat-button]:not([fsFormButtonStandalone]),[mat-stroked-button]:not([fsFormButtonStandalone])',
|
|
1085
1119
|
}]
|
|
1086
|
-
}], ctorParameters:
|
|
1120
|
+
}], ctorParameters: () => [{ type: i1$1.MatButton, decorators: [{
|
|
1087
1121
|
type: Optional
|
|
1088
1122
|
}, {
|
|
1089
1123
|
type: Host
|
|
1090
1124
|
}] }, { type: FsFormDirective, decorators: [{
|
|
1091
1125
|
type: Optional
|
|
1092
|
-
}] }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]
|
|
1126
|
+
}] }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }], propDecorators: { name: [{
|
|
1093
1127
|
type: Input
|
|
1094
1128
|
}], dirtySubmit: [{
|
|
1095
1129
|
type: Input
|
|
@@ -1101,17 +1135,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1101
1135
|
}] } });
|
|
1102
1136
|
|
|
1103
1137
|
class FsFormDialogActionsComponent {
|
|
1138
|
+
_form;
|
|
1139
|
+
_dialogRef;
|
|
1140
|
+
_cdRef;
|
|
1141
|
+
save = true;
|
|
1142
|
+
create = false;
|
|
1143
|
+
close = false;
|
|
1144
|
+
done = false;
|
|
1145
|
+
closeData = null;
|
|
1146
|
+
name;
|
|
1147
|
+
dirty = false;
|
|
1148
|
+
_destroy$ = new Subject();
|
|
1104
1149
|
constructor(_form, _dialogRef, _cdRef) {
|
|
1105
1150
|
this._form = _form;
|
|
1106
1151
|
this._dialogRef = _dialogRef;
|
|
1107
1152
|
this._cdRef = _cdRef;
|
|
1108
|
-
this.save = true;
|
|
1109
|
-
this.create = false;
|
|
1110
|
-
this.close = false;
|
|
1111
|
-
this.done = false;
|
|
1112
|
-
this.closeData = null;
|
|
1113
|
-
this.dirty = false;
|
|
1114
|
-
this._destroy$ = new Subject();
|
|
1115
1153
|
}
|
|
1116
1154
|
ngOnInit() {
|
|
1117
1155
|
if (this._form) {
|
|
@@ -1136,20 +1174,20 @@ class FsFormDialogActionsComponent {
|
|
|
1136
1174
|
}
|
|
1137
1175
|
}
|
|
1138
1176
|
ngOnDestroy() {
|
|
1139
|
-
this._destroy$.next();
|
|
1177
|
+
this._destroy$.next(null);
|
|
1140
1178
|
this._destroy$.complete();
|
|
1141
1179
|
}
|
|
1180
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormDialogActionsComponent, deps: [{ token: FsFormDirective, optional: true }, { token: i1.MatDialogRef, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1181
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: FsFormDialogActionsComponent, selector: "fs-form-dialog-actions", inputs: { save: "save", create: "create", close: "close", done: "done", closeData: "closeData", name: "name" }, ngImport: i0, template: "<div class=\"form-buttons\" [ngClass]=\"{ 'save-create': save || create }\">\n <ng-container *ngIf=\"save || create\">\n <button\n mat-button\n type=\"submit\"\n color=\"primary\"\n [name]=\"name\">\n {{create ? 'Create' : 'Save'}}\n </button>\n <button\n mat-button\n type=\"button\"\n class=\"close-button cancel-button\"\n [disabled]=\"close && !dirty && !create\"\n [mat-dialog-close]=\"null\">\n Cancel\n </button>\n </ng-container>\n\n <ng-container *ngIf=\"done\">\n <button\n mat-button\n type=\"button\"\n color=\"primary\"\n [mat-dialog-close]=\"null\">\n Done\n </button>\n </ng-container>\n\n <ng-container *ngIf=\"save || create\">\n <ng-template [ngTemplateOutlet]=\"content\"></ng-template>\n </ng-container>\n\n <ng-container *ngIf=\"close\">\n <button\n mat-button\n type=\"button\"\n class=\"close-button\"\n fsFormDialogClose\n [closeData]=\"closeData\"\n [color]=\"dirty ? 'basic' : 'primary'\">\n Close\n </button>\n </ng-container>\n\n <ng-container *ngIf=\"!(save || create)\">\n <ng-template [ngTemplateOutlet]=\"content\"></ng-template>\n </ng-container>\n</div>\n\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>\n", styles: [":host{width:100%}.form-buttons.save-create .close-button:not(.cancel-button){float:right}\n"], dependencies: [{ kind: "directive", type: i3$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i1$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: i1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: FsFormDialogCloseDirective, selector: "[fsFormDialogClose],[fs-form-dialog-close]", inputs: ["closeData"] }, { kind: "directive", type: FsButtonDirective, selector: "[mat-raised-button]:not([fsFormButtonStandalone]),[mat-button]:not([fsFormButtonStandalone]),[mat-flat-button]:not([fsFormButtonStandalone]),[mat-stroked-button]:not([fsFormButtonStandalone])", inputs: ["name", "dirtySubmit", "form"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1142
1182
|
}
|
|
1143
|
-
|
|
1144
|
-
FsFormDialogActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: FsFormDialogActionsComponent, selector: "fs-form-dialog-actions", inputs: { save: "save", create: "create", close: "close", done: "done", closeData: "closeData", name: "name" }, ngImport: i0, template: "<div class=\"form-buttons\" [ngClass]=\"{ 'save-create': save || create }\">\n <ng-container *ngIf=\"save || create\">\n <button\n mat-button\n type=\"submit\"\n color=\"primary\"\n [name]=\"name\">\n {{create ? 'Create' : 'Save'}}\n </button>\n <button\n mat-button\n type=\"button\"\n class=\"close-button cancel-button\"\n [disabled]=\"close && !dirty && !create\"\n [mat-dialog-close]=\"null\">\n Cancel\n </button>\n </ng-container>\n\n <ng-container *ngIf=\"done\">\n <button\n mat-button\n type=\"button\"\n color=\"primary\"\n [mat-dialog-close]=\"null\">\n Done\n </button>\n </ng-container>\n\n <ng-container *ngIf=\"save || create\">\n <ng-template [ngTemplateOutlet]=\"content\"></ng-template>\n </ng-container>\n\n <ng-container *ngIf=\"close\">\n <button\n mat-button\n type=\"button\"\n class=\"close-button\"\n fsFormDialogClose\n [closeData]=\"closeData\"\n [color]=\"dirty ? 'basic' : 'primary'\">\n Close\n </button>\n </ng-container>\n\n <ng-container *ngIf=\"!(save || create)\">\n <ng-template [ngTemplateOutlet]=\"content\"></ng-template>\n </ng-container>\n</div>\n\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>\n", styles: [":host{width:100%}.form-buttons.save-create .close-button:not(.cancel-button){float:right}\n"], dependencies: [{ kind: "directive", type: i3$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i1$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: FsFormDialogCloseDirective, selector: "[fsFormDialogClose],[fs-form-dialog-close]", inputs: ["closeData"] }, { kind: "directive", type: FsButtonDirective, selector: "[mat-raised-button]:not([fsFormButtonStandalone]),[mat-button]:not([fsFormButtonStandalone]),[mat-flat-button]:not([fsFormButtonStandalone]),[mat-stroked-button]:not([fsFormButtonStandalone])", inputs: ["name", "dirtySubmit", "form"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1145
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FsFormDialogActionsComponent, decorators: [{
|
|
1183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormDialogActionsComponent, decorators: [{
|
|
1146
1184
|
type: Component,
|
|
1147
1185
|
args: [{ selector: 'fs-form-dialog-actions', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"form-buttons\" [ngClass]=\"{ 'save-create': save || create }\">\n <ng-container *ngIf=\"save || create\">\n <button\n mat-button\n type=\"submit\"\n color=\"primary\"\n [name]=\"name\">\n {{create ? 'Create' : 'Save'}}\n </button>\n <button\n mat-button\n type=\"button\"\n class=\"close-button cancel-button\"\n [disabled]=\"close && !dirty && !create\"\n [mat-dialog-close]=\"null\">\n Cancel\n </button>\n </ng-container>\n\n <ng-container *ngIf=\"done\">\n <button\n mat-button\n type=\"button\"\n color=\"primary\"\n [mat-dialog-close]=\"null\">\n Done\n </button>\n </ng-container>\n\n <ng-container *ngIf=\"save || create\">\n <ng-template [ngTemplateOutlet]=\"content\"></ng-template>\n </ng-container>\n\n <ng-container *ngIf=\"close\">\n <button\n mat-button\n type=\"button\"\n class=\"close-button\"\n fsFormDialogClose\n [closeData]=\"closeData\"\n [color]=\"dirty ? 'basic' : 'primary'\">\n Close\n </button>\n </ng-container>\n\n <ng-container *ngIf=\"!(save || create)\">\n <ng-template [ngTemplateOutlet]=\"content\"></ng-template>\n </ng-container>\n</div>\n\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>\n", styles: [":host{width:100%}.form-buttons.save-create .close-button:not(.cancel-button){float:right}\n"] }]
|
|
1148
|
-
}], ctorParameters:
|
|
1186
|
+
}], ctorParameters: () => [{ type: FsFormDirective, decorators: [{
|
|
1149
1187
|
type: Optional
|
|
1150
1188
|
}] }, { type: i1.MatDialogRef, decorators: [{
|
|
1151
1189
|
type: Optional
|
|
1152
|
-
}] }, { type: i0.ChangeDetectorRef }]
|
|
1190
|
+
}] }, { type: i0.ChangeDetectorRef }], propDecorators: { save: [{
|
|
1153
1191
|
type: Input
|
|
1154
1192
|
}], create: [{
|
|
1155
1193
|
type: Input
|
|
@@ -1164,6 +1202,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1164
1202
|
}] } });
|
|
1165
1203
|
|
|
1166
1204
|
class FsFormTemplateComponent {
|
|
1205
|
+
templateRef;
|
|
1206
|
+
formTemplate;
|
|
1207
|
+
models;
|
|
1167
1208
|
ngAfterContentInit() {
|
|
1168
1209
|
debugger;
|
|
1169
1210
|
const x = this.models;
|
|
@@ -1175,13 +1216,13 @@ class FsFormTemplateComponent {
|
|
|
1175
1216
|
debugger;
|
|
1176
1217
|
}
|
|
1177
1218
|
constructor() { }
|
|
1219
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1220
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: FsFormTemplateComponent, selector: "fs-form-template", inputs: { formTemplate: "formTemplate" }, queries: [{ propertyName: "models", predicate: NgModel, descendants: true }], viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["templateRef1"], descendants: true }], ngImport: i0, template: "<ng-template #templateRef1>\n <ng-content></ng-content>\n</ng-template>", changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1178
1221
|
}
|
|
1179
|
-
|
|
1180
|
-
FsFormTemplateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: FsFormTemplateComponent, selector: "fs-form-template", inputs: { formTemplate: "formTemplate" }, queries: [{ propertyName: "models", predicate: NgModel, descendants: true }], viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["templateRef1"], descendants: true }], ngImport: i0, template: "<ng-template #templateRef1>\n <ng-content></ng-content>\n</ng-template>", changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1181
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FsFormTemplateComponent, decorators: [{
|
|
1222
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormTemplateComponent, decorators: [{
|
|
1182
1223
|
type: Component,
|
|
1183
1224
|
args: [{ selector: 'fs-form-template', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #templateRef1>\n <ng-content></ng-content>\n</ng-template>" }]
|
|
1184
|
-
}], ctorParameters:
|
|
1225
|
+
}], ctorParameters: () => [], propDecorators: { templateRef: [{
|
|
1185
1226
|
type: ViewChild,
|
|
1186
1227
|
args: ['templateRef1']
|
|
1187
1228
|
}], formTemplate: [{
|
|
@@ -1192,6 +1233,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1192
1233
|
}] } });
|
|
1193
1234
|
|
|
1194
1235
|
class FsFormTemplateOutletComponent {
|
|
1236
|
+
formTemplate;
|
|
1237
|
+
models;
|
|
1195
1238
|
ngOnChanges(changes) {
|
|
1196
1239
|
if (changes.formTemplate?.currentValue) {
|
|
1197
1240
|
}
|
|
@@ -1203,13 +1246,13 @@ class FsFormTemplateOutletComponent {
|
|
|
1203
1246
|
// });
|
|
1204
1247
|
}
|
|
1205
1248
|
constructor() { }
|
|
1249
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormTemplateOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1250
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: FsFormTemplateOutletComponent, selector: "fs-form-template-outlet", inputs: { formTemplate: "formTemplate" }, queries: [{ propertyName: "models", predicate: NgModel, descendants: true }], usesOnChanges: true, ngImport: i0, template: "\n{{formTemplate.templateRef|json}}\n\n<ng-container *ngIf=\"formTemplate\">\n <ng-container [ngTemplateOutlet]=\"formTemplate.templateRef\"></ng-container> \n</ng-container>", dependencies: [{ kind: "directive", type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: i3$1.JsonPipe, name: "json" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1206
1251
|
}
|
|
1207
|
-
|
|
1208
|
-
FsFormTemplateOutletComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: FsFormTemplateOutletComponent, selector: "fs-form-template-outlet", inputs: { formTemplate: "formTemplate" }, queries: [{ propertyName: "models", predicate: NgModel, descendants: true }], usesOnChanges: true, ngImport: i0, template: "\n{{formTemplate.templateRef|json}}\n\n<ng-container *ngIf=\"formTemplate\">\n <ng-container [ngTemplateOutlet]=\"formTemplate.templateRef\"></ng-container> \n</ng-container>", dependencies: [{ kind: "directive", type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: i3$1.JsonPipe, name: "json" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1209
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FsFormTemplateOutletComponent, decorators: [{
|
|
1252
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormTemplateOutletComponent, decorators: [{
|
|
1210
1253
|
type: Component,
|
|
1211
1254
|
args: [{ selector: 'fs-form-template-outlet', changeDetection: ChangeDetectionStrategy.OnPush, template: "\n{{formTemplate.templateRef|json}}\n\n<ng-container *ngIf=\"formTemplate\">\n <ng-container [ngTemplateOutlet]=\"formTemplate.templateRef\"></ng-container> \n</ng-container>" }]
|
|
1212
|
-
}], ctorParameters:
|
|
1255
|
+
}], ctorParameters: () => [], propDecorators: { formTemplate: [{
|
|
1213
1256
|
type: Input
|
|
1214
1257
|
}], models: [{
|
|
1215
1258
|
type: ContentChildren,
|
|
@@ -1218,26 +1261,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1218
1261
|
|
|
1219
1262
|
class FsFormTemplateDirective {
|
|
1220
1263
|
constructor() { }
|
|
1264
|
+
models;
|
|
1221
1265
|
ngAfterContentInit() {
|
|
1222
1266
|
}
|
|
1267
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormTemplateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1268
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.12", type: FsFormTemplateDirective, selector: "[fsFormTemplate]", viewQueries: [{ propertyName: "models", predicate: NgModel, descendants: true }], ngImport: i0 });
|
|
1223
1269
|
}
|
|
1224
|
-
|
|
1225
|
-
FsFormTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FsFormTemplateDirective, selector: "[fsFormTemplate]", viewQueries: [{ propertyName: "models", predicate: NgModel, descendants: true }], ngImport: i0 });
|
|
1226
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FsFormTemplateDirective, decorators: [{
|
|
1270
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormTemplateDirective, decorators: [{
|
|
1227
1271
|
type: Directive,
|
|
1228
1272
|
args: [{
|
|
1229
1273
|
selector: '[fsFormTemplate]',
|
|
1230
1274
|
}]
|
|
1231
|
-
}], ctorParameters:
|
|
1275
|
+
}], ctorParameters: () => [], propDecorators: { models: [{
|
|
1232
1276
|
type: ViewChildren,
|
|
1233
1277
|
args: [NgModel]
|
|
1234
1278
|
}] } });
|
|
1235
1279
|
|
|
1236
1280
|
class FsSubmitButtonDirective extends FsButtonDirective {
|
|
1281
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsSubmitButtonDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1282
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.12", type: FsSubmitButtonDirective, selector: "dummy-selector", usesInheritance: true, ngImport: i0 });
|
|
1237
1283
|
}
|
|
1238
|
-
|
|
1239
|
-
FsSubmitButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FsSubmitButtonDirective, selector: "dummy-selector", usesInheritance: true, ngImport: i0 });
|
|
1240
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FsSubmitButtonDirective, decorators: [{
|
|
1284
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsSubmitButtonDirective, decorators: [{
|
|
1241
1285
|
type: Directive,
|
|
1242
1286
|
args: [{
|
|
1243
1287
|
selector: 'dummy-selector',
|
|
@@ -1276,12 +1320,29 @@ function messageProviderFactory() {
|
|
|
1276
1320
|
}
|
|
1277
1321
|
|
|
1278
1322
|
class FsControlDirective {
|
|
1323
|
+
_elementRef;
|
|
1324
|
+
renderer2;
|
|
1325
|
+
injector;
|
|
1326
|
+
_validateMessages;
|
|
1327
|
+
ngControl;
|
|
1328
|
+
formDirective;
|
|
1329
|
+
wrapperSelector;
|
|
1330
|
+
messageSelector;
|
|
1331
|
+
hintSelector;
|
|
1332
|
+
labelSelector;
|
|
1333
|
+
appendMessageClass = 'fs-form-message';
|
|
1334
|
+
appendLabelClass = 'fs-form-label';
|
|
1335
|
+
appendErrorClass = 'fs-form-error';
|
|
1336
|
+
appendHintClass = 'fs-form-hint';
|
|
1279
1337
|
set validateMessages(messages) {
|
|
1280
1338
|
this._validateMessages = {
|
|
1281
1339
|
...this._validateMessages,
|
|
1282
1340
|
...messages,
|
|
1283
1341
|
};
|
|
1284
1342
|
}
|
|
1343
|
+
errors = [];
|
|
1344
|
+
_control;
|
|
1345
|
+
_destroy$ = new Subject();
|
|
1285
1346
|
constructor(_elementRef, renderer2, injector, _validateMessages, ngControl, formDirective) {
|
|
1286
1347
|
this._elementRef = _elementRef;
|
|
1287
1348
|
this.renderer2 = renderer2;
|
|
@@ -1289,12 +1350,6 @@ class FsControlDirective {
|
|
|
1289
1350
|
this._validateMessages = _validateMessages;
|
|
1290
1351
|
this.ngControl = ngControl;
|
|
1291
1352
|
this.formDirective = formDirective;
|
|
1292
|
-
this.appendMessageClass = 'fs-form-message';
|
|
1293
|
-
this.appendLabelClass = 'fs-form-label';
|
|
1294
|
-
this.appendErrorClass = 'fs-form-error';
|
|
1295
|
-
this.appendHintClass = 'fs-form-hint';
|
|
1296
|
-
this.errors = [];
|
|
1297
|
-
this._destroy$ = new Subject();
|
|
1298
1353
|
if (ngControl) {
|
|
1299
1354
|
this._control = ngControl.control;
|
|
1300
1355
|
}
|
|
@@ -1306,7 +1361,7 @@ class FsControlDirective {
|
|
|
1306
1361
|
this._setupValidators();
|
|
1307
1362
|
}
|
|
1308
1363
|
ngOnDestroy() {
|
|
1309
|
-
this._destroy$.next();
|
|
1364
|
+
this._destroy$.next(null);
|
|
1310
1365
|
this._destroy$.complete();
|
|
1311
1366
|
}
|
|
1312
1367
|
ngAfterContentInit() {
|
|
@@ -1478,12 +1533,12 @@ class FsControlDirective {
|
|
|
1478
1533
|
}
|
|
1479
1534
|
control.updateValueAndValidity();
|
|
1480
1535
|
}
|
|
1536
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsControlDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.Injector }, { token: VALIDATE_MESSAGES, self: true }, { token: i1$2.NgControl, optional: true }, { token: FsFormDirective, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1537
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.12", type: FsControlDirective, selector: "[fsFormControl]", inputs: { wrapperSelector: "wrapperSelector", messageSelector: "messageSelector", hintSelector: "hintSelector", labelSelector: "labelSelector", appendMessageClass: "appendMessageClass", appendLabelClass: "appendLabelClass", appendErrorClass: "appendErrorClass", appendHintClass: "appendHintClass", validateMessages: "validateMessages" }, providers: [
|
|
1538
|
+
VALIDATE_MESSAGE_PROVIDER,
|
|
1539
|
+
], ngImport: i0 });
|
|
1481
1540
|
}
|
|
1482
|
-
|
|
1483
|
-
FsControlDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FsControlDirective, selector: "[fsFormControl]", inputs: { wrapperSelector: "wrapperSelector", messageSelector: "messageSelector", hintSelector: "hintSelector", labelSelector: "labelSelector", appendMessageClass: "appendMessageClass", appendLabelClass: "appendLabelClass", appendErrorClass: "appendErrorClass", appendHintClass: "appendHintClass", validateMessages: "validateMessages" }, providers: [
|
|
1484
|
-
VALIDATE_MESSAGE_PROVIDER,
|
|
1485
|
-
], ngImport: i0 });
|
|
1486
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FsControlDirective, decorators: [{
|
|
1541
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsControlDirective, decorators: [{
|
|
1487
1542
|
type: Directive,
|
|
1488
1543
|
args: [{
|
|
1489
1544
|
selector: '[fsFormControl]',
|
|
@@ -1491,7 +1546,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1491
1546
|
VALIDATE_MESSAGE_PROVIDER,
|
|
1492
1547
|
],
|
|
1493
1548
|
}]
|
|
1494
|
-
}], ctorParameters:
|
|
1549
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.Injector }, { type: undefined, decorators: [{
|
|
1495
1550
|
type: Self
|
|
1496
1551
|
}, {
|
|
1497
1552
|
type: Inject,
|
|
@@ -1503,7 +1558,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1503
1558
|
}, {
|
|
1504
1559
|
type: Inject,
|
|
1505
1560
|
args: [FsFormDirective]
|
|
1506
|
-
}] }]
|
|
1561
|
+
}] }], propDecorators: { wrapperSelector: [{
|
|
1507
1562
|
type: Input
|
|
1508
1563
|
}], messageSelector: [{
|
|
1509
1564
|
type: Input
|
|
@@ -1524,6 +1579,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1524
1579
|
}] } });
|
|
1525
1580
|
|
|
1526
1581
|
class FsFormCompareDirective extends FsControlDirective {
|
|
1582
|
+
fsFormCompare;
|
|
1527
1583
|
set validationMessage(value) {
|
|
1528
1584
|
this._validateMessages.compare = value;
|
|
1529
1585
|
}
|
|
@@ -1546,12 +1602,12 @@ class FsFormCompareDirective extends FsControlDirective {
|
|
|
1546
1602
|
this._control.updateValueAndValidity();
|
|
1547
1603
|
}, false);
|
|
1548
1604
|
}
|
|
1605
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormCompareDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1606
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.12", type: FsFormCompareDirective, selector: "[fsFormCompare]", inputs: { fsFormCompare: "fsFormCompare", validationMessage: ["fsFormCompareMessage", "validationMessage"] }, providers: [
|
|
1607
|
+
VALIDATE_MESSAGE_PROVIDER,
|
|
1608
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1549
1609
|
}
|
|
1550
|
-
|
|
1551
|
-
FsFormCompareDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FsFormCompareDirective, selector: "[fsFormCompare]", inputs: { fsFormCompare: "fsFormCompare", validationMessage: ["fsFormCompareMessage", "validationMessage"] }, providers: [
|
|
1552
|
-
VALIDATE_MESSAGE_PROVIDER,
|
|
1553
|
-
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1554
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FsFormCompareDirective, decorators: [{
|
|
1610
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormCompareDirective, decorators: [{
|
|
1555
1611
|
type: Directive,
|
|
1556
1612
|
args: [{
|
|
1557
1613
|
selector: '[fsFormCompare]',
|
|
@@ -1659,6 +1715,7 @@ function isEnabled(value) {
|
|
|
1659
1715
|
}
|
|
1660
1716
|
|
|
1661
1717
|
class FsFormDateRangeDirective extends FsControlDirective {
|
|
1718
|
+
fsFormDateRange;
|
|
1662
1719
|
set validationMessage(value) {
|
|
1663
1720
|
this._validateMessages.dateRange = value;
|
|
1664
1721
|
}
|
|
@@ -1673,12 +1730,12 @@ class FsFormDateRangeDirective extends FsControlDirective {
|
|
|
1673
1730
|
return null;
|
|
1674
1731
|
}
|
|
1675
1732
|
}
|
|
1733
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormDateRangeDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1734
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.12", type: FsFormDateRangeDirective, selector: "[fsFormDateRange]", inputs: { fsFormDateRange: "fsFormDateRange", validationMessage: ["fsFormDateRangeMessage", "validationMessage"] }, providers: [
|
|
1735
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1736
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1676
1737
|
}
|
|
1677
|
-
|
|
1678
|
-
FsFormDateRangeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FsFormDateRangeDirective, selector: "[fsFormDateRange]", inputs: { fsFormDateRange: "fsFormDateRange", validationMessage: ["fsFormDateRangeMessage", "validationMessage"] }, providers: [
|
|
1679
|
-
VALIDATE_MESSAGE_PROVIDER
|
|
1680
|
-
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1681
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FsFormDateRangeDirective, decorators: [{
|
|
1738
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormDateRangeDirective, decorators: [{
|
|
1682
1739
|
type: Directive,
|
|
1683
1740
|
args: [{
|
|
1684
1741
|
selector: '[fsFormDateRange]',
|
|
@@ -1694,6 +1751,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1694
1751
|
}] } });
|
|
1695
1752
|
|
|
1696
1753
|
class FsFormEmailDirective extends FsControlDirective {
|
|
1754
|
+
fsFormEmail;
|
|
1697
1755
|
set validationMessage(value) {
|
|
1698
1756
|
this._validateMessages.email = value;
|
|
1699
1757
|
}
|
|
@@ -1708,12 +1766,12 @@ class FsFormEmailDirective extends FsControlDirective {
|
|
|
1708
1766
|
return null;
|
|
1709
1767
|
}
|
|
1710
1768
|
}
|
|
1769
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormEmailDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1770
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.12", type: FsFormEmailDirective, selector: "[fsFormEmail]", inputs: { fsFormEmail: "fsFormEmail", validationMessage: ["fsFormEmailMessage", "validationMessage"] }, providers: [
|
|
1771
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1772
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1711
1773
|
}
|
|
1712
|
-
|
|
1713
|
-
FsFormEmailDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FsFormEmailDirective, selector: "[fsFormEmail]", inputs: { fsFormEmail: "fsFormEmail", validationMessage: ["fsFormEmailMessage", "validationMessage"] }, providers: [
|
|
1714
|
-
VALIDATE_MESSAGE_PROVIDER
|
|
1715
|
-
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1716
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FsFormEmailDirective, decorators: [{
|
|
1774
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormEmailDirective, decorators: [{
|
|
1717
1775
|
type: Directive,
|
|
1718
1776
|
args: [{
|
|
1719
1777
|
selector: '[fsFormEmail]',
|
|
@@ -1729,6 +1787,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1729
1787
|
}] } });
|
|
1730
1788
|
|
|
1731
1789
|
class FsFormEmailsDirective extends FsControlDirective {
|
|
1790
|
+
fsFormEmails;
|
|
1732
1791
|
set validationMessage(value) {
|
|
1733
1792
|
this._validateMessages.emails = value;
|
|
1734
1793
|
}
|
|
@@ -1743,12 +1802,12 @@ class FsFormEmailsDirective extends FsControlDirective {
|
|
|
1743
1802
|
return null;
|
|
1744
1803
|
}
|
|
1745
1804
|
}
|
|
1805
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormEmailsDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1806
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.12", type: FsFormEmailsDirective, selector: "[fsFormEmails]", inputs: { fsFormEmails: "fsFormEmails", validationMessage: ["fsFormEmailsMessage", "validationMessage"] }, providers: [
|
|
1807
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1808
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1746
1809
|
}
|
|
1747
|
-
|
|
1748
|
-
FsFormEmailsDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FsFormEmailsDirective, selector: "[fsFormEmails]", inputs: { fsFormEmails: "fsFormEmails", validationMessage: ["fsFormEmailsMessage", "validationMessage"] }, providers: [
|
|
1749
|
-
VALIDATE_MESSAGE_PROVIDER
|
|
1750
|
-
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1751
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FsFormEmailsDirective, decorators: [{
|
|
1810
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormEmailsDirective, decorators: [{
|
|
1752
1811
|
type: Directive,
|
|
1753
1812
|
args: [{
|
|
1754
1813
|
selector: '[fsFormEmails]',
|
|
@@ -1764,10 +1823,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1764
1823
|
}] } });
|
|
1765
1824
|
|
|
1766
1825
|
class FsFormFunctionDirective extends FsControlDirective {
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
}
|
|
1826
|
+
fsFormFunction;
|
|
1827
|
+
fsFormFunctionData;
|
|
1828
|
+
validateOnSubmit = false;
|
|
1771
1829
|
ngOnChanges() {
|
|
1772
1830
|
this._control.updateValueAndValidity();
|
|
1773
1831
|
}
|
|
@@ -1777,12 +1835,12 @@ class FsFormFunctionDirective extends FsControlDirective {
|
|
|
1777
1835
|
}
|
|
1778
1836
|
return FsValidators.func(this._control, this.fsFormFunction, this.fsFormFunctionData);
|
|
1779
1837
|
}
|
|
1838
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormFunctionDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1839
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.12", type: FsFormFunctionDirective, selector: "[fsFormFunction]", inputs: { fsFormFunction: "fsFormFunction", fsFormFunctionData: "fsFormFunctionData", validateOnSubmit: "validateOnSubmit" }, providers: [
|
|
1840
|
+
VALIDATE_MESSAGE_PROVIDER,
|
|
1841
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1780
1842
|
}
|
|
1781
|
-
|
|
1782
|
-
FsFormFunctionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FsFormFunctionDirective, selector: "[fsFormFunction]", inputs: { fsFormFunction: "fsFormFunction", fsFormFunctionData: "fsFormFunctionData", validateOnSubmit: "validateOnSubmit" }, providers: [
|
|
1783
|
-
VALIDATE_MESSAGE_PROVIDER,
|
|
1784
|
-
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1785
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FsFormFunctionDirective, decorators: [{
|
|
1843
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormFunctionDirective, decorators: [{
|
|
1786
1844
|
type: Directive,
|
|
1787
1845
|
args: [{
|
|
1788
1846
|
selector: '[fsFormFunction]',
|
|
@@ -1799,6 +1857,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1799
1857
|
}] } });
|
|
1800
1858
|
|
|
1801
1859
|
class FsFormGreaterEqualDirective extends FsControlDirective {
|
|
1860
|
+
fsFormGreaterEqual;
|
|
1802
1861
|
set validationMessage(value) {
|
|
1803
1862
|
this._validateMessages.greater = value;
|
|
1804
1863
|
}
|
|
@@ -1813,12 +1872,12 @@ class FsFormGreaterEqualDirective extends FsControlDirective {
|
|
|
1813
1872
|
}
|
|
1814
1873
|
return FsValidators.numeric(this._control);
|
|
1815
1874
|
}
|
|
1875
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormGreaterEqualDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1876
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.12", type: FsFormGreaterEqualDirective, selector: "[fsFormGreaterEqual]", inputs: { fsFormGreaterEqual: "fsFormGreaterEqual", validationMessage: ["fsFormGreaterEqualMessage", "validationMessage"] }, providers: [
|
|
1877
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1878
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1816
1879
|
}
|
|
1817
|
-
|
|
1818
|
-
FsFormGreaterEqualDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FsFormGreaterEqualDirective, selector: "[fsFormGreaterEqual]", inputs: { fsFormGreaterEqual: "fsFormGreaterEqual", validationMessage: ["fsFormGreaterEqualMessage", "validationMessage"] }, providers: [
|
|
1819
|
-
VALIDATE_MESSAGE_PROVIDER
|
|
1820
|
-
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1821
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FsFormGreaterEqualDirective, decorators: [{
|
|
1880
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormGreaterEqualDirective, decorators: [{
|
|
1822
1881
|
type: Directive,
|
|
1823
1882
|
args: [{
|
|
1824
1883
|
selector: '[fsFormGreaterEqual]',
|
|
@@ -1834,6 +1893,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1834
1893
|
}] } });
|
|
1835
1894
|
|
|
1836
1895
|
class FsFormGreaterDirective extends FsControlDirective {
|
|
1896
|
+
fsFormGreater;
|
|
1837
1897
|
set validationMessage(value) {
|
|
1838
1898
|
this._validateMessages.greater = value;
|
|
1839
1899
|
}
|
|
@@ -1848,12 +1908,12 @@ class FsFormGreaterDirective extends FsControlDirective {
|
|
|
1848
1908
|
}
|
|
1849
1909
|
return FsValidators.numeric(this._control);
|
|
1850
1910
|
}
|
|
1911
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormGreaterDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1912
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.12", type: FsFormGreaterDirective, selector: "[fsFormGreater]", inputs: { fsFormGreater: "fsFormGreater", validationMessage: ["fsFormGreaterMessage", "validationMessage"] }, providers: [
|
|
1913
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1914
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1851
1915
|
}
|
|
1852
|
-
|
|
1853
|
-
FsFormGreaterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FsFormGreaterDirective, selector: "[fsFormGreater]", inputs: { fsFormGreater: "fsFormGreater", validationMessage: ["fsFormGreaterMessage", "validationMessage"] }, providers: [
|
|
1854
|
-
VALIDATE_MESSAGE_PROVIDER
|
|
1855
|
-
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1856
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FsFormGreaterDirective, decorators: [{
|
|
1916
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormGreaterDirective, decorators: [{
|
|
1857
1917
|
type: Directive,
|
|
1858
1918
|
args: [{
|
|
1859
1919
|
selector: '[fsFormGreater]',
|
|
@@ -1869,6 +1929,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1869
1929
|
}] } });
|
|
1870
1930
|
|
|
1871
1931
|
class FsFormIntegerDirective extends FsControlDirective {
|
|
1932
|
+
fsFormInteger;
|
|
1872
1933
|
set validationMessage(value) {
|
|
1873
1934
|
this._validateMessages.integer = value;
|
|
1874
1935
|
}
|
|
@@ -1881,12 +1942,12 @@ class FsFormIntegerDirective extends FsControlDirective {
|
|
|
1881
1942
|
}
|
|
1882
1943
|
return null;
|
|
1883
1944
|
}
|
|
1945
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormIntegerDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1946
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.12", type: FsFormIntegerDirective, selector: "[fsFormInteger]", inputs: { fsFormInteger: "fsFormInteger", validationMessage: ["fsFormIntegerMessage", "validationMessage"] }, providers: [
|
|
1947
|
+
VALIDATE_MESSAGE_PROVIDER,
|
|
1948
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1884
1949
|
}
|
|
1885
|
-
|
|
1886
|
-
FsFormIntegerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FsFormIntegerDirective, selector: "[fsFormInteger]", inputs: { fsFormInteger: "fsFormInteger", validationMessage: ["fsFormIntegerMessage", "validationMessage"] }, providers: [
|
|
1887
|
-
VALIDATE_MESSAGE_PROVIDER,
|
|
1888
|
-
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1889
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FsFormIntegerDirective, decorators: [{
|
|
1950
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormIntegerDirective, decorators: [{
|
|
1890
1951
|
type: Directive,
|
|
1891
1952
|
args: [{
|
|
1892
1953
|
selector: '[fsFormInteger]',
|
|
@@ -1902,6 +1963,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1902
1963
|
}] } });
|
|
1903
1964
|
|
|
1904
1965
|
class FsFormLesserEqualDirective extends FsControlDirective {
|
|
1966
|
+
fsFormLesserEqual;
|
|
1905
1967
|
set validationMessage(value) {
|
|
1906
1968
|
this._validateMessages.lesser = value;
|
|
1907
1969
|
}
|
|
@@ -1916,12 +1978,12 @@ class FsFormLesserEqualDirective extends FsControlDirective {
|
|
|
1916
1978
|
}
|
|
1917
1979
|
return FsValidators.numeric(this._control);
|
|
1918
1980
|
}
|
|
1981
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormLesserEqualDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1982
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.12", type: FsFormLesserEqualDirective, selector: "[fsFormLesserEqual]", inputs: { fsFormLesserEqual: "fsFormLesserEqual", validationMessage: ["fsFormLesserEqualMessage", "validationMessage"] }, providers: [
|
|
1983
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1984
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1919
1985
|
}
|
|
1920
|
-
|
|
1921
|
-
FsFormLesserEqualDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FsFormLesserEqualDirective, selector: "[fsFormLesserEqual]", inputs: { fsFormLesserEqual: "fsFormLesserEqual", validationMessage: ["fsFormLesserEqualMessage", "validationMessage"] }, providers: [
|
|
1922
|
-
VALIDATE_MESSAGE_PROVIDER
|
|
1923
|
-
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1924
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FsFormLesserEqualDirective, decorators: [{
|
|
1986
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormLesserEqualDirective, decorators: [{
|
|
1925
1987
|
type: Directive,
|
|
1926
1988
|
args: [{
|
|
1927
1989
|
selector: '[fsFormLesserEqual]',
|
|
@@ -1937,6 +1999,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1937
1999
|
}] } });
|
|
1938
2000
|
|
|
1939
2001
|
class FsFormLesserDirective extends FsControlDirective {
|
|
2002
|
+
fsFormLesser;
|
|
1940
2003
|
set validationMessage(value) {
|
|
1941
2004
|
this._validateMessages.lesser = value;
|
|
1942
2005
|
}
|
|
@@ -1951,12 +2014,12 @@ class FsFormLesserDirective extends FsControlDirective {
|
|
|
1951
2014
|
}
|
|
1952
2015
|
return FsValidators.numeric(this._control);
|
|
1953
2016
|
}
|
|
2017
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormLesserDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2018
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.12", type: FsFormLesserDirective, selector: "[fsFormLesser]", inputs: { fsFormLesser: "fsFormLesser", validationMessage: ["fsFormLesserMessage", "validationMessage"] }, providers: [
|
|
2019
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
2020
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1954
2021
|
}
|
|
1955
|
-
|
|
1956
|
-
FsFormLesserDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FsFormLesserDirective, selector: "[fsFormLesser]", inputs: { fsFormLesser: "fsFormLesser", validationMessage: ["fsFormLesserMessage", "validationMessage"] }, providers: [
|
|
1957
|
-
VALIDATE_MESSAGE_PROVIDER
|
|
1958
|
-
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1959
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FsFormLesserDirective, decorators: [{
|
|
2022
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormLesserDirective, decorators: [{
|
|
1960
2023
|
type: Directive,
|
|
1961
2024
|
args: [{
|
|
1962
2025
|
selector: '[fsFormLesser]',
|
|
@@ -1972,6 +2035,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1972
2035
|
}] } });
|
|
1973
2036
|
|
|
1974
2037
|
class FsFormMaxDirective extends FsControlDirective {
|
|
2038
|
+
fsFormMax;
|
|
1975
2039
|
set validationMessage(value) {
|
|
1976
2040
|
this._validateMessages.max = value;
|
|
1977
2041
|
}
|
|
@@ -1981,12 +2045,12 @@ class FsFormMaxDirective extends FsControlDirective {
|
|
|
1981
2045
|
validate(control) {
|
|
1982
2046
|
return FsValidators.numeric(this._control) || Validators.max(this.fsFormMax)(this._control);
|
|
1983
2047
|
}
|
|
2048
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormMaxDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2049
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.12", type: FsFormMaxDirective, selector: "[fsFormMax]", inputs: { fsFormMax: "fsFormMax", validationMessage: ["fsFormMaxMessage", "validationMessage"] }, providers: [
|
|
2050
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
2051
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1984
2052
|
}
|
|
1985
|
-
|
|
1986
|
-
FsFormMaxDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FsFormMaxDirective, selector: "[fsFormMax]", inputs: { fsFormMax: "fsFormMax", validationMessage: ["fsFormMaxMessage", "validationMessage"] }, providers: [
|
|
1987
|
-
VALIDATE_MESSAGE_PROVIDER
|
|
1988
|
-
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1989
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FsFormMaxDirective, decorators: [{
|
|
2053
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormMaxDirective, decorators: [{
|
|
1990
2054
|
type: Directive,
|
|
1991
2055
|
args: [{
|
|
1992
2056
|
selector: '[fsFormMax]',
|
|
@@ -2002,6 +2066,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2002
2066
|
}] } });
|
|
2003
2067
|
|
|
2004
2068
|
class FsFormMaxLengthDirective extends FsControlDirective {
|
|
2069
|
+
fsFormMaxLength;
|
|
2005
2070
|
set validationMessage(value) {
|
|
2006
2071
|
this._validateMessages.maxlength = value;
|
|
2007
2072
|
}
|
|
@@ -2011,12 +2076,12 @@ class FsFormMaxLengthDirective extends FsControlDirective {
|
|
|
2011
2076
|
validate(control) {
|
|
2012
2077
|
return Validators.maxLength(this.fsFormMaxLength)(this._control);
|
|
2013
2078
|
}
|
|
2079
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormMaxLengthDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2080
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.12", type: FsFormMaxLengthDirective, selector: "[fsFormMaxLength]", inputs: { fsFormMaxLength: "fsFormMaxLength", validationMessage: ["fsFormMaxLengthMessage", "validationMessage"] }, providers: [
|
|
2081
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
2082
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
2014
2083
|
}
|
|
2015
|
-
|
|
2016
|
-
FsFormMaxLengthDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FsFormMaxLengthDirective, selector: "[fsFormMaxLength]", inputs: { fsFormMaxLength: "fsFormMaxLength", validationMessage: ["fsFormMaxLengthMessage", "validationMessage"] }, providers: [
|
|
2017
|
-
VALIDATE_MESSAGE_PROVIDER
|
|
2018
|
-
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
2019
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FsFormMaxLengthDirective, decorators: [{
|
|
2084
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormMaxLengthDirective, decorators: [{
|
|
2020
2085
|
type: Directive,
|
|
2021
2086
|
args: [{
|
|
2022
2087
|
selector: '[fsFormMaxLength]',
|
|
@@ -2032,6 +2097,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2032
2097
|
}] } });
|
|
2033
2098
|
|
|
2034
2099
|
class FsFormMinDirective extends FsControlDirective {
|
|
2100
|
+
fsFormMin;
|
|
2035
2101
|
set validationMessage(value) {
|
|
2036
2102
|
this._validateMessages.min = value;
|
|
2037
2103
|
}
|
|
@@ -2041,12 +2107,12 @@ class FsFormMinDirective extends FsControlDirective {
|
|
|
2041
2107
|
validate(control) {
|
|
2042
2108
|
return FsValidators.numeric(this._control) || Validators.min(parseFloat(this.fsFormMin))(this._control);
|
|
2043
2109
|
}
|
|
2110
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormMinDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2111
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.12", type: FsFormMinDirective, selector: "[fsFormMin]", inputs: { fsFormMin: "fsFormMin", validationMessage: ["fsFormMinMessage", "validationMessage"] }, providers: [
|
|
2112
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
2113
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
2044
2114
|
}
|
|
2045
|
-
|
|
2046
|
-
FsFormMinDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FsFormMinDirective, selector: "[fsFormMin]", inputs: { fsFormMin: "fsFormMin", validationMessage: ["fsFormMinMessage", "validationMessage"] }, providers: [
|
|
2047
|
-
VALIDATE_MESSAGE_PROVIDER
|
|
2048
|
-
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
2049
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FsFormMinDirective, decorators: [{
|
|
2115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormMinDirective, decorators: [{
|
|
2050
2116
|
type: Directive,
|
|
2051
2117
|
args: [{
|
|
2052
2118
|
selector: '[fsFormMin]',
|
|
@@ -2062,6 +2128,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2062
2128
|
}] } });
|
|
2063
2129
|
|
|
2064
2130
|
class FsFormMinLengthDirective extends FsControlDirective {
|
|
2131
|
+
fsFormMinLength;
|
|
2065
2132
|
set validationMessage(value) {
|
|
2066
2133
|
this._validateMessages.minlength = value;
|
|
2067
2134
|
}
|
|
@@ -2071,12 +2138,12 @@ class FsFormMinLengthDirective extends FsControlDirective {
|
|
|
2071
2138
|
validate(control) {
|
|
2072
2139
|
return Validators.minLength(this.fsFormMinLength)(this._control);
|
|
2073
2140
|
}
|
|
2141
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormMinLengthDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2142
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.12", type: FsFormMinLengthDirective, selector: "[fsFormMinLength]", inputs: { fsFormMinLength: "fsFormMinLength", validationMessage: ["fsFormMinLengthMessage", "validationMessage"] }, providers: [
|
|
2143
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
2144
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
2074
2145
|
}
|
|
2075
|
-
|
|
2076
|
-
FsFormMinLengthDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FsFormMinLengthDirective, selector: "[fsFormMinLength]", inputs: { fsFormMinLength: "fsFormMinLength", validationMessage: ["fsFormMinLengthMessage", "validationMessage"] }, providers: [
|
|
2077
|
-
VALIDATE_MESSAGE_PROVIDER
|
|
2078
|
-
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
2079
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FsFormMinLengthDirective, decorators: [{
|
|
2146
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormMinLengthDirective, decorators: [{
|
|
2080
2147
|
type: Directive,
|
|
2081
2148
|
args: [{
|
|
2082
2149
|
selector: '[fsFormMinLength]',
|
|
@@ -2105,12 +2172,12 @@ class FsFormNoFsValidatorsDirective extends FsControlDirective {
|
|
|
2105
2172
|
super._subscribeToStatusChagnes();
|
|
2106
2173
|
}
|
|
2107
2174
|
}
|
|
2175
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormNoFsValidatorsDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2176
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.12", type: FsFormNoFsValidatorsDirective, selector: "[ngModel]:not([required]):not([fsFormRequired]):not([fsFormCompare]):not([fsFormDateRange]):not([fsFormEmail]):not([fsFormEmails]):not([fsFormFunction]):not([fsFormGreater]):not([fsFormGreaterEqual]):not([fsFormInteger]):not([fsFormLesser]):not([fsFormMax]):not([fsFormMaxLength]):not([fsFormMin]):not([fsFormMinLength]):not([fsFormNumeric]):not([fsFormPattern]):not([fsFormPhone]):not([fsFormUrl]):not([validate])", providers: [
|
|
2177
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
2178
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
2108
2179
|
}
|
|
2109
|
-
|
|
2110
|
-
FsFormNoFsValidatorsDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FsFormNoFsValidatorsDirective, selector: "[ngModel]:not([required]):not([fsFormRequired]):not([fsFormCompare]):not([fsFormDateRange]):not([fsFormEmail]):not([fsFormEmails]):not([fsFormFunction]):not([fsFormGreater]):not([fsFormGreaterEqual]):not([fsFormInteger]):not([fsFormLesser]):not([fsFormMax]):not([fsFormMaxLength]):not([fsFormMin]):not([fsFormMinLength]):not([fsFormNumeric]):not([fsFormPattern]):not([fsFormPhone]):not([fsFormUrl]):not([validate])", providers: [
|
|
2111
|
-
VALIDATE_MESSAGE_PROVIDER
|
|
2112
|
-
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
2113
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FsFormNoFsValidatorsDirective, decorators: [{
|
|
2180
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormNoFsValidatorsDirective, decorators: [{
|
|
2114
2181
|
type: Directive,
|
|
2115
2182
|
args: [{
|
|
2116
2183
|
selector: '[ngModel]' +
|
|
@@ -2141,6 +2208,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2141
2208
|
}] });
|
|
2142
2209
|
|
|
2143
2210
|
class FsFormNumericDirective extends FsControlDirective {
|
|
2211
|
+
fsFormNumeric;
|
|
2144
2212
|
set validationMessage(value) {
|
|
2145
2213
|
this._validateMessages.numeric = value;
|
|
2146
2214
|
}
|
|
@@ -2155,12 +2223,12 @@ class FsFormNumericDirective extends FsControlDirective {
|
|
|
2155
2223
|
return null;
|
|
2156
2224
|
}
|
|
2157
2225
|
}
|
|
2226
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormNumericDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2227
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.12", type: FsFormNumericDirective, selector: "[fsFormNumeric]", inputs: { fsFormNumeric: "fsFormNumeric", validationMessage: ["fsFormNumericMessage", "validationMessage"] }, providers: [
|
|
2228
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
2229
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
2158
2230
|
}
|
|
2159
|
-
|
|
2160
|
-
FsFormNumericDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FsFormNumericDirective, selector: "[fsFormNumeric]", inputs: { fsFormNumeric: "fsFormNumeric", validationMessage: ["fsFormNumericMessage", "validationMessage"] }, providers: [
|
|
2161
|
-
VALIDATE_MESSAGE_PROVIDER
|
|
2162
|
-
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
2163
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FsFormNumericDirective, decorators: [{
|
|
2231
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormNumericDirective, decorators: [{
|
|
2164
2232
|
type: Directive,
|
|
2165
2233
|
args: [{
|
|
2166
2234
|
selector: '[fsFormNumeric]',
|
|
@@ -2176,6 +2244,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2176
2244
|
}] } });
|
|
2177
2245
|
|
|
2178
2246
|
class FsFormPatternDirective extends FsControlDirective {
|
|
2247
|
+
fsFormPattern;
|
|
2179
2248
|
set validationMessage(value) {
|
|
2180
2249
|
this._validateMessages.pattern = value;
|
|
2181
2250
|
}
|
|
@@ -2185,12 +2254,12 @@ class FsFormPatternDirective extends FsControlDirective {
|
|
|
2185
2254
|
validate(control) {
|
|
2186
2255
|
return Validators.pattern(this.fsFormPattern)(this._control);
|
|
2187
2256
|
}
|
|
2257
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormPatternDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2258
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.12", type: FsFormPatternDirective, selector: "[fsFormPattern]", inputs: { fsFormPattern: "fsFormPattern", validationMessage: ["fsFormPatternMessage", "validationMessage"] }, providers: [
|
|
2259
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
2260
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
2188
2261
|
}
|
|
2189
|
-
|
|
2190
|
-
FsFormPatternDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FsFormPatternDirective, selector: "[fsFormPattern]", inputs: { fsFormPattern: "fsFormPattern", validationMessage: ["fsFormPatternMessage", "validationMessage"] }, providers: [
|
|
2191
|
-
VALIDATE_MESSAGE_PROVIDER
|
|
2192
|
-
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
2193
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FsFormPatternDirective, decorators: [{
|
|
2262
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormPatternDirective, decorators: [{
|
|
2194
2263
|
type: Directive,
|
|
2195
2264
|
args: [{
|
|
2196
2265
|
selector: '[fsFormPattern]',
|
|
@@ -2206,6 +2275,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2206
2275
|
}] } });
|
|
2207
2276
|
|
|
2208
2277
|
class FsFormPhoneDirective extends FsControlDirective {
|
|
2278
|
+
fsFormPhone;
|
|
2209
2279
|
set validationMessage(value) {
|
|
2210
2280
|
this._validateMessages.phone = value;
|
|
2211
2281
|
}
|
|
@@ -2220,12 +2290,12 @@ class FsFormPhoneDirective extends FsControlDirective {
|
|
|
2220
2290
|
return null;
|
|
2221
2291
|
}
|
|
2222
2292
|
}
|
|
2293
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormPhoneDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2294
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.12", type: FsFormPhoneDirective, selector: "[fsFormPhone]", inputs: { fsFormPhone: "fsFormPhone", validationMessage: ["fsFormPhoneMessage", "validationMessage"] }, providers: [
|
|
2295
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
2296
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
2223
2297
|
}
|
|
2224
|
-
|
|
2225
|
-
FsFormPhoneDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FsFormPhoneDirective, selector: "[fsFormPhone]", inputs: { fsFormPhone: "fsFormPhone", validationMessage: ["fsFormPhoneMessage", "validationMessage"] }, providers: [
|
|
2226
|
-
VALIDATE_MESSAGE_PROVIDER
|
|
2227
|
-
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
2228
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FsFormPhoneDirective, decorators: [{
|
|
2298
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormPhoneDirective, decorators: [{
|
|
2229
2299
|
type: Directive,
|
|
2230
2300
|
args: [{
|
|
2231
2301
|
selector: '[fsFormPhone]',
|
|
@@ -2241,10 +2311,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2241
2311
|
}] } });
|
|
2242
2312
|
|
|
2243
2313
|
class FsFormRequiredDirective extends FsControlDirective {
|
|
2244
|
-
|
|
2245
|
-
super(...arguments);
|
|
2246
|
-
this.required = false;
|
|
2247
|
-
}
|
|
2314
|
+
required = false;
|
|
2248
2315
|
set setFsFormRequired(value) {
|
|
2249
2316
|
this.required = isEnabled(value);
|
|
2250
2317
|
}
|
|
@@ -2279,12 +2346,12 @@ class FsFormRequiredDirective extends FsControlDirective {
|
|
|
2279
2346
|
}
|
|
2280
2347
|
super.render();
|
|
2281
2348
|
}
|
|
2349
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormRequiredDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2350
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.12", type: FsFormRequiredDirective, selector: "[fsFormRequired],[ngModel][required]", inputs: { setFsFormRequired: ["fsFormRequired", "setFsFormRequired"], setRequired: ["required", "setRequired"], validationMessage: ["fsFormRequiredMessage", "validationMessage"] }, providers: [
|
|
2351
|
+
VALIDATE_MESSAGE_PROVIDER,
|
|
2352
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
2282
2353
|
}
|
|
2283
|
-
|
|
2284
|
-
FsFormRequiredDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FsFormRequiredDirective, selector: "[fsFormRequired],[ngModel][required]", inputs: { setFsFormRequired: ["fsFormRequired", "setFsFormRequired"], setRequired: ["required", "setRequired"], validationMessage: ["fsFormRequiredMessage", "validationMessage"] }, providers: [
|
|
2285
|
-
VALIDATE_MESSAGE_PROVIDER,
|
|
2286
|
-
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
2287
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FsFormRequiredDirective, decorators: [{
|
|
2354
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormRequiredDirective, decorators: [{
|
|
2288
2355
|
type: Directive,
|
|
2289
2356
|
args: [{
|
|
2290
2357
|
selector: '[fsFormRequired],[ngModel][required]',
|
|
@@ -2304,10 +2371,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2304
2371
|
}] } });
|
|
2305
2372
|
|
|
2306
2373
|
class FsFormUrlDirective extends FsControlDirective {
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
this.fsFormUrlProtocol = true;
|
|
2310
|
-
}
|
|
2374
|
+
fsFormUrl;
|
|
2375
|
+
fsFormUrlProtocol = true;
|
|
2311
2376
|
set validationMessage(value) {
|
|
2312
2377
|
this._validateMessages.url = value;
|
|
2313
2378
|
}
|
|
@@ -2320,12 +2385,12 @@ class FsFormUrlDirective extends FsControlDirective {
|
|
|
2320
2385
|
}
|
|
2321
2386
|
return null;
|
|
2322
2387
|
}
|
|
2388
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormUrlDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2389
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.12", type: FsFormUrlDirective, selector: "[fsFormUrl]", inputs: { fsFormUrl: "fsFormUrl", fsFormUrlProtocol: "fsFormUrlProtocol", validationMessage: ["fsFormUrlMessage", "validationMessage"] }, providers: [
|
|
2390
|
+
VALIDATE_MESSAGE_PROVIDER,
|
|
2391
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
2323
2392
|
}
|
|
2324
|
-
|
|
2325
|
-
FsFormUrlDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FsFormUrlDirective, selector: "[fsFormUrl]", inputs: { fsFormUrl: "fsFormUrl", fsFormUrlProtocol: "fsFormUrlProtocol", validationMessage: ["fsFormUrlMessage", "validationMessage"] }, providers: [
|
|
2326
|
-
VALIDATE_MESSAGE_PROVIDER,
|
|
2327
|
-
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
2328
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FsFormUrlDirective, decorators: [{
|
|
2393
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormUrlDirective, decorators: [{
|
|
2329
2394
|
type: Directive,
|
|
2330
2395
|
args: [{
|
|
2331
2396
|
selector: '[fsFormUrl]',
|
|
@@ -2343,10 +2408,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2343
2408
|
}] } });
|
|
2344
2409
|
|
|
2345
2410
|
class FsFormValidateDirective extends FsControlDirective {
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
}
|
|
2411
|
+
validateFn;
|
|
2412
|
+
validateFnData;
|
|
2413
|
+
validateOnSubmit = false;
|
|
2350
2414
|
ngOnChanges() {
|
|
2351
2415
|
this._control.updateValueAndValidity();
|
|
2352
2416
|
}
|
|
@@ -2356,12 +2420,12 @@ class FsFormValidateDirective extends FsControlDirective {
|
|
|
2356
2420
|
}
|
|
2357
2421
|
return FsValidators.func(this._control, this.validateFn, this.validateFnData);
|
|
2358
2422
|
}
|
|
2423
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormValidateDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2424
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.12", type: FsFormValidateDirective, selector: "[validate]", inputs: { validateFn: ["validate", "validateFn"], validateFnData: ["validateData", "validateFnData"], validateOnSubmit: "validateOnSubmit" }, providers: [
|
|
2425
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
2426
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
2359
2427
|
}
|
|
2360
|
-
|
|
2361
|
-
FsFormValidateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FsFormValidateDirective, selector: "[validate]", inputs: { validateFn: ["validate", "validateFn"], validateFnData: ["validateData", "validateFnData"], validateOnSubmit: "validateOnSubmit" }, providers: [
|
|
2362
|
-
VALIDATE_MESSAGE_PROVIDER
|
|
2363
|
-
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
2364
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FsFormValidateDirective, decorators: [{
|
|
2428
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormValidateDirective, decorators: [{
|
|
2365
2429
|
type: Directive,
|
|
2366
2430
|
args: [{
|
|
2367
2431
|
selector: '[validate]',
|
|
@@ -2392,85 +2456,85 @@ class FsFormModule {
|
|
|
2392
2456
|
ngModule: FsFormModule,
|
|
2393
2457
|
};
|
|
2394
2458
|
}
|
|
2459
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2460
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: FsFormModule, declarations: [FsFormDirective,
|
|
2461
|
+
FsControlDirective,
|
|
2462
|
+
FsFormRequiredDirective,
|
|
2463
|
+
FsFormMinDirective,
|
|
2464
|
+
FsFormMaxDirective,
|
|
2465
|
+
FsFormMinLengthDirective,
|
|
2466
|
+
FsFormMaxLengthDirective,
|
|
2467
|
+
FsFormEmailDirective,
|
|
2468
|
+
FsFormEmailsDirective,
|
|
2469
|
+
FsFormPhoneDirective,
|
|
2470
|
+
FsFormCompareDirective,
|
|
2471
|
+
FsFormIntegerDirective,
|
|
2472
|
+
FsFormNumericDirective,
|
|
2473
|
+
FsFormPatternDirective,
|
|
2474
|
+
FsFormFunctionDirective,
|
|
2475
|
+
FsFormDateRangeDirective,
|
|
2476
|
+
FsFormGreaterDirective,
|
|
2477
|
+
FsFormGreaterEqualDirective,
|
|
2478
|
+
FsFormLesserDirective,
|
|
2479
|
+
FsFormLesserEqualDirective,
|
|
2480
|
+
FsFormUrlDirective,
|
|
2481
|
+
FsFormDialogCloseDirective,
|
|
2482
|
+
FsFormValidateDirective,
|
|
2483
|
+
FsFormDialogActionsComponent,
|
|
2484
|
+
FsFormNoFsValidatorsDirective,
|
|
2485
|
+
FsButtonDirective,
|
|
2486
|
+
FsSubmitButtonDirective,
|
|
2487
|
+
FsFormTemplateComponent,
|
|
2488
|
+
FsFormTemplateDirective,
|
|
2489
|
+
FsFormTemplateOutletComponent,
|
|
2490
|
+
ConfirmUnsavedComponent], imports: [CommonModule,
|
|
2491
|
+
FormsModule,
|
|
2492
|
+
MatButtonModule,
|
|
2493
|
+
MatDialogModule,
|
|
2494
|
+
MatDialogModule,
|
|
2495
|
+
FsDialogModule], exports: [FsFormDirective,
|
|
2496
|
+
FsControlDirective,
|
|
2497
|
+
FsFormRequiredDirective,
|
|
2498
|
+
FsFormMinDirective,
|
|
2499
|
+
FsFormMaxDirective,
|
|
2500
|
+
FsFormMinLengthDirective,
|
|
2501
|
+
FsFormMaxLengthDirective,
|
|
2502
|
+
FsFormEmailDirective,
|
|
2503
|
+
FsFormEmailsDirective,
|
|
2504
|
+
FsFormPhoneDirective,
|
|
2505
|
+
FsFormCompareDirective,
|
|
2506
|
+
FsFormIntegerDirective,
|
|
2507
|
+
FsFormNumericDirective,
|
|
2508
|
+
FsFormPatternDirective,
|
|
2509
|
+
FsFormFunctionDirective,
|
|
2510
|
+
FsFormDateRangeDirective,
|
|
2511
|
+
FsFormGreaterDirective,
|
|
2512
|
+
FsFormGreaterEqualDirective,
|
|
2513
|
+
FsFormLesserDirective,
|
|
2514
|
+
FsFormLesserEqualDirective,
|
|
2515
|
+
FsFormUrlDirective,
|
|
2516
|
+
FsFormDialogCloseDirective,
|
|
2517
|
+
FsFormValidateDirective,
|
|
2518
|
+
FsFormDialogActionsComponent,
|
|
2519
|
+
FsFormNoFsValidatorsDirective,
|
|
2520
|
+
FsButtonDirective,
|
|
2521
|
+
FsSubmitButtonDirective,
|
|
2522
|
+
FsFormTemplateComponent,
|
|
2523
|
+
FsFormTemplateDirective,
|
|
2524
|
+
FsFormTemplateOutletComponent] });
|
|
2525
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormModule, providers: [
|
|
2526
|
+
{
|
|
2527
|
+
provide: ErrorStateMatcher,
|
|
2528
|
+
useClass: ShowOnDirtyErrorStateMatcher,
|
|
2529
|
+
},
|
|
2530
|
+
], imports: [CommonModule,
|
|
2531
|
+
FormsModule,
|
|
2532
|
+
MatButtonModule,
|
|
2533
|
+
MatDialogModule,
|
|
2534
|
+
MatDialogModule,
|
|
2535
|
+
FsDialogModule] });
|
|
2395
2536
|
}
|
|
2396
|
-
|
|
2397
|
-
FsFormModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: FsFormModule, declarations: [FsFormDirective,
|
|
2398
|
-
FsControlDirective,
|
|
2399
|
-
FsFormRequiredDirective,
|
|
2400
|
-
FsFormMinDirective,
|
|
2401
|
-
FsFormMaxDirective,
|
|
2402
|
-
FsFormMinLengthDirective,
|
|
2403
|
-
FsFormMaxLengthDirective,
|
|
2404
|
-
FsFormEmailDirective,
|
|
2405
|
-
FsFormEmailsDirective,
|
|
2406
|
-
FsFormPhoneDirective,
|
|
2407
|
-
FsFormCompareDirective,
|
|
2408
|
-
FsFormIntegerDirective,
|
|
2409
|
-
FsFormNumericDirective,
|
|
2410
|
-
FsFormPatternDirective,
|
|
2411
|
-
FsFormFunctionDirective,
|
|
2412
|
-
FsFormDateRangeDirective,
|
|
2413
|
-
FsFormGreaterDirective,
|
|
2414
|
-
FsFormGreaterEqualDirective,
|
|
2415
|
-
FsFormLesserDirective,
|
|
2416
|
-
FsFormLesserEqualDirective,
|
|
2417
|
-
FsFormUrlDirective,
|
|
2418
|
-
FsFormDialogCloseDirective,
|
|
2419
|
-
FsFormValidateDirective,
|
|
2420
|
-
FsFormDialogActionsComponent,
|
|
2421
|
-
FsFormNoFsValidatorsDirective,
|
|
2422
|
-
FsButtonDirective,
|
|
2423
|
-
FsSubmitButtonDirective,
|
|
2424
|
-
FsFormTemplateComponent,
|
|
2425
|
-
FsFormTemplateDirective,
|
|
2426
|
-
FsFormTemplateOutletComponent,
|
|
2427
|
-
ConfirmUnsavedComponent], imports: [CommonModule,
|
|
2428
|
-
FormsModule,
|
|
2429
|
-
MatButtonModule,
|
|
2430
|
-
MatDialogModule,
|
|
2431
|
-
MatDialogModule,
|
|
2432
|
-
FsDialogModule], exports: [FsFormDirective,
|
|
2433
|
-
FsControlDirective,
|
|
2434
|
-
FsFormRequiredDirective,
|
|
2435
|
-
FsFormMinDirective,
|
|
2436
|
-
FsFormMaxDirective,
|
|
2437
|
-
FsFormMinLengthDirective,
|
|
2438
|
-
FsFormMaxLengthDirective,
|
|
2439
|
-
FsFormEmailDirective,
|
|
2440
|
-
FsFormEmailsDirective,
|
|
2441
|
-
FsFormPhoneDirective,
|
|
2442
|
-
FsFormCompareDirective,
|
|
2443
|
-
FsFormIntegerDirective,
|
|
2444
|
-
FsFormNumericDirective,
|
|
2445
|
-
FsFormPatternDirective,
|
|
2446
|
-
FsFormFunctionDirective,
|
|
2447
|
-
FsFormDateRangeDirective,
|
|
2448
|
-
FsFormGreaterDirective,
|
|
2449
|
-
FsFormGreaterEqualDirective,
|
|
2450
|
-
FsFormLesserDirective,
|
|
2451
|
-
FsFormLesserEqualDirective,
|
|
2452
|
-
FsFormUrlDirective,
|
|
2453
|
-
FsFormDialogCloseDirective,
|
|
2454
|
-
FsFormValidateDirective,
|
|
2455
|
-
FsFormDialogActionsComponent,
|
|
2456
|
-
FsFormNoFsValidatorsDirective,
|
|
2457
|
-
FsButtonDirective,
|
|
2458
|
-
FsSubmitButtonDirective,
|
|
2459
|
-
FsFormTemplateComponent,
|
|
2460
|
-
FsFormTemplateDirective,
|
|
2461
|
-
FsFormTemplateOutletComponent] });
|
|
2462
|
-
FsFormModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FsFormModule, providers: [
|
|
2463
|
-
{
|
|
2464
|
-
provide: ErrorStateMatcher,
|
|
2465
|
-
useClass: ShowOnDirtyErrorStateMatcher,
|
|
2466
|
-
},
|
|
2467
|
-
], imports: [CommonModule,
|
|
2468
|
-
FormsModule,
|
|
2469
|
-
MatButtonModule,
|
|
2470
|
-
MatDialogModule,
|
|
2471
|
-
MatDialogModule,
|
|
2472
|
-
FsDialogModule] });
|
|
2473
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FsFormModule, decorators: [{
|
|
2537
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FsFormModule, decorators: [{
|
|
2474
2538
|
type: NgModule,
|
|
2475
2539
|
args: [{
|
|
2476
2540
|
imports: [
|