@firestitch/form 15.0.0 → 16.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/esm2022/app/components/form-template-outlet/form-template-outlet.component.mjs +32 -0
- package/esm2022/app/directives/button.directive.mjs +172 -0
- package/esm2022/app/directives/form/form.directive.mjs +702 -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/{esm2020 → esm2022}/app/directives/validators/no-fs-validators.directive.mjs +6 -6
- 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/esm2022/app/services/fsform.service.mjs +94 -0
- package/{fesm2020 → fesm2022}/firestitch-form.mjs +354 -291
- 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/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/services/fsform.service.mjs +0 -92
- 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/form-template/index.mjs +0 -0
- /package/{esm2020 → esm2022}/app/components/form-template-outlet/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/get-active-route.mjs +0 -0
- /package/{esm2020 → esm2022}/app/helpers/get-form-errors.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}/app/validators/validators.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;
|
|
@@ -49,10 +56,10 @@ class ConfirmUnsavedComponent {
|
|
|
49
56
|
this._destroy$.next();
|
|
50
57
|
this._destroy$.complete();
|
|
51
58
|
}
|
|
59
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.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: "16.2.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] ", 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 });
|
|
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: "16.2.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
65
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -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,10 +175,10 @@ class FsForm {
|
|
|
166
175
|
}
|
|
167
176
|
}));
|
|
168
177
|
}
|
|
178
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsForm, deps: [{ token: i1.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
179
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.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: "16.2.12", ngImport: i0, type: FsForm, decorators: [{
|
|
173
182
|
type: Injectable,
|
|
174
183
|
args: [{
|
|
175
184
|
providedIn: 'root',
|
|
@@ -177,6 +186,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
177
186
|
}], ctorParameters: function () { return [{ 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,10 +209,10 @@ class FormDeactivateGuard {
|
|
|
198
209
|
return confirmResultContinue(result);
|
|
199
210
|
}));
|
|
200
211
|
}
|
|
212
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.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: "16.2.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: "16.2.12", ngImport: i0, type: FormDeactivateGuard, decorators: [{
|
|
205
216
|
type: Injectable,
|
|
206
217
|
args: [{
|
|
207
218
|
providedIn: 'root',
|
|
@@ -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;
|
|
@@ -820,10 +844,10 @@ class FsFormDirective {
|
|
|
820
844
|
this._activatedRouteConfig.canDeactivate.splice(guardIndex, 1);
|
|
821
845
|
this._form.removeFormDirective(this._activatedRouteConfig.component);
|
|
822
846
|
}
|
|
847
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.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 });
|
|
848
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.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
849
|
}
|
|
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: [{
|
|
850
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormDirective, decorators: [{
|
|
827
851
|
type: Directive,
|
|
828
852
|
args: [{
|
|
829
853
|
selector: '[fsForm]',
|
|
@@ -898,11 +922,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
898
922
|
}] } });
|
|
899
923
|
|
|
900
924
|
class FsFormDialogCloseDirective {
|
|
925
|
+
_form;
|
|
926
|
+
_dialogRef;
|
|
927
|
+
closeData;
|
|
928
|
+
type = 'button';
|
|
929
|
+
_destroy$ = new Subject();
|
|
901
930
|
constructor(_form, _dialogRef) {
|
|
902
931
|
this._form = _form;
|
|
903
932
|
this._dialogRef = _dialogRef;
|
|
904
|
-
this.type = 'button';
|
|
905
|
-
this._destroy$ = new Subject();
|
|
906
933
|
}
|
|
907
934
|
closeClick() {
|
|
908
935
|
if (this._form) {
|
|
@@ -920,10 +947,10 @@ class FsFormDialogCloseDirective {
|
|
|
920
947
|
this._destroy$.next();
|
|
921
948
|
this._destroy$.complete();
|
|
922
949
|
}
|
|
950
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormDialogCloseDirective, deps: [{ token: FsFormDirective, optional: true }, { token: i1.MatDialogRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
951
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.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
952
|
}
|
|
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: [{
|
|
953
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormDialogCloseDirective, decorators: [{
|
|
927
954
|
type: Directive,
|
|
928
955
|
args: [{
|
|
929
956
|
selector: '[fsFormDialogClose],[fs-form-dialog-close]',
|
|
@@ -943,17 +970,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
943
970
|
}] } });
|
|
944
971
|
|
|
945
972
|
class FsButtonDirective {
|
|
973
|
+
_matButton;
|
|
974
|
+
_form;
|
|
975
|
+
_elementRef;
|
|
976
|
+
_cdRef;
|
|
977
|
+
name;
|
|
978
|
+
dirtySubmit = true;
|
|
979
|
+
form;
|
|
980
|
+
transitionStyle = null;
|
|
981
|
+
active = false;
|
|
982
|
+
submit = false;
|
|
983
|
+
_previousDisabled = false;
|
|
984
|
+
_destroy$ = new Subject();
|
|
946
985
|
constructor(_matButton, _form, _elementRef, _cdRef) {
|
|
947
986
|
this._matButton = _matButton;
|
|
948
987
|
this._form = _form;
|
|
949
988
|
this._elementRef = _elementRef;
|
|
950
989
|
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
990
|
}
|
|
958
991
|
ngOnInit() {
|
|
959
992
|
this.submit = this._elementRef.nativeElement.getAttribute('type') === 'submit';
|
|
@@ -1075,10 +1108,10 @@ class FsButtonDirective {
|
|
|
1075
1108
|
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
1109
|
}
|
|
1077
1110
|
}
|
|
1111
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.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 });
|
|
1112
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.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
1113
|
}
|
|
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: [{
|
|
1114
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsButtonDirective, decorators: [{
|
|
1082
1115
|
type: Directive,
|
|
1083
1116
|
args: [{
|
|
1084
1117
|
selector: '[mat-raised-button]:not([fsFormButtonStandalone]),[mat-button]:not([fsFormButtonStandalone]),[mat-flat-button]:not([fsFormButtonStandalone]),[mat-stroked-button]:not([fsFormButtonStandalone])',
|
|
@@ -1101,17 +1134,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1101
1134
|
}] } });
|
|
1102
1135
|
|
|
1103
1136
|
class FsFormDialogActionsComponent {
|
|
1137
|
+
_form;
|
|
1138
|
+
_dialogRef;
|
|
1139
|
+
_cdRef;
|
|
1140
|
+
save = true;
|
|
1141
|
+
create = false;
|
|
1142
|
+
close = false;
|
|
1143
|
+
done = false;
|
|
1144
|
+
closeData = null;
|
|
1145
|
+
name;
|
|
1146
|
+
dirty = false;
|
|
1147
|
+
_destroy$ = new Subject();
|
|
1104
1148
|
constructor(_form, _dialogRef, _cdRef) {
|
|
1105
1149
|
this._form = _form;
|
|
1106
1150
|
this._dialogRef = _dialogRef;
|
|
1107
1151
|
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
1152
|
}
|
|
1116
1153
|
ngOnInit() {
|
|
1117
1154
|
if (this._form) {
|
|
@@ -1139,10 +1176,10 @@ class FsFormDialogActionsComponent {
|
|
|
1139
1176
|
this._destroy$.next();
|
|
1140
1177
|
this._destroy$.complete();
|
|
1141
1178
|
}
|
|
1179
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormDialogActionsComponent, deps: [{ token: FsFormDirective, optional: true }, { token: i1.MatDialogRef, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1180
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.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] ", 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 });
|
|
1142
1181
|
}
|
|
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: [{
|
|
1182
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormDialogActionsComponent, decorators: [{
|
|
1146
1183
|
type: Component,
|
|
1147
1184
|
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
1185
|
}], ctorParameters: function () { return [{ type: FsFormDirective, decorators: [{
|
|
@@ -1164,6 +1201,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1164
1201
|
}] } });
|
|
1165
1202
|
|
|
1166
1203
|
class FsFormTemplateComponent {
|
|
1204
|
+
templateRef;
|
|
1205
|
+
formTemplate;
|
|
1206
|
+
models;
|
|
1167
1207
|
ngAfterContentInit() {
|
|
1168
1208
|
debugger;
|
|
1169
1209
|
const x = this.models;
|
|
@@ -1175,10 +1215,10 @@ class FsFormTemplateComponent {
|
|
|
1175
1215
|
debugger;
|
|
1176
1216
|
}
|
|
1177
1217
|
constructor() { }
|
|
1218
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1219
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.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
1220
|
}
|
|
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: [{
|
|
1221
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormTemplateComponent, decorators: [{
|
|
1182
1222
|
type: Component,
|
|
1183
1223
|
args: [{ selector: 'fs-form-template', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #templateRef1>\n <ng-content></ng-content>\n</ng-template>" }]
|
|
1184
1224
|
}], ctorParameters: function () { return []; }, propDecorators: { templateRef: [{
|
|
@@ -1192,6 +1232,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1192
1232
|
}] } });
|
|
1193
1233
|
|
|
1194
1234
|
class FsFormTemplateOutletComponent {
|
|
1235
|
+
formTemplate;
|
|
1236
|
+
models;
|
|
1195
1237
|
ngOnChanges(changes) {
|
|
1196
1238
|
if (changes.formTemplate?.currentValue) {
|
|
1197
1239
|
}
|
|
@@ -1203,10 +1245,10 @@ class FsFormTemplateOutletComponent {
|
|
|
1203
1245
|
// });
|
|
1204
1246
|
}
|
|
1205
1247
|
constructor() { }
|
|
1248
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormTemplateOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1249
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.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
1250
|
}
|
|
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: [{
|
|
1251
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormTemplateOutletComponent, decorators: [{
|
|
1210
1252
|
type: Component,
|
|
1211
1253
|
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
1254
|
}], ctorParameters: function () { return []; }, propDecorators: { formTemplate: [{
|
|
@@ -1218,12 +1260,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1218
1260
|
|
|
1219
1261
|
class FsFormTemplateDirective {
|
|
1220
1262
|
constructor() { }
|
|
1263
|
+
models;
|
|
1221
1264
|
ngAfterContentInit() {
|
|
1222
1265
|
}
|
|
1266
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormTemplateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1267
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FsFormTemplateDirective, selector: "[fsFormTemplate]", viewQueries: [{ propertyName: "models", predicate: NgModel, descendants: true }], ngImport: i0 });
|
|
1223
1268
|
}
|
|
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: [{
|
|
1269
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormTemplateDirective, decorators: [{
|
|
1227
1270
|
type: Directive,
|
|
1228
1271
|
args: [{
|
|
1229
1272
|
selector: '[fsFormTemplate]',
|
|
@@ -1234,10 +1277,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1234
1277
|
}] } });
|
|
1235
1278
|
|
|
1236
1279
|
class FsSubmitButtonDirective extends FsButtonDirective {
|
|
1280
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsSubmitButtonDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1281
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FsSubmitButtonDirective, selector: "dummy-selector", usesInheritance: true, ngImport: i0 });
|
|
1237
1282
|
}
|
|
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: [{
|
|
1283
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsSubmitButtonDirective, decorators: [{
|
|
1241
1284
|
type: Directive,
|
|
1242
1285
|
args: [{
|
|
1243
1286
|
selector: 'dummy-selector',
|
|
@@ -1276,12 +1319,29 @@ function messageProviderFactory() {
|
|
|
1276
1319
|
}
|
|
1277
1320
|
|
|
1278
1321
|
class FsControlDirective {
|
|
1322
|
+
_elementRef;
|
|
1323
|
+
renderer2;
|
|
1324
|
+
injector;
|
|
1325
|
+
_validateMessages;
|
|
1326
|
+
ngControl;
|
|
1327
|
+
formDirective;
|
|
1328
|
+
wrapperSelector;
|
|
1329
|
+
messageSelector;
|
|
1330
|
+
hintSelector;
|
|
1331
|
+
labelSelector;
|
|
1332
|
+
appendMessageClass = 'fs-form-message';
|
|
1333
|
+
appendLabelClass = 'fs-form-label';
|
|
1334
|
+
appendErrorClass = 'fs-form-error';
|
|
1335
|
+
appendHintClass = 'fs-form-hint';
|
|
1279
1336
|
set validateMessages(messages) {
|
|
1280
1337
|
this._validateMessages = {
|
|
1281
1338
|
...this._validateMessages,
|
|
1282
1339
|
...messages,
|
|
1283
1340
|
};
|
|
1284
1341
|
}
|
|
1342
|
+
errors = [];
|
|
1343
|
+
_control;
|
|
1344
|
+
_destroy$ = new Subject();
|
|
1285
1345
|
constructor(_elementRef, renderer2, injector, _validateMessages, ngControl, formDirective) {
|
|
1286
1346
|
this._elementRef = _elementRef;
|
|
1287
1347
|
this.renderer2 = renderer2;
|
|
@@ -1289,12 +1349,6 @@ class FsControlDirective {
|
|
|
1289
1349
|
this._validateMessages = _validateMessages;
|
|
1290
1350
|
this.ngControl = ngControl;
|
|
1291
1351
|
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
1352
|
if (ngControl) {
|
|
1299
1353
|
this._control = ngControl.control;
|
|
1300
1354
|
}
|
|
@@ -1478,12 +1532,12 @@ class FsControlDirective {
|
|
|
1478
1532
|
}
|
|
1479
1533
|
control.updateValueAndValidity();
|
|
1480
1534
|
}
|
|
1535
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.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 });
|
|
1536
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.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: [
|
|
1537
|
+
VALIDATE_MESSAGE_PROVIDER,
|
|
1538
|
+
], ngImport: i0 });
|
|
1481
1539
|
}
|
|
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: [{
|
|
1540
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsControlDirective, decorators: [{
|
|
1487
1541
|
type: Directive,
|
|
1488
1542
|
args: [{
|
|
1489
1543
|
selector: '[fsFormControl]',
|
|
@@ -1524,6 +1578,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1524
1578
|
}] } });
|
|
1525
1579
|
|
|
1526
1580
|
class FsFormCompareDirective extends FsControlDirective {
|
|
1581
|
+
fsFormCompare;
|
|
1527
1582
|
set validationMessage(value) {
|
|
1528
1583
|
this._validateMessages.compare = value;
|
|
1529
1584
|
}
|
|
@@ -1546,12 +1601,12 @@ class FsFormCompareDirective extends FsControlDirective {
|
|
|
1546
1601
|
this._control.updateValueAndValidity();
|
|
1547
1602
|
}, false);
|
|
1548
1603
|
}
|
|
1604
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormCompareDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1605
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FsFormCompareDirective, selector: "[fsFormCompare]", inputs: { fsFormCompare: "fsFormCompare", validationMessage: ["fsFormCompareMessage", "validationMessage"] }, providers: [
|
|
1606
|
+
VALIDATE_MESSAGE_PROVIDER,
|
|
1607
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1549
1608
|
}
|
|
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: [{
|
|
1609
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormCompareDirective, decorators: [{
|
|
1555
1610
|
type: Directive,
|
|
1556
1611
|
args: [{
|
|
1557
1612
|
selector: '[fsFormCompare]',
|
|
@@ -1659,6 +1714,7 @@ function isEnabled(value) {
|
|
|
1659
1714
|
}
|
|
1660
1715
|
|
|
1661
1716
|
class FsFormDateRangeDirective extends FsControlDirective {
|
|
1717
|
+
fsFormDateRange;
|
|
1662
1718
|
set validationMessage(value) {
|
|
1663
1719
|
this._validateMessages.dateRange = value;
|
|
1664
1720
|
}
|
|
@@ -1673,12 +1729,12 @@ class FsFormDateRangeDirective extends FsControlDirective {
|
|
|
1673
1729
|
return null;
|
|
1674
1730
|
}
|
|
1675
1731
|
}
|
|
1732
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormDateRangeDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1733
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FsFormDateRangeDirective, selector: "[fsFormDateRange]", inputs: { fsFormDateRange: "fsFormDateRange", validationMessage: ["fsFormDateRangeMessage", "validationMessage"] }, providers: [
|
|
1734
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1735
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1676
1736
|
}
|
|
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: [{
|
|
1737
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormDateRangeDirective, decorators: [{
|
|
1682
1738
|
type: Directive,
|
|
1683
1739
|
args: [{
|
|
1684
1740
|
selector: '[fsFormDateRange]',
|
|
@@ -1694,6 +1750,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1694
1750
|
}] } });
|
|
1695
1751
|
|
|
1696
1752
|
class FsFormEmailDirective extends FsControlDirective {
|
|
1753
|
+
fsFormEmail;
|
|
1697
1754
|
set validationMessage(value) {
|
|
1698
1755
|
this._validateMessages.email = value;
|
|
1699
1756
|
}
|
|
@@ -1708,12 +1765,12 @@ class FsFormEmailDirective extends FsControlDirective {
|
|
|
1708
1765
|
return null;
|
|
1709
1766
|
}
|
|
1710
1767
|
}
|
|
1768
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormEmailDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1769
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FsFormEmailDirective, selector: "[fsFormEmail]", inputs: { fsFormEmail: "fsFormEmail", validationMessage: ["fsFormEmailMessage", "validationMessage"] }, providers: [
|
|
1770
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1771
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1711
1772
|
}
|
|
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: [{
|
|
1773
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormEmailDirective, decorators: [{
|
|
1717
1774
|
type: Directive,
|
|
1718
1775
|
args: [{
|
|
1719
1776
|
selector: '[fsFormEmail]',
|
|
@@ -1729,6 +1786,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1729
1786
|
}] } });
|
|
1730
1787
|
|
|
1731
1788
|
class FsFormEmailsDirective extends FsControlDirective {
|
|
1789
|
+
fsFormEmails;
|
|
1732
1790
|
set validationMessage(value) {
|
|
1733
1791
|
this._validateMessages.emails = value;
|
|
1734
1792
|
}
|
|
@@ -1743,12 +1801,12 @@ class FsFormEmailsDirective extends FsControlDirective {
|
|
|
1743
1801
|
return null;
|
|
1744
1802
|
}
|
|
1745
1803
|
}
|
|
1804
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormEmailsDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1805
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FsFormEmailsDirective, selector: "[fsFormEmails]", inputs: { fsFormEmails: "fsFormEmails", validationMessage: ["fsFormEmailsMessage", "validationMessage"] }, providers: [
|
|
1806
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1807
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1746
1808
|
}
|
|
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: [{
|
|
1809
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormEmailsDirective, decorators: [{
|
|
1752
1810
|
type: Directive,
|
|
1753
1811
|
args: [{
|
|
1754
1812
|
selector: '[fsFormEmails]',
|
|
@@ -1764,10 +1822,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1764
1822
|
}] } });
|
|
1765
1823
|
|
|
1766
1824
|
class FsFormFunctionDirective extends FsControlDirective {
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
}
|
|
1825
|
+
fsFormFunction;
|
|
1826
|
+
fsFormFunctionData;
|
|
1827
|
+
validateOnSubmit = false;
|
|
1771
1828
|
ngOnChanges() {
|
|
1772
1829
|
this._control.updateValueAndValidity();
|
|
1773
1830
|
}
|
|
@@ -1777,12 +1834,12 @@ class FsFormFunctionDirective extends FsControlDirective {
|
|
|
1777
1834
|
}
|
|
1778
1835
|
return FsValidators.func(this._control, this.fsFormFunction, this.fsFormFunctionData);
|
|
1779
1836
|
}
|
|
1837
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormFunctionDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1838
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FsFormFunctionDirective, selector: "[fsFormFunction]", inputs: { fsFormFunction: "fsFormFunction", fsFormFunctionData: "fsFormFunctionData", validateOnSubmit: "validateOnSubmit" }, providers: [
|
|
1839
|
+
VALIDATE_MESSAGE_PROVIDER,
|
|
1840
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1780
1841
|
}
|
|
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: [{
|
|
1842
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormFunctionDirective, decorators: [{
|
|
1786
1843
|
type: Directive,
|
|
1787
1844
|
args: [{
|
|
1788
1845
|
selector: '[fsFormFunction]',
|
|
@@ -1799,6 +1856,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1799
1856
|
}] } });
|
|
1800
1857
|
|
|
1801
1858
|
class FsFormGreaterEqualDirective extends FsControlDirective {
|
|
1859
|
+
fsFormGreaterEqual;
|
|
1802
1860
|
set validationMessage(value) {
|
|
1803
1861
|
this._validateMessages.greater = value;
|
|
1804
1862
|
}
|
|
@@ -1813,12 +1871,12 @@ class FsFormGreaterEqualDirective extends FsControlDirective {
|
|
|
1813
1871
|
}
|
|
1814
1872
|
return FsValidators.numeric(this._control);
|
|
1815
1873
|
}
|
|
1874
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormGreaterEqualDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1875
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FsFormGreaterEqualDirective, selector: "[fsFormGreaterEqual]", inputs: { fsFormGreaterEqual: "fsFormGreaterEqual", validationMessage: ["fsFormGreaterEqualMessage", "validationMessage"] }, providers: [
|
|
1876
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1877
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1816
1878
|
}
|
|
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: [{
|
|
1879
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormGreaterEqualDirective, decorators: [{
|
|
1822
1880
|
type: Directive,
|
|
1823
1881
|
args: [{
|
|
1824
1882
|
selector: '[fsFormGreaterEqual]',
|
|
@@ -1834,6 +1892,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1834
1892
|
}] } });
|
|
1835
1893
|
|
|
1836
1894
|
class FsFormGreaterDirective extends FsControlDirective {
|
|
1895
|
+
fsFormGreater;
|
|
1837
1896
|
set validationMessage(value) {
|
|
1838
1897
|
this._validateMessages.greater = value;
|
|
1839
1898
|
}
|
|
@@ -1848,12 +1907,12 @@ class FsFormGreaterDirective extends FsControlDirective {
|
|
|
1848
1907
|
}
|
|
1849
1908
|
return FsValidators.numeric(this._control);
|
|
1850
1909
|
}
|
|
1910
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormGreaterDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1911
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FsFormGreaterDirective, selector: "[fsFormGreater]", inputs: { fsFormGreater: "fsFormGreater", validationMessage: ["fsFormGreaterMessage", "validationMessage"] }, providers: [
|
|
1912
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1913
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1851
1914
|
}
|
|
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: [{
|
|
1915
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormGreaterDirective, decorators: [{
|
|
1857
1916
|
type: Directive,
|
|
1858
1917
|
args: [{
|
|
1859
1918
|
selector: '[fsFormGreater]',
|
|
@@ -1869,6 +1928,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1869
1928
|
}] } });
|
|
1870
1929
|
|
|
1871
1930
|
class FsFormIntegerDirective extends FsControlDirective {
|
|
1931
|
+
fsFormInteger;
|
|
1872
1932
|
set validationMessage(value) {
|
|
1873
1933
|
this._validateMessages.integer = value;
|
|
1874
1934
|
}
|
|
@@ -1881,12 +1941,12 @@ class FsFormIntegerDirective extends FsControlDirective {
|
|
|
1881
1941
|
}
|
|
1882
1942
|
return null;
|
|
1883
1943
|
}
|
|
1944
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormIntegerDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1945
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FsFormIntegerDirective, selector: "[fsFormInteger]", inputs: { fsFormInteger: "fsFormInteger", validationMessage: ["fsFormIntegerMessage", "validationMessage"] }, providers: [
|
|
1946
|
+
VALIDATE_MESSAGE_PROVIDER,
|
|
1947
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1884
1948
|
}
|
|
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: [{
|
|
1949
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormIntegerDirective, decorators: [{
|
|
1890
1950
|
type: Directive,
|
|
1891
1951
|
args: [{
|
|
1892
1952
|
selector: '[fsFormInteger]',
|
|
@@ -1902,6 +1962,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1902
1962
|
}] } });
|
|
1903
1963
|
|
|
1904
1964
|
class FsFormLesserEqualDirective extends FsControlDirective {
|
|
1965
|
+
fsFormLesserEqual;
|
|
1905
1966
|
set validationMessage(value) {
|
|
1906
1967
|
this._validateMessages.lesser = value;
|
|
1907
1968
|
}
|
|
@@ -1916,12 +1977,12 @@ class FsFormLesserEqualDirective extends FsControlDirective {
|
|
|
1916
1977
|
}
|
|
1917
1978
|
return FsValidators.numeric(this._control);
|
|
1918
1979
|
}
|
|
1980
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormLesserEqualDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1981
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FsFormLesserEqualDirective, selector: "[fsFormLesserEqual]", inputs: { fsFormLesserEqual: "fsFormLesserEqual", validationMessage: ["fsFormLesserEqualMessage", "validationMessage"] }, providers: [
|
|
1982
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
1983
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1919
1984
|
}
|
|
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: [{
|
|
1985
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormLesserEqualDirective, decorators: [{
|
|
1925
1986
|
type: Directive,
|
|
1926
1987
|
args: [{
|
|
1927
1988
|
selector: '[fsFormLesserEqual]',
|
|
@@ -1937,6 +1998,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1937
1998
|
}] } });
|
|
1938
1999
|
|
|
1939
2000
|
class FsFormLesserDirective extends FsControlDirective {
|
|
2001
|
+
fsFormLesser;
|
|
1940
2002
|
set validationMessage(value) {
|
|
1941
2003
|
this._validateMessages.lesser = value;
|
|
1942
2004
|
}
|
|
@@ -1951,12 +2013,12 @@ class FsFormLesserDirective extends FsControlDirective {
|
|
|
1951
2013
|
}
|
|
1952
2014
|
return FsValidators.numeric(this._control);
|
|
1953
2015
|
}
|
|
2016
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormLesserDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2017
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FsFormLesserDirective, selector: "[fsFormLesser]", inputs: { fsFormLesser: "fsFormLesser", validationMessage: ["fsFormLesserMessage", "validationMessage"] }, providers: [
|
|
2018
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
2019
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1954
2020
|
}
|
|
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: [{
|
|
2021
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormLesserDirective, decorators: [{
|
|
1960
2022
|
type: Directive,
|
|
1961
2023
|
args: [{
|
|
1962
2024
|
selector: '[fsFormLesser]',
|
|
@@ -1972,6 +2034,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1972
2034
|
}] } });
|
|
1973
2035
|
|
|
1974
2036
|
class FsFormMaxDirective extends FsControlDirective {
|
|
2037
|
+
fsFormMax;
|
|
1975
2038
|
set validationMessage(value) {
|
|
1976
2039
|
this._validateMessages.max = value;
|
|
1977
2040
|
}
|
|
@@ -1981,12 +2044,12 @@ class FsFormMaxDirective extends FsControlDirective {
|
|
|
1981
2044
|
validate(control) {
|
|
1982
2045
|
return FsValidators.numeric(this._control) || Validators.max(this.fsFormMax)(this._control);
|
|
1983
2046
|
}
|
|
2047
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormMaxDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2048
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FsFormMaxDirective, selector: "[fsFormMax]", inputs: { fsFormMax: "fsFormMax", validationMessage: ["fsFormMaxMessage", "validationMessage"] }, providers: [
|
|
2049
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
2050
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1984
2051
|
}
|
|
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: [{
|
|
2052
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormMaxDirective, decorators: [{
|
|
1990
2053
|
type: Directive,
|
|
1991
2054
|
args: [{
|
|
1992
2055
|
selector: '[fsFormMax]',
|
|
@@ -2002,6 +2065,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2002
2065
|
}] } });
|
|
2003
2066
|
|
|
2004
2067
|
class FsFormMaxLengthDirective extends FsControlDirective {
|
|
2068
|
+
fsFormMaxLength;
|
|
2005
2069
|
set validationMessage(value) {
|
|
2006
2070
|
this._validateMessages.maxlength = value;
|
|
2007
2071
|
}
|
|
@@ -2011,12 +2075,12 @@ class FsFormMaxLengthDirective extends FsControlDirective {
|
|
|
2011
2075
|
validate(control) {
|
|
2012
2076
|
return Validators.maxLength(this.fsFormMaxLength)(this._control);
|
|
2013
2077
|
}
|
|
2078
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormMaxLengthDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2079
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FsFormMaxLengthDirective, selector: "[fsFormMaxLength]", inputs: { fsFormMaxLength: "fsFormMaxLength", validationMessage: ["fsFormMaxLengthMessage", "validationMessage"] }, providers: [
|
|
2080
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
2081
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
2014
2082
|
}
|
|
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: [{
|
|
2083
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormMaxLengthDirective, decorators: [{
|
|
2020
2084
|
type: Directive,
|
|
2021
2085
|
args: [{
|
|
2022
2086
|
selector: '[fsFormMaxLength]',
|
|
@@ -2032,6 +2096,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2032
2096
|
}] } });
|
|
2033
2097
|
|
|
2034
2098
|
class FsFormMinDirective extends FsControlDirective {
|
|
2099
|
+
fsFormMin;
|
|
2035
2100
|
set validationMessage(value) {
|
|
2036
2101
|
this._validateMessages.min = value;
|
|
2037
2102
|
}
|
|
@@ -2041,12 +2106,12 @@ class FsFormMinDirective extends FsControlDirective {
|
|
|
2041
2106
|
validate(control) {
|
|
2042
2107
|
return FsValidators.numeric(this._control) || Validators.min(parseFloat(this.fsFormMin))(this._control);
|
|
2043
2108
|
}
|
|
2109
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormMinDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2110
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FsFormMinDirective, selector: "[fsFormMin]", inputs: { fsFormMin: "fsFormMin", validationMessage: ["fsFormMinMessage", "validationMessage"] }, providers: [
|
|
2111
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
2112
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
2044
2113
|
}
|
|
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: [{
|
|
2114
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormMinDirective, decorators: [{
|
|
2050
2115
|
type: Directive,
|
|
2051
2116
|
args: [{
|
|
2052
2117
|
selector: '[fsFormMin]',
|
|
@@ -2062,6 +2127,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2062
2127
|
}] } });
|
|
2063
2128
|
|
|
2064
2129
|
class FsFormMinLengthDirective extends FsControlDirective {
|
|
2130
|
+
fsFormMinLength;
|
|
2065
2131
|
set validationMessage(value) {
|
|
2066
2132
|
this._validateMessages.minlength = value;
|
|
2067
2133
|
}
|
|
@@ -2071,12 +2137,12 @@ class FsFormMinLengthDirective extends FsControlDirective {
|
|
|
2071
2137
|
validate(control) {
|
|
2072
2138
|
return Validators.minLength(this.fsFormMinLength)(this._control);
|
|
2073
2139
|
}
|
|
2140
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormMinLengthDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2141
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FsFormMinLengthDirective, selector: "[fsFormMinLength]", inputs: { fsFormMinLength: "fsFormMinLength", validationMessage: ["fsFormMinLengthMessage", "validationMessage"] }, providers: [
|
|
2142
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
2143
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
2074
2144
|
}
|
|
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: [{
|
|
2145
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormMinLengthDirective, decorators: [{
|
|
2080
2146
|
type: Directive,
|
|
2081
2147
|
args: [{
|
|
2082
2148
|
selector: '[fsFormMinLength]',
|
|
@@ -2105,12 +2171,12 @@ class FsFormNoFsValidatorsDirective extends FsControlDirective {
|
|
|
2105
2171
|
super._subscribeToStatusChagnes();
|
|
2106
2172
|
}
|
|
2107
2173
|
}
|
|
2174
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormNoFsValidatorsDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2175
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.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: [
|
|
2176
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
2177
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
2108
2178
|
}
|
|
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: [{
|
|
2179
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormNoFsValidatorsDirective, decorators: [{
|
|
2114
2180
|
type: Directive,
|
|
2115
2181
|
args: [{
|
|
2116
2182
|
selector: '[ngModel]' +
|
|
@@ -2141,6 +2207,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2141
2207
|
}] });
|
|
2142
2208
|
|
|
2143
2209
|
class FsFormNumericDirective extends FsControlDirective {
|
|
2210
|
+
fsFormNumeric;
|
|
2144
2211
|
set validationMessage(value) {
|
|
2145
2212
|
this._validateMessages.numeric = value;
|
|
2146
2213
|
}
|
|
@@ -2155,12 +2222,12 @@ class FsFormNumericDirective extends FsControlDirective {
|
|
|
2155
2222
|
return null;
|
|
2156
2223
|
}
|
|
2157
2224
|
}
|
|
2225
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormNumericDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2226
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FsFormNumericDirective, selector: "[fsFormNumeric]", inputs: { fsFormNumeric: "fsFormNumeric", validationMessage: ["fsFormNumericMessage", "validationMessage"] }, providers: [
|
|
2227
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
2228
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
2158
2229
|
}
|
|
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: [{
|
|
2230
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormNumericDirective, decorators: [{
|
|
2164
2231
|
type: Directive,
|
|
2165
2232
|
args: [{
|
|
2166
2233
|
selector: '[fsFormNumeric]',
|
|
@@ -2176,6 +2243,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2176
2243
|
}] } });
|
|
2177
2244
|
|
|
2178
2245
|
class FsFormPatternDirective extends FsControlDirective {
|
|
2246
|
+
fsFormPattern;
|
|
2179
2247
|
set validationMessage(value) {
|
|
2180
2248
|
this._validateMessages.pattern = value;
|
|
2181
2249
|
}
|
|
@@ -2185,12 +2253,12 @@ class FsFormPatternDirective extends FsControlDirective {
|
|
|
2185
2253
|
validate(control) {
|
|
2186
2254
|
return Validators.pattern(this.fsFormPattern)(this._control);
|
|
2187
2255
|
}
|
|
2256
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormPatternDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2257
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FsFormPatternDirective, selector: "[fsFormPattern]", inputs: { fsFormPattern: "fsFormPattern", validationMessage: ["fsFormPatternMessage", "validationMessage"] }, providers: [
|
|
2258
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
2259
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
2188
2260
|
}
|
|
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: [{
|
|
2261
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormPatternDirective, decorators: [{
|
|
2194
2262
|
type: Directive,
|
|
2195
2263
|
args: [{
|
|
2196
2264
|
selector: '[fsFormPattern]',
|
|
@@ -2206,6 +2274,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2206
2274
|
}] } });
|
|
2207
2275
|
|
|
2208
2276
|
class FsFormPhoneDirective extends FsControlDirective {
|
|
2277
|
+
fsFormPhone;
|
|
2209
2278
|
set validationMessage(value) {
|
|
2210
2279
|
this._validateMessages.phone = value;
|
|
2211
2280
|
}
|
|
@@ -2220,12 +2289,12 @@ class FsFormPhoneDirective extends FsControlDirective {
|
|
|
2220
2289
|
return null;
|
|
2221
2290
|
}
|
|
2222
2291
|
}
|
|
2292
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormPhoneDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2293
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FsFormPhoneDirective, selector: "[fsFormPhone]", inputs: { fsFormPhone: "fsFormPhone", validationMessage: ["fsFormPhoneMessage", "validationMessage"] }, providers: [
|
|
2294
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
2295
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
2223
2296
|
}
|
|
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: [{
|
|
2297
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormPhoneDirective, decorators: [{
|
|
2229
2298
|
type: Directive,
|
|
2230
2299
|
args: [{
|
|
2231
2300
|
selector: '[fsFormPhone]',
|
|
@@ -2241,10 +2310,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2241
2310
|
}] } });
|
|
2242
2311
|
|
|
2243
2312
|
class FsFormRequiredDirective extends FsControlDirective {
|
|
2244
|
-
|
|
2245
|
-
super(...arguments);
|
|
2246
|
-
this.required = false;
|
|
2247
|
-
}
|
|
2313
|
+
required = false;
|
|
2248
2314
|
set setFsFormRequired(value) {
|
|
2249
2315
|
this.required = isEnabled(value);
|
|
2250
2316
|
}
|
|
@@ -2279,12 +2345,12 @@ class FsFormRequiredDirective extends FsControlDirective {
|
|
|
2279
2345
|
}
|
|
2280
2346
|
super.render();
|
|
2281
2347
|
}
|
|
2348
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormRequiredDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2349
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FsFormRequiredDirective, selector: "[fsFormRequired],[ngModel][required]", inputs: { setFsFormRequired: ["fsFormRequired", "setFsFormRequired"], setRequired: ["required", "setRequired"], validationMessage: ["fsFormRequiredMessage", "validationMessage"] }, providers: [
|
|
2350
|
+
VALIDATE_MESSAGE_PROVIDER,
|
|
2351
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
2282
2352
|
}
|
|
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: [{
|
|
2353
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormRequiredDirective, decorators: [{
|
|
2288
2354
|
type: Directive,
|
|
2289
2355
|
args: [{
|
|
2290
2356
|
selector: '[fsFormRequired],[ngModel][required]',
|
|
@@ -2304,10 +2370,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2304
2370
|
}] } });
|
|
2305
2371
|
|
|
2306
2372
|
class FsFormUrlDirective extends FsControlDirective {
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
this.fsFormUrlProtocol = true;
|
|
2310
|
-
}
|
|
2373
|
+
fsFormUrl;
|
|
2374
|
+
fsFormUrlProtocol = true;
|
|
2311
2375
|
set validationMessage(value) {
|
|
2312
2376
|
this._validateMessages.url = value;
|
|
2313
2377
|
}
|
|
@@ -2320,12 +2384,12 @@ class FsFormUrlDirective extends FsControlDirective {
|
|
|
2320
2384
|
}
|
|
2321
2385
|
return null;
|
|
2322
2386
|
}
|
|
2387
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormUrlDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2388
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FsFormUrlDirective, selector: "[fsFormUrl]", inputs: { fsFormUrl: "fsFormUrl", fsFormUrlProtocol: "fsFormUrlProtocol", validationMessage: ["fsFormUrlMessage", "validationMessage"] }, providers: [
|
|
2389
|
+
VALIDATE_MESSAGE_PROVIDER,
|
|
2390
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
2323
2391
|
}
|
|
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: [{
|
|
2392
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormUrlDirective, decorators: [{
|
|
2329
2393
|
type: Directive,
|
|
2330
2394
|
args: [{
|
|
2331
2395
|
selector: '[fsFormUrl]',
|
|
@@ -2343,10 +2407,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2343
2407
|
}] } });
|
|
2344
2408
|
|
|
2345
2409
|
class FsFormValidateDirective extends FsControlDirective {
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
}
|
|
2410
|
+
validateFn;
|
|
2411
|
+
validateFnData;
|
|
2412
|
+
validateOnSubmit = false;
|
|
2350
2413
|
ngOnChanges() {
|
|
2351
2414
|
this._control.updateValueAndValidity();
|
|
2352
2415
|
}
|
|
@@ -2356,12 +2419,12 @@ class FsFormValidateDirective extends FsControlDirective {
|
|
|
2356
2419
|
}
|
|
2357
2420
|
return FsValidators.func(this._control, this.validateFn, this.validateFnData);
|
|
2358
2421
|
}
|
|
2422
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormValidateDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2423
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FsFormValidateDirective, selector: "[validate]", inputs: { validateFn: ["validate", "validateFn"], validateFnData: ["validateData", "validateFnData"], validateOnSubmit: "validateOnSubmit" }, providers: [
|
|
2424
|
+
VALIDATE_MESSAGE_PROVIDER
|
|
2425
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
2359
2426
|
}
|
|
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: [{
|
|
2427
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormValidateDirective, decorators: [{
|
|
2365
2428
|
type: Directive,
|
|
2366
2429
|
args: [{
|
|
2367
2430
|
selector: '[validate]',
|
|
@@ -2392,85 +2455,85 @@ class FsFormModule {
|
|
|
2392
2455
|
ngModule: FsFormModule,
|
|
2393
2456
|
};
|
|
2394
2457
|
}
|
|
2458
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2459
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: FsFormModule, declarations: [FsFormDirective,
|
|
2460
|
+
FsControlDirective,
|
|
2461
|
+
FsFormRequiredDirective,
|
|
2462
|
+
FsFormMinDirective,
|
|
2463
|
+
FsFormMaxDirective,
|
|
2464
|
+
FsFormMinLengthDirective,
|
|
2465
|
+
FsFormMaxLengthDirective,
|
|
2466
|
+
FsFormEmailDirective,
|
|
2467
|
+
FsFormEmailsDirective,
|
|
2468
|
+
FsFormPhoneDirective,
|
|
2469
|
+
FsFormCompareDirective,
|
|
2470
|
+
FsFormIntegerDirective,
|
|
2471
|
+
FsFormNumericDirective,
|
|
2472
|
+
FsFormPatternDirective,
|
|
2473
|
+
FsFormFunctionDirective,
|
|
2474
|
+
FsFormDateRangeDirective,
|
|
2475
|
+
FsFormGreaterDirective,
|
|
2476
|
+
FsFormGreaterEqualDirective,
|
|
2477
|
+
FsFormLesserDirective,
|
|
2478
|
+
FsFormLesserEqualDirective,
|
|
2479
|
+
FsFormUrlDirective,
|
|
2480
|
+
FsFormDialogCloseDirective,
|
|
2481
|
+
FsFormValidateDirective,
|
|
2482
|
+
FsFormDialogActionsComponent,
|
|
2483
|
+
FsFormNoFsValidatorsDirective,
|
|
2484
|
+
FsButtonDirective,
|
|
2485
|
+
FsSubmitButtonDirective,
|
|
2486
|
+
FsFormTemplateComponent,
|
|
2487
|
+
FsFormTemplateDirective,
|
|
2488
|
+
FsFormTemplateOutletComponent,
|
|
2489
|
+
ConfirmUnsavedComponent], imports: [CommonModule,
|
|
2490
|
+
FormsModule,
|
|
2491
|
+
MatButtonModule,
|
|
2492
|
+
MatDialogModule,
|
|
2493
|
+
MatDialogModule,
|
|
2494
|
+
FsDialogModule], exports: [FsFormDirective,
|
|
2495
|
+
FsControlDirective,
|
|
2496
|
+
FsFormRequiredDirective,
|
|
2497
|
+
FsFormMinDirective,
|
|
2498
|
+
FsFormMaxDirective,
|
|
2499
|
+
FsFormMinLengthDirective,
|
|
2500
|
+
FsFormMaxLengthDirective,
|
|
2501
|
+
FsFormEmailDirective,
|
|
2502
|
+
FsFormEmailsDirective,
|
|
2503
|
+
FsFormPhoneDirective,
|
|
2504
|
+
FsFormCompareDirective,
|
|
2505
|
+
FsFormIntegerDirective,
|
|
2506
|
+
FsFormNumericDirective,
|
|
2507
|
+
FsFormPatternDirective,
|
|
2508
|
+
FsFormFunctionDirective,
|
|
2509
|
+
FsFormDateRangeDirective,
|
|
2510
|
+
FsFormGreaterDirective,
|
|
2511
|
+
FsFormGreaterEqualDirective,
|
|
2512
|
+
FsFormLesserDirective,
|
|
2513
|
+
FsFormLesserEqualDirective,
|
|
2514
|
+
FsFormUrlDirective,
|
|
2515
|
+
FsFormDialogCloseDirective,
|
|
2516
|
+
FsFormValidateDirective,
|
|
2517
|
+
FsFormDialogActionsComponent,
|
|
2518
|
+
FsFormNoFsValidatorsDirective,
|
|
2519
|
+
FsButtonDirective,
|
|
2520
|
+
FsSubmitButtonDirective,
|
|
2521
|
+
FsFormTemplateComponent,
|
|
2522
|
+
FsFormTemplateDirective,
|
|
2523
|
+
FsFormTemplateOutletComponent] });
|
|
2524
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormModule, providers: [
|
|
2525
|
+
{
|
|
2526
|
+
provide: ErrorStateMatcher,
|
|
2527
|
+
useClass: ShowOnDirtyErrorStateMatcher,
|
|
2528
|
+
},
|
|
2529
|
+
], imports: [CommonModule,
|
|
2530
|
+
FormsModule,
|
|
2531
|
+
MatButtonModule,
|
|
2532
|
+
MatDialogModule,
|
|
2533
|
+
MatDialogModule,
|
|
2534
|
+
FsDialogModule] });
|
|
2395
2535
|
}
|
|
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: [{
|
|
2536
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFormModule, decorators: [{
|
|
2474
2537
|
type: NgModule,
|
|
2475
2538
|
args: [{
|
|
2476
2539
|
imports: [
|