@firestitch/form 18.0.23 → 18.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/app/components/confirm-unsaved/confirm-unsaved.component.d.ts +0 -2
  2. package/app/components/form-dialog-actions/form-dialog-actions.component.d.ts +3 -5
  3. package/app/directives/button.directive.d.ts +1 -1
  4. package/app/directives/form/form.directive.d.ts +3 -10
  5. package/app/directives/form-dialog-close.directive.d.ts +2 -5
  6. package/app/directives/form-group/form-group.directive.d.ts +1 -1
  7. package/app/directives/form-template-outlet.directive.d.ts +1 -1
  8. package/app/directives/form-template.directive.d.ts +1 -1
  9. package/app/directives/submit-button.directive.d.ts +1 -1
  10. package/app/directives/validators/compare.directive.d.ts +1 -1
  11. package/app/directives/validators/control.directive.d.ts +11 -11
  12. package/app/directives/validators/daterange.directive.d.ts +1 -1
  13. package/app/directives/validators/email.directive.d.ts +1 -1
  14. package/app/directives/validators/emails.directive.d.ts +1 -1
  15. package/app/directives/validators/function.directive.d.ts +1 -1
  16. package/app/directives/validators/greater-equal.directive.d.ts +1 -1
  17. package/app/directives/validators/greater.directive.d.ts +1 -1
  18. package/app/directives/validators/integer.directive.d.ts +1 -1
  19. package/app/directives/validators/lesser-equal.directive.d.ts +1 -1
  20. package/app/directives/validators/lesser.directive.d.ts +1 -1
  21. package/app/directives/validators/max.directive.d.ts +1 -1
  22. package/app/directives/validators/maxlength.directive.d.ts +1 -1
  23. package/app/directives/validators/min.directive.d.ts +1 -1
  24. package/app/directives/validators/minlength.directive.d.ts +1 -1
  25. package/app/directives/validators/no-fs-validators.directive.d.ts +1 -1
  26. package/app/directives/validators/numeric.directive.d.ts +1 -1
  27. package/app/directives/validators/pattern.directive.d.ts +1 -1
  28. package/app/directives/validators/phone.directive.d.ts +1 -1
  29. package/app/directives/validators/required.directive.d.ts +1 -1
  30. package/app/directives/validators/url.directive.d.ts +1 -1
  31. package/app/directives/validators/validate.directive.d.ts +1 -1
  32. package/app/fs-form.module.d.ts +36 -36
  33. package/app/guards/form-deactivate.guard.d.ts +0 -3
  34. package/esm2022/app/components/confirm-unsaved/confirm-unsaved.component.mjs +6 -13
  35. package/esm2022/app/components/form-dialog-actions/form-dialog-actions.component.mjs +20 -20
  36. package/esm2022/app/directives/button.directive.mjs +5 -3
  37. package/esm2022/app/directives/form/form.directive.mjs +14 -46
  38. package/esm2022/app/directives/form-dialog-close.directive.mjs +8 -17
  39. package/esm2022/app/directives/form-group/form-group.directive.mjs +3 -2
  40. package/esm2022/app/directives/form-template-outlet.directive.mjs +3 -2
  41. package/esm2022/app/directives/form-template.directive.mjs +3 -2
  42. package/esm2022/app/directives/submit-button.directive.mjs +3 -2
  43. package/esm2022/app/directives/validators/compare.directive.mjs +3 -2
  44. package/esm2022/app/directives/validators/control.directive.mjs +41 -46
  45. package/esm2022/app/directives/validators/daterange.directive.mjs +3 -2
  46. package/esm2022/app/directives/validators/email.directive.mjs +3 -2
  47. package/esm2022/app/directives/validators/emails.directive.mjs +3 -2
  48. package/esm2022/app/directives/validators/function.directive.mjs +3 -2
  49. package/esm2022/app/directives/validators/greater-equal.directive.mjs +3 -2
  50. package/esm2022/app/directives/validators/greater.directive.mjs +3 -2
  51. package/esm2022/app/directives/validators/integer.directive.mjs +3 -2
  52. package/esm2022/app/directives/validators/lesser-equal.directive.mjs +3 -2
  53. package/esm2022/app/directives/validators/lesser.directive.mjs +3 -2
  54. package/esm2022/app/directives/validators/max.directive.mjs +3 -2
  55. package/esm2022/app/directives/validators/maxlength.directive.mjs +3 -2
  56. package/esm2022/app/directives/validators/min.directive.mjs +3 -2
  57. package/esm2022/app/directives/validators/minlength.directive.mjs +3 -2
  58. package/esm2022/app/directives/validators/no-fs-validators.directive.mjs +3 -2
  59. package/esm2022/app/directives/validators/numeric.directive.mjs +3 -2
  60. package/esm2022/app/directives/validators/pattern.directive.mjs +3 -2
  61. package/esm2022/app/directives/validators/phone.directive.mjs +3 -2
  62. package/esm2022/app/directives/validators/required.directive.mjs +3 -2
  63. package/esm2022/app/directives/validators/url.directive.mjs +3 -2
  64. package/esm2022/app/directives/validators/validate.directive.mjs +3 -2
  65. package/esm2022/app/fs-form.module.mjs +11 -11
  66. package/esm2022/app/guards/form-deactivate.guard.mjs +6 -12
  67. package/fesm2022/firestitch-form.mjs +182 -205
  68. package/fesm2022/firestitch-form.mjs.map +1 -1
  69. package/package.json +1 -1
  70. package/styles.scss +8 -4
@@ -1,41 +1,32 @@
1
- import * as i2$3 from '@angular/common';
2
- import { CommonModule } from '@angular/common';
1
+ import { NgClass, NgTemplateOutlet, CommonModule } from '@angular/common';
3
2
  import * as i0 from '@angular/core';
4
- import { Component, ChangeDetectionStrategy, Inject, inject, Injectable, NgZone, ChangeDetectorRef, QueryList, Directive, Input, ContentChildren, EventEmitter, Optional, Output, HostBinding, HostListener, ElementRef, InjectionToken, Self, ViewContainerRef, Injector, NgModule } from '@angular/core';
5
- import * as i1$1 from '@angular/forms';
6
- import { UntypedFormGroup, NgForm, Validators, NgModel, FormsModule } from '@angular/forms';
7
- import * as i3 from '@angular/material/button';
3
+ import { inject, Component, ChangeDetectionStrategy, Injectable, NgZone, ChangeDetectorRef, QueryList, Directive, Input, ContentChildren, ElementRef, EventEmitter, Output, HostBinding, HostListener, InjectionToken, Renderer2, Injector, ViewContainerRef, NgModule } from '@angular/core';
4
+ import { UntypedFormGroup, NgForm, NgControl, Validators, NgModel, FormsModule } from '@angular/forms';
8
5
  import { MatButton, MatButtonModule } from '@angular/material/button';
9
6
  import { ErrorStateMatcher, ShowOnDirtyErrorStateMatcher } from '@angular/material/core';
10
7
  import * as i1 from '@angular/material/dialog';
11
- import { MAT_DIALOG_DATA, MatDialogModule, MatDialog, MatDialogRef } from '@angular/material/dialog';
8
+ import { MAT_DIALOG_DATA, MatDialogRef, MatDialogModule, MatDialog, MatDialogClose } from '@angular/material/dialog';
12
9
  import * as i2 from '@firestitch/dialog';
13
10
  import { FsDialogModule } from '@firestitch/dialog';
14
11
  import { Subject, of, BehaviorSubject, throwError, fromEvent, iif, defer, from, isObservable } from 'rxjs';
15
12
  import { switchMap, map, catchError, takeUntil, filter, tap, take, mergeMap, delay, first, startWith, mapTo } from 'rxjs/operators';
16
- import * as i2$1 from '@angular/router';
13
+ import { ActivatedRoute } from '@angular/router';
17
14
  import { guid, email, isEmpty, isNumeric, phone, url } from '@firestitch/common';
18
- import * as i7 from '@firestitch/drawer';
19
15
  import { DrawerRef } from '@firestitch/drawer';
20
- import * as i2$2 from '@firestitch/message';
21
- import { MessageMode } from '@firestitch/message';
16
+ import { FsMessage, MessageMode } from '@firestitch/message';
22
17
  import { MatTabGroup } from '@angular/material/tabs';
23
18
  import { values, keys, isObject } from 'lodash-es';
24
19
  import { isValid } from 'date-fns';
25
20
 
26
21
  class ConfirmUnsavedComponent {
27
- _data;
28
- _dialogRef;
22
+ _data = inject(MAT_DIALOG_DATA);
23
+ _dialogRef = inject(MatDialogRef);
29
24
  saveLabel;
30
25
  discardLabel;
31
26
  cancelLabel;
32
27
  message;
33
28
  title;
34
29
  _destroy$ = new Subject();
35
- constructor(_data, _dialogRef) {
36
- this._data = _data;
37
- this._dialogRef = _dialogRef;
38
- }
39
30
  ngOnInit() {
40
31
  this.saveLabel = this._data.saveLabel;
41
32
  this.discardLabel = this._data.discardLabel;
@@ -56,7 +47,7 @@ class ConfirmUnsavedComponent {
56
47
  this._destroy$.next(null);
57
48
  this._destroy$.complete();
58
49
  }
59
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ConfirmUnsavedComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1.MatDialogRef }], target: i0.ɵɵFactoryTarget.Component });
50
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ConfirmUnsavedComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
60
51
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.7", type: ConfirmUnsavedComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<fs-dialog>\n <h1 mat-dialog-title>\n {{ title }}\n </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 mat-button>\n {{ saveLabel }}\n </button>\n <button\n type=\"button\"\n (click)=\"discard()\"\n mat-button>\n {{ discardLabel }}\n </button>\n <button\n type=\"button\"\n (click)=\"cancel()\"\n mat-button>\n {{ cancelLabel }}\n </button>\n </mat-dialog-actions>\n</fs-dialog>", styles: [":host{width:100%}.form-buttons.save-create .close-button:not(.cancel-button){float:right}\n"], dependencies: [{ kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "ngmodule", type: FsDialogModule }, { kind: "component", type: i2.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode", "mobileButtonPlacement", "mobileWidth", "mode", "buttonLayout"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
61
52
  }
62
53
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ConfirmUnsavedComponent, decorators: [{
@@ -66,10 +57,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
66
57
  MatButton,
67
58
  FsDialogModule,
68
59
  ], template: "<fs-dialog>\n <h1 mat-dialog-title>\n {{ title }}\n </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 mat-button>\n {{ saveLabel }}\n </button>\n <button\n type=\"button\"\n (click)=\"discard()\"\n mat-button>\n {{ discardLabel }}\n </button>\n <button\n type=\"button\"\n (click)=\"cancel()\"\n mat-button>\n {{ cancelLabel }}\n </button>\n </mat-dialog-actions>\n</fs-dialog>", styles: [":host{width:100%}.form-buttons.save-create .close-button:not(.cancel-button){float:right}\n"] }]
69
- }], ctorParameters: () => [{ type: undefined, decorators: [{
70
- type: Inject,
71
- args: [MAT_DIALOG_DATA]
72
- }] }, { type: i1.MatDialogRef }] });
60
+ }] });
73
61
 
74
62
  var ConfirmResult;
75
63
  (function (ConfirmResult) {
@@ -188,12 +176,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
188
176
  }] });
189
177
 
190
178
  class FormDeactivateGuard {
191
- _form;
192
- _route;
193
- constructor(_form, _route) {
194
- this._form = _form;
195
- this._route = _route;
196
- }
179
+ _form = inject(FsForm);
180
+ _route = inject(ActivatedRoute);
197
181
  canDeactivate() {
198
182
  const route = getActiveRoute(this._route);
199
183
  if (!route) {
@@ -211,7 +195,7 @@ class FormDeactivateGuard {
211
195
  return confirmResultContinue(result);
212
196
  }));
213
197
  }
214
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FormDeactivateGuard, deps: [{ token: FsForm }, { token: i2$1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Injectable });
198
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FormDeactivateGuard, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
215
199
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FormDeactivateGuard, providedIn: 'root' });
216
200
  }
217
201
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FormDeactivateGuard, decorators: [{
@@ -219,7 +203,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
219
203
  args: [{
220
204
  providedIn: 'root',
221
205
  }]
222
- }], ctorParameters: () => [{ type: FsForm }, { type: i2$1.ActivatedRoute }] });
206
+ }] });
223
207
 
224
208
  function getFormErrors(control, key) {
225
209
  let errors = null;
@@ -366,25 +350,26 @@ class FsFormGroupDirective extends FsFormBaseDirective {
366
350
  this._formDirective = null;
367
351
  }
368
352
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormGroupDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
369
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormGroupDirective, selector: "[fsFormGroup]", exportAs: ["fsFormGroup"], usesInheritance: true, ngImport: i0 });
353
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormGroupDirective, isStandalone: true, selector: "[fsFormGroup]", exportAs: ["fsFormGroup"], usesInheritance: true, ngImport: i0 });
370
354
  }
371
355
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormGroupDirective, decorators: [{
372
356
  type: Directive,
373
357
  args: [{
374
358
  selector: '[fsFormGroup]',
375
359
  exportAs: 'fsFormGroup',
360
+ standalone: true,
376
361
  }]
377
362
  }] });
378
363
 
379
364
  class FsFormDirective extends FsFormBaseDirective {
380
- ngForm;
381
- _form;
382
- _element;
383
- _message;
384
- _formGroup;
385
- _dialogRef;
386
- _drawerRef;
387
- _route;
365
+ ngForm = inject(NgForm);
366
+ _form = inject(FsForm);
367
+ _element = inject(ElementRef);
368
+ _message = inject(FsMessage);
369
+ _formGroup = inject(FsFormGroupDirective, { optional: true });
370
+ _dialogRef = inject(MatDialogRef, { optional: true });
371
+ _drawerRef = inject(DrawerRef, { optional: true });
372
+ _route = inject(ActivatedRoute);
388
373
  wrapperSelector = '.fs-form-wrapper,.mat-mdc-form-field';
389
374
  messageSelector = '.fs-form-message,.mat-mdc-form-field-subscript-wrapper';
390
375
  hintSelector = '.fs-form-hint,.mat-mdc-form-field-hint-wrapper';
@@ -418,17 +403,6 @@ class FsFormDirective extends FsFormBaseDirective {
418
403
  _activatedRouteConfig;
419
404
  _status$ = new BehaviorSubject(FormStatus.Valid);
420
405
  _submit$ = null;
421
- constructor(ngForm, _form, _element, _message, _formGroup, _dialogRef, _drawerRef, _route) {
422
- super();
423
- this.ngForm = ngForm;
424
- this._form = _form;
425
- this._element = _element;
426
- this._message = _message;
427
- this._formGroup = _formGroup;
428
- this._dialogRef = _dialogRef;
429
- this._drawerRef = _drawerRef;
430
- this._route = _route;
431
- }
432
406
  get submitting() {
433
407
  return this._status$.getValue() === FormStatus.Submitting;
434
408
  }
@@ -922,31 +896,17 @@ class FsFormDirective extends FsFormBaseDirective {
922
896
  this._activatedRouteConfig.canDeactivate.splice(guardIndex, 1);
923
897
  this._form.removeFormDirective(this._activatedRouteConfig.component);
924
898
  }
925
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormDirective, deps: [{ token: NgForm }, { token: FsForm }, { token: i0.ElementRef }, { token: i2$2.FsMessage }, { token: FsFormGroupDirective, optional: true }, { token: MatDialogRef, optional: true }, { token: DrawerRef, optional: true }, { token: i2$1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Directive });
926
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", 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", dirtySubmitButton: "dirtySubmitButton", submit: "submit", successDelay: "successDelay", errorDelay: "errorDelay", deactivationGuard: "deactivationGuard" }, outputs: { submitEvent: "fsForm", invalid: "invalid", valid: "valid", submitted: "submitted", reseted: "reseted", cleared: "cleared" }, host: { properties: { "class.fs-form": "this.fsFormClass" } }, exportAs: ["fsForm"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
899
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
900
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormDirective, isStandalone: true, selector: "[fsForm]", inputs: { wrapperSelector: "wrapperSelector", messageSelector: "messageSelector", hintSelector: "hintSelector", labelSelector: "labelSelector", autocomplete: "autocomplete", shortcuts: "shortcuts", confirm: "confirm", confirmDialog: "confirmDialog", confirmDrawer: "confirmDrawer", confirmBrowser: "confirmBrowser", dirtySubmitButton: "dirtySubmitButton", submit: "submit", successDelay: "successDelay", errorDelay: "errorDelay", deactivationGuard: "deactivationGuard" }, outputs: { submitEvent: "fsForm", invalid: "invalid", valid: "valid", submitted: "submitted", reseted: "reseted", cleared: "cleared" }, host: { properties: { "class.fs-form": "this.fsFormClass" } }, exportAs: ["fsForm"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
927
901
  }
928
902
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormDirective, decorators: [{
929
903
  type: Directive,
930
904
  args: [{
931
905
  selector: '[fsForm]',
932
906
  exportAs: 'fsForm',
907
+ standalone: true,
933
908
  }]
934
- }], ctorParameters: () => [{ type: i1$1.NgForm, decorators: [{
935
- type: Inject,
936
- args: [NgForm]
937
- }] }, { type: FsForm }, { type: i0.ElementRef }, { type: i2$2.FsMessage }, { type: FsFormGroupDirective, decorators: [{
938
- type: Optional
939
- }] }, { type: i1.MatDialogRef, decorators: [{
940
- type: Optional
941
- }, {
942
- type: Inject,
943
- args: [MatDialogRef]
944
- }] }, { type: i7.DrawerRef, decorators: [{
945
- type: Optional
946
- }, {
947
- type: Inject,
948
- args: [DrawerRef]
949
- }] }, { type: i2$1.ActivatedRoute }], propDecorators: { wrapperSelector: [{
909
+ }], propDecorators: { wrapperSelector: [{
950
910
  type: Input
951
911
  }], messageSelector: [{
952
912
  type: Input
@@ -994,54 +954,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
994
954
  args: ['class.fs-form']
995
955
  }] } });
996
956
 
997
- class FsFormDialogCloseDirective {
998
- _form;
999
- _dialogRef;
1000
- closeData;
1001
- type = 'button';
1002
- _destroy$ = new Subject();
1003
- constructor(_form, _dialogRef) {
1004
- this._form = _form;
1005
- this._dialogRef = _dialogRef;
1006
- }
1007
- closeClick() {
1008
- if (this._form) {
1009
- this._form.triggerConfirm()
1010
- .pipe(filter((confirmResult) => (confirmResult !== ConfirmResult.Review)), takeUntil(this._destroy$))
1011
- .subscribe(() => {
1012
- this._dialogRef.close(this.closeData);
1013
- });
1014
- }
1015
- else {
1016
- this._dialogRef.close(this.closeData);
1017
- }
1018
- }
1019
- ngOnDestroy() {
1020
- this._destroy$.next(null);
1021
- this._destroy$.complete();
1022
- }
1023
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormDialogCloseDirective, deps: [{ token: FsFormDirective, optional: true }, { token: i1.MatDialogRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
1024
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormDialogCloseDirective, selector: "[fsFormDialogClose],[fs-form-dialog-close]", inputs: { closeData: "closeData" }, host: { listeners: { "click": "closeClick($event.target)" }, properties: { "attr.type": "this.type" } }, ngImport: i0 });
1025
- }
1026
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormDialogCloseDirective, decorators: [{
1027
- type: Directive,
1028
- args: [{
1029
- selector: '[fsFormDialogClose],[fs-form-dialog-close]',
1030
- }]
1031
- }], ctorParameters: () => [{ type: FsFormDirective, decorators: [{
1032
- type: Optional
1033
- }] }, { type: i1.MatDialogRef, decorators: [{
1034
- type: Optional
1035
- }] }], propDecorators: { closeData: [{
1036
- type: Input
1037
- }], type: [{
1038
- type: HostBinding,
1039
- args: ['attr.type']
1040
- }], closeClick: [{
1041
- type: HostListener,
1042
- args: ['click', ['$event.target']]
1043
- }] } });
1044
-
1045
957
  class FsButtonDirective {
1046
958
  name;
1047
959
  dirtySubmit = true;
@@ -1063,7 +975,8 @@ class FsButtonDirective {
1063
975
  if (this.submit) {
1064
976
  fromEvent(this.element, 'click')
1065
977
  .pipe(takeUntil(this._destroy$))
1066
- .subscribe(() => {
978
+ .subscribe((event) => {
979
+ event.preventDefault();
1067
980
  this._formBase.activeSubmitButton = this;
1068
981
  this._formBase.triggerSubmit();
1069
982
  });
@@ -1164,12 +1077,13 @@ class FsButtonDirective {
1164
1077
  }
1165
1078
  }
1166
1079
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1167
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsButtonDirective, selector: "[mat-raised-button],[mat-button],[mat-flat-button],[mat-stroked-button]", inputs: { name: "name", dirtySubmit: "dirtySubmit" }, host: { properties: { "style.transition": "this.transitionStyle" } }, ngImport: i0 });
1080
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsButtonDirective, isStandalone: true, selector: "[mat-raised-button],[mat-button],[mat-flat-button],[mat-stroked-button]", inputs: { name: "name", dirtySubmit: "dirtySubmit" }, host: { properties: { "style.transition": "this.transitionStyle" } }, ngImport: i0 });
1168
1081
  }
1169
1082
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsButtonDirective, decorators: [{
1170
1083
  type: Directive,
1171
1084
  args: [{
1172
1085
  selector: '[mat-raised-button],[mat-button],[mat-flat-button],[mat-stroked-button]',
1086
+ standalone: true,
1173
1087
  }]
1174
1088
  }], propDecorators: { name: [{
1175
1089
  type: Input
@@ -1180,9 +1094,50 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
1180
1094
  args: ['style.transition']
1181
1095
  }] } });
1182
1096
 
1097
+ class FsFormDialogCloseDirective {
1098
+ _form = inject(FsFormDirective, { optional: true });
1099
+ _dialogRef = inject(MatDialogRef, { optional: true });
1100
+ closeData;
1101
+ type = 'button';
1102
+ _destroy$ = new Subject();
1103
+ closeClick() {
1104
+ if (this._form) {
1105
+ this._form.triggerConfirm()
1106
+ .pipe(filter((confirmResult) => (confirmResult !== ConfirmResult.Review)), takeUntil(this._destroy$))
1107
+ .subscribe(() => {
1108
+ this._dialogRef.close(this.closeData);
1109
+ });
1110
+ }
1111
+ else {
1112
+ this._dialogRef.close(this.closeData);
1113
+ }
1114
+ }
1115
+ ngOnDestroy() {
1116
+ this._destroy$.next(null);
1117
+ this._destroy$.complete();
1118
+ }
1119
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormDialogCloseDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1120
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormDialogCloseDirective, isStandalone: true, selector: "[fsFormDialogClose],[fs-form-dialog-close]", inputs: { closeData: "closeData" }, host: { listeners: { "click": "closeClick($event.target)" }, properties: { "attr.type": "this.type" } }, ngImport: i0 });
1121
+ }
1122
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormDialogCloseDirective, decorators: [{
1123
+ type: Directive,
1124
+ args: [{
1125
+ selector: '[fsFormDialogClose],[fs-form-dialog-close]',
1126
+ standalone: true,
1127
+ }]
1128
+ }], propDecorators: { closeData: [{
1129
+ type: Input
1130
+ }], type: [{
1131
+ type: HostBinding,
1132
+ args: ['attr.type']
1133
+ }], closeClick: [{
1134
+ type: HostListener,
1135
+ args: ['click', ['$event.target']]
1136
+ }] } });
1137
+
1183
1138
  class FsFormDialogActionsComponent {
1184
- _form;
1185
- _cdRef;
1139
+ _form = inject(FsFormDirective, { optional: true });
1140
+ _cdRef = inject(ChangeDetectorRef);
1186
1141
  save = true;
1187
1142
  create = false;
1188
1143
  close = false;
@@ -1191,10 +1146,6 @@ class FsFormDialogActionsComponent {
1191
1146
  name;
1192
1147
  dirty = false;
1193
1148
  _destroy$ = new Subject();
1194
- constructor(_form, _cdRef) {
1195
- this._form = _form;
1196
- this._cdRef = _cdRef;
1197
- }
1198
1149
  ngOnInit() {
1199
1150
  if (this._form) {
1200
1151
  this._form.ngForm.valueChanges
@@ -1221,15 +1172,20 @@ class FsFormDialogActionsComponent {
1221
1172
  this._destroy$.next(null);
1222
1173
  this._destroy$.complete();
1223
1174
  }
1224
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormDialogActionsComponent, deps: [{ token: FsFormDirective, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1225
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.7", type: FsFormDialogActionsComponent, selector: "fs-form-dialog-actions", inputs: { save: "save", create: "create", close: "close", done: "done", closeData: "closeData", name: "name" }, ngImport: i0, template: "<div\n class=\"form-buttons\"\n [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=\"cancel-button\"\n [disabled]=\"close && !dirty && !create\"\n [mat-dialog-close]=\"null\">\n Cancel\n </button>\n </ng-container>\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 <ng-container *ngIf=\"save || create\">\n <ng-template [ngTemplateOutlet]=\"content\"></ng-template>\n </ng-container>\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 <ng-container *ngIf=\"!(save || create)\">\n <ng-template [ngTemplateOutlet]=\"content\"></ng-template>\n </ng-container>\n</div>\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>", styles: [":host{width:100%}.form-buttons.save-create .close-button{float:right}\n"], dependencies: [{ kind: "directive", type: i2$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: i1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: FsFormDialogCloseDirective, selector: "[fsFormDialogClose],[fs-form-dialog-close]", inputs: ["closeData"] }, { kind: "directive", type: FsButtonDirective, selector: "[mat-raised-button],[mat-button],[mat-flat-button],[mat-stroked-button]", inputs: ["name", "dirtySubmit"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1175
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormDialogActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1176
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.7", type: FsFormDialogActionsComponent, isStandalone: true, selector: "fs-form-dialog-actions", inputs: { save: "save", create: "create", close: "close", done: "done", closeData: "closeData", name: "name" }, ngImport: i0, template: "<div\n class=\"form-buttons\"\n [ngClass]=\"{ 'save-create': save || create }\">\n @if (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=\"cancel-button\"\n [disabled]=\"close && !dirty && !create\"\n [mat-dialog-close]=\"null\">\n Cancel\n </button>\n }\n @if (done) {\n <button\n mat-button\n type=\"button\"\n color=\"primary\"\n [mat-dialog-close]=\"null\">\n Done\n </button>\n }\n @if (save || create) {\n <ng-template [ngTemplateOutlet]=\"content\"></ng-template>\n }\n @if (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 }\n @if (!(save || create)) {\n <ng-template [ngTemplateOutlet]=\"content\"></ng-template>\n }\n</div>\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>", styles: [":host{width:100%}.form-buttons.save-create .close-button{float:right}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: FsButtonDirective, selector: "[mat-raised-button],[mat-button],[mat-flat-button],[mat-stroked-button]", inputs: ["name", "dirtySubmit"] }, { kind: "directive", type: MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: FsFormDialogCloseDirective, selector: "[fsFormDialogClose],[fs-form-dialog-close]", inputs: ["closeData"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1226
1177
  }
1227
1178
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormDialogActionsComponent, decorators: [{
1228
1179
  type: Component,
1229
- args: [{ selector: 'fs-form-dialog-actions', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"form-buttons\"\n [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=\"cancel-button\"\n [disabled]=\"close && !dirty && !create\"\n [mat-dialog-close]=\"null\">\n Cancel\n </button>\n </ng-container>\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 <ng-container *ngIf=\"save || create\">\n <ng-template [ngTemplateOutlet]=\"content\"></ng-template>\n </ng-container>\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 <ng-container *ngIf=\"!(save || create)\">\n <ng-template [ngTemplateOutlet]=\"content\"></ng-template>\n </ng-container>\n</div>\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>", styles: [":host{width:100%}.form-buttons.save-create .close-button{float:right}\n"] }]
1230
- }], ctorParameters: () => [{ type: FsFormDirective, decorators: [{
1231
- type: Optional
1232
- }] }, { type: i0.ChangeDetectorRef }], propDecorators: { save: [{
1180
+ args: [{ selector: 'fs-form-dialog-actions', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
1181
+ NgClass,
1182
+ MatButton,
1183
+ FsButtonDirective,
1184
+ MatDialogClose,
1185
+ NgTemplateOutlet,
1186
+ FsFormDialogCloseDirective,
1187
+ ], template: "<div\n class=\"form-buttons\"\n [ngClass]=\"{ 'save-create': save || create }\">\n @if (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=\"cancel-button\"\n [disabled]=\"close && !dirty && !create\"\n [mat-dialog-close]=\"null\">\n Cancel\n </button>\n }\n @if (done) {\n <button\n mat-button\n type=\"button\"\n color=\"primary\"\n [mat-dialog-close]=\"null\">\n Done\n </button>\n }\n @if (save || create) {\n <ng-template [ngTemplateOutlet]=\"content\"></ng-template>\n }\n @if (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 }\n @if (!(save || create)) {\n <ng-template [ngTemplateOutlet]=\"content\"></ng-template>\n }\n</div>\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>", styles: [":host{width:100%}.form-buttons.save-create .close-button{float:right}\n"] }]
1188
+ }], propDecorators: { save: [{
1233
1189
  type: Input
1234
1190
  }], create: [{
1235
1191
  type: Input
@@ -1275,20 +1231,13 @@ function messageProviderFactory() {
1275
1231
  }
1276
1232
 
1277
1233
  class FsControlDirective {
1278
- _elementRef;
1279
- _renderer2;
1280
- _injector;
1281
- _validateMessages;
1282
- _ngControl;
1283
- _formDirective;
1284
1234
  wrapperSelector;
1285
1235
  messageSelector;
1286
1236
  hintSelector;
1287
1237
  labelSelector;
1288
- appendMessageClass = 'fs-form-message';
1289
- appendLabelClass = 'fs-form-label';
1290
- appendErrorClass = 'fs-form-error';
1291
- appendHintClass = 'fs-form-hint';
1238
+ appendMessageClass;
1239
+ appendErrorClass;
1240
+ appendHintClass;
1292
1241
  set validateMessages(messages) {
1293
1242
  this._validateMessages = {
1294
1243
  ...this._validateMessages,
@@ -1297,14 +1246,15 @@ class FsControlDirective {
1297
1246
  }
1298
1247
  errors = [];
1299
1248
  _control;
1249
+ _elementRef = inject(ElementRef);
1250
+ _renderer2 = inject(Renderer2);
1251
+ _injector = inject(Injector);
1252
+ _validateMessages = inject(VALIDATE_MESSAGES, { self: true });
1253
+ _ngControl = inject(NgControl, { optional: true });
1254
+ _formDirective = inject(FsFormDirective, { optional: true });
1300
1255
  _destroy$ = new Subject();
1301
- constructor(_elementRef, _renderer2, _injector, _validateMessages, _ngControl, _formDirective) {
1302
- this._elementRef = _elementRef;
1303
- this._renderer2 = _renderer2;
1304
- this._injector = _injector;
1305
- this._validateMessages = _validateMessages;
1306
- this._ngControl = _ngControl;
1307
- this._formDirective = _formDirective;
1256
+ constructor() {
1257
+ const _ngControl = this._ngControl;
1308
1258
  if (_ngControl) {
1309
1259
  this._control = _ngControl.control;
1310
1260
  }
@@ -1333,6 +1283,9 @@ class FsControlDirective {
1333
1283
  return this._formDirective.messageSelector;
1334
1284
  }
1335
1285
  }
1286
+ getHintWrapper() {
1287
+ return this._elementRef.nativeElement.querySelector(this.getHintWrapperSelector());
1288
+ }
1336
1289
  getHintWrapperSelector() {
1337
1290
  if (this.hintSelector === false) {
1338
1291
  return '';
@@ -1405,6 +1358,7 @@ class FsControlDirective {
1405
1358
  return console
1406
1359
  .warn(`Failed to locate ${this.getMessageSelector()}`, this._elementRef.nativeElement);
1407
1360
  }
1361
+ renderer.addClass(messageWrapper, 'fs-form-message');
1408
1362
  if (this.appendMessageClass) {
1409
1363
  renderer.addClass(messageWrapper, this.appendMessageClass);
1410
1364
  }
@@ -1415,17 +1369,23 @@ class FsControlDirective {
1415
1369
  _renderHint(error, messageWrapper) {
1416
1370
  const hints = [
1417
1371
  ...messageWrapper.querySelectorAll('.mat-mdc-form-field-hint'),
1418
- ...messageWrapper.querySelectorAll(this.getHintWrapperSelector()),
1419
1372
  ];
1373
+ const hintWrapper = this.getHintWrapper();
1374
+ if (hintWrapper) {
1375
+ hintWrapper.classList.add('fs-form-hint-wrapper');
1376
+ }
1420
1377
  hints.forEach((hint) => {
1421
1378
  this._renderer2.setStyle(hint, 'display', error ? 'none' : 'block');
1422
1379
  if (this.appendHintClass) {
1423
- this._renderer2.addClass(hint, this.appendHintClass);
1380
+ this._renderer2.addClass(hint, 'fs-form-hint');
1381
+ if (this.appendHintClass) {
1382
+ this._renderer2.addClass(hint, this.appendHintClass);
1383
+ }
1424
1384
  }
1425
1385
  });
1426
1386
  }
1427
1387
  _renderError(wrapper, messageWrapper, error) {
1428
- let errorWrapper = wrapper.querySelector('.fs-form-error-target');
1388
+ let errorWrapper = wrapper.querySelector('.fs-form-error');
1429
1389
  if (errorWrapper) {
1430
1390
  errorWrapper.remove();
1431
1391
  }
@@ -1433,12 +1393,18 @@ class FsControlDirective {
1433
1393
  return;
1434
1394
  }
1435
1395
  errorWrapper = this._renderer2.createElement('div');
1436
- this._renderer2.addClass(errorWrapper, 'fs-form-error-target');
1437
- this._renderer2.addClass(errorWrapper, this.appendErrorClass);
1438
- this._renderer2.addClass(errorWrapper, `${this.appendErrorClass}-${error.name}`);
1396
+ this._renderer2.addClass(errorWrapper, 'fs-form-error');
1397
+ this._renderer2.addClass(errorWrapper, `fs-form-error-${error.name}`);
1398
+ if (this.appendErrorClass) {
1399
+ this._renderer2.addClass(errorWrapper, this.appendErrorClass);
1400
+ this._renderer2.addClass(errorWrapper, `${this.appendErrorClass}-${error.name}`);
1401
+ }
1439
1402
  const errorText = this._renderer2.createText(error.message);
1440
1403
  this._renderer2.appendChild(errorWrapper, errorText);
1441
- messageWrapper?.prepend(errorWrapper);
1404
+ const hintWrapper = messageWrapper.querySelector(this.getHintWrapperSelector());
1405
+ if (hintWrapper) {
1406
+ hintWrapper.prepend(errorWrapper);
1407
+ }
1442
1408
  }
1443
1409
  _subscribeToStatusChagnes() {
1444
1410
  if (this._control) {
@@ -1490,8 +1456,8 @@ class FsControlDirective {
1490
1456
  }
1491
1457
  control.updateValueAndValidity();
1492
1458
  }
1493
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsControlDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.Injector }, { token: VALIDATE_MESSAGES, self: true }, { token: i1$1.NgControl, optional: true }, { token: FsFormDirective, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
1494
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsControlDirective, selector: "[fsFormControl]", inputs: { wrapperSelector: "wrapperSelector", messageSelector: "messageSelector", hintSelector: "hintSelector", labelSelector: "labelSelector", appendMessageClass: "appendMessageClass", appendLabelClass: "appendLabelClass", appendErrorClass: "appendErrorClass", appendHintClass: "appendHintClass", validateMessages: "validateMessages" }, providers: [
1459
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsControlDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1460
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsControlDirective, isStandalone: true, selector: "[fsFormControl]", inputs: { wrapperSelector: "wrapperSelector", messageSelector: "messageSelector", hintSelector: "hintSelector", labelSelector: "labelSelector", appendMessageClass: "appendMessageClass", appendErrorClass: "appendErrorClass", appendHintClass: "appendHintClass", validateMessages: "validateMessages" }, providers: [
1495
1461
  VALIDATE_MESSAGE_PROVIDER,
1496
1462
  ], ngImport: i0 });
1497
1463
  }
@@ -1502,20 +1468,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
1502
1468
  providers: [
1503
1469
  VALIDATE_MESSAGE_PROVIDER,
1504
1470
  ],
1471
+ standalone: true,
1505
1472
  }]
1506
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.Injector }, { type: undefined, decorators: [{
1507
- type: Self
1508
- }, {
1509
- type: Inject,
1510
- args: [VALIDATE_MESSAGES]
1511
- }] }, { type: i1$1.NgControl, decorators: [{
1512
- type: Optional
1513
- }] }, { type: FsFormDirective, decorators: [{
1514
- type: Optional
1515
- }, {
1516
- type: Inject,
1517
- args: [FsFormDirective]
1518
- }] }], propDecorators: { wrapperSelector: [{
1473
+ }], ctorParameters: () => [], propDecorators: { wrapperSelector: [{
1519
1474
  type: Input
1520
1475
  }], messageSelector: [{
1521
1476
  type: Input
@@ -1525,8 +1480,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
1525
1480
  type: Input
1526
1481
  }], appendMessageClass: [{
1527
1482
  type: Input
1528
- }], appendLabelClass: [{
1529
- type: Input
1530
1483
  }], appendErrorClass: [{
1531
1484
  type: Input
1532
1485
  }], appendHintClass: [{
@@ -1560,7 +1513,7 @@ class FsFormCompareDirective extends FsControlDirective {
1560
1513
  }, false);
1561
1514
  }
1562
1515
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormCompareDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
1563
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormCompareDirective, selector: "[fsFormCompare]", inputs: { fsFormCompare: "fsFormCompare", validationMessage: ["fsFormCompareMessage", "validationMessage"] }, providers: [
1516
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormCompareDirective, isStandalone: true, selector: "[fsFormCompare]", inputs: { fsFormCompare: "fsFormCompare", validationMessage: ["fsFormCompareMessage", "validationMessage"] }, providers: [
1564
1517
  VALIDATE_MESSAGE_PROVIDER,
1565
1518
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
1566
1519
  }
@@ -1571,6 +1524,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
1571
1524
  providers: [
1572
1525
  VALIDATE_MESSAGE_PROVIDER,
1573
1526
  ],
1527
+ standalone: true,
1574
1528
  }]
1575
1529
  }], propDecorators: { fsFormCompare: [{
1576
1530
  type: Input
@@ -1688,7 +1642,7 @@ class FsFormDateRangeDirective extends FsControlDirective {
1688
1642
  }
1689
1643
  }
1690
1644
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormDateRangeDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
1691
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormDateRangeDirective, selector: "[fsFormDateRange]", inputs: { fsFormDateRange: "fsFormDateRange", validationMessage: ["fsFormDateRangeMessage", "validationMessage"] }, providers: [
1645
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormDateRangeDirective, isStandalone: true, selector: "[fsFormDateRange]", inputs: { fsFormDateRange: "fsFormDateRange", validationMessage: ["fsFormDateRangeMessage", "validationMessage"] }, providers: [
1692
1646
  VALIDATE_MESSAGE_PROVIDER
1693
1647
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
1694
1648
  }
@@ -1699,6 +1653,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
1699
1653
  providers: [
1700
1654
  VALIDATE_MESSAGE_PROVIDER
1701
1655
  ],
1656
+ standalone: true,
1702
1657
  }]
1703
1658
  }], propDecorators: { fsFormDateRange: [{
1704
1659
  type: Input
@@ -1724,7 +1679,7 @@ class FsFormEmailDirective extends FsControlDirective {
1724
1679
  }
1725
1680
  }
1726
1681
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormEmailDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
1727
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormEmailDirective, selector: "[fsFormEmail]", inputs: { fsFormEmail: "fsFormEmail", validationMessage: ["fsFormEmailMessage", "validationMessage"] }, providers: [
1682
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormEmailDirective, isStandalone: true, selector: "[fsFormEmail]", inputs: { fsFormEmail: "fsFormEmail", validationMessage: ["fsFormEmailMessage", "validationMessage"] }, providers: [
1728
1683
  VALIDATE_MESSAGE_PROVIDER
1729
1684
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
1730
1685
  }
@@ -1735,6 +1690,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
1735
1690
  providers: [
1736
1691
  VALIDATE_MESSAGE_PROVIDER
1737
1692
  ],
1693
+ standalone: true,
1738
1694
  }]
1739
1695
  }], propDecorators: { fsFormEmail: [{
1740
1696
  type: Input
@@ -1760,7 +1716,7 @@ class FsFormEmailsDirective extends FsControlDirective {
1760
1716
  }
1761
1717
  }
1762
1718
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormEmailsDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
1763
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormEmailsDirective, selector: "[fsFormEmails]", inputs: { fsFormEmails: "fsFormEmails", validationMessage: ["fsFormEmailsMessage", "validationMessage"] }, providers: [
1719
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormEmailsDirective, isStandalone: true, selector: "[fsFormEmails]", inputs: { fsFormEmails: "fsFormEmails", validationMessage: ["fsFormEmailsMessage", "validationMessage"] }, providers: [
1764
1720
  VALIDATE_MESSAGE_PROVIDER
1765
1721
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
1766
1722
  }
@@ -1771,6 +1727,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
1771
1727
  providers: [
1772
1728
  VALIDATE_MESSAGE_PROVIDER
1773
1729
  ],
1730
+ standalone: true,
1774
1731
  }]
1775
1732
  }], propDecorators: { fsFormEmails: [{
1776
1733
  type: Input
@@ -1793,7 +1750,7 @@ class FsFormFunctionDirective extends FsControlDirective {
1793
1750
  return FsValidators.func(this._control, this.fsFormFunction, this.fsFormFunctionData);
1794
1751
  }
1795
1752
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormFunctionDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
1796
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormFunctionDirective, selector: "[fsFormFunction]", inputs: { fsFormFunction: "fsFormFunction", fsFormFunctionData: "fsFormFunctionData", validateOnSubmit: "validateOnSubmit" }, providers: [
1753
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormFunctionDirective, isStandalone: true, selector: "[fsFormFunction]", inputs: { fsFormFunction: "fsFormFunction", fsFormFunctionData: "fsFormFunctionData", validateOnSubmit: "validateOnSubmit" }, providers: [
1797
1754
  VALIDATE_MESSAGE_PROVIDER,
1798
1755
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
1799
1756
  }
@@ -1804,6 +1761,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
1804
1761
  providers: [
1805
1762
  VALIDATE_MESSAGE_PROVIDER,
1806
1763
  ],
1764
+ standalone: true,
1807
1765
  }]
1808
1766
  }], propDecorators: { fsFormFunction: [{
1809
1767
  type: Input
@@ -1830,7 +1788,7 @@ class FsFormGreaterEqualDirective extends FsControlDirective {
1830
1788
  return FsValidators.numeric(this._control);
1831
1789
  }
1832
1790
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormGreaterEqualDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
1833
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormGreaterEqualDirective, selector: "[fsFormGreaterEqual]", inputs: { fsFormGreaterEqual: "fsFormGreaterEqual", validationMessage: ["fsFormGreaterEqualMessage", "validationMessage"] }, providers: [
1791
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormGreaterEqualDirective, isStandalone: true, selector: "[fsFormGreaterEqual]", inputs: { fsFormGreaterEqual: "fsFormGreaterEqual", validationMessage: ["fsFormGreaterEqualMessage", "validationMessage"] }, providers: [
1834
1792
  VALIDATE_MESSAGE_PROVIDER
1835
1793
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
1836
1794
  }
@@ -1841,6 +1799,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
1841
1799
  providers: [
1842
1800
  VALIDATE_MESSAGE_PROVIDER
1843
1801
  ],
1802
+ standalone: true,
1844
1803
  }]
1845
1804
  }], propDecorators: { fsFormGreaterEqual: [{
1846
1805
  type: Input
@@ -1866,7 +1825,7 @@ class FsFormGreaterDirective extends FsControlDirective {
1866
1825
  return FsValidators.numeric(this._control);
1867
1826
  }
1868
1827
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormGreaterDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
1869
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormGreaterDirective, selector: "[fsFormGreater]", inputs: { fsFormGreater: "fsFormGreater", validationMessage: ["fsFormGreaterMessage", "validationMessage"] }, providers: [
1828
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormGreaterDirective, isStandalone: true, selector: "[fsFormGreater]", inputs: { fsFormGreater: "fsFormGreater", validationMessage: ["fsFormGreaterMessage", "validationMessage"] }, providers: [
1870
1829
  VALIDATE_MESSAGE_PROVIDER
1871
1830
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
1872
1831
  }
@@ -1877,6 +1836,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
1877
1836
  providers: [
1878
1837
  VALIDATE_MESSAGE_PROVIDER
1879
1838
  ],
1839
+ standalone: true,
1880
1840
  }]
1881
1841
  }], propDecorators: { fsFormGreater: [{
1882
1842
  type: Input
@@ -1900,7 +1860,7 @@ class FsFormIntegerDirective extends FsControlDirective {
1900
1860
  return null;
1901
1861
  }
1902
1862
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormIntegerDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
1903
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormIntegerDirective, selector: "[fsFormInteger]", inputs: { fsFormInteger: "fsFormInteger", validationMessage: ["fsFormIntegerMessage", "validationMessage"] }, providers: [
1863
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormIntegerDirective, isStandalone: true, selector: "[fsFormInteger]", inputs: { fsFormInteger: "fsFormInteger", validationMessage: ["fsFormIntegerMessage", "validationMessage"] }, providers: [
1904
1864
  VALIDATE_MESSAGE_PROVIDER,
1905
1865
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
1906
1866
  }
@@ -1911,6 +1871,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
1911
1871
  providers: [
1912
1872
  VALIDATE_MESSAGE_PROVIDER,
1913
1873
  ],
1874
+ standalone: true,
1914
1875
  }]
1915
1876
  }], propDecorators: { fsFormInteger: [{
1916
1877
  type: Input
@@ -1936,7 +1897,7 @@ class FsFormLesserEqualDirective extends FsControlDirective {
1936
1897
  return FsValidators.numeric(this._control);
1937
1898
  }
1938
1899
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormLesserEqualDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
1939
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormLesserEqualDirective, selector: "[fsFormLesserEqual]", inputs: { fsFormLesserEqual: "fsFormLesserEqual", validationMessage: ["fsFormLesserEqualMessage", "validationMessage"] }, providers: [
1900
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormLesserEqualDirective, isStandalone: true, selector: "[fsFormLesserEqual]", inputs: { fsFormLesserEqual: "fsFormLesserEqual", validationMessage: ["fsFormLesserEqualMessage", "validationMessage"] }, providers: [
1940
1901
  VALIDATE_MESSAGE_PROVIDER
1941
1902
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
1942
1903
  }
@@ -1947,6 +1908,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
1947
1908
  providers: [
1948
1909
  VALIDATE_MESSAGE_PROVIDER
1949
1910
  ],
1911
+ standalone: true,
1950
1912
  }]
1951
1913
  }], propDecorators: { fsFormLesserEqual: [{
1952
1914
  type: Input
@@ -1972,7 +1934,7 @@ class FsFormLesserDirective extends FsControlDirective {
1972
1934
  return FsValidators.numeric(this._control);
1973
1935
  }
1974
1936
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormLesserDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
1975
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormLesserDirective, selector: "[fsFormLesser]", inputs: { fsFormLesser: "fsFormLesser", validationMessage: ["fsFormLesserMessage", "validationMessage"] }, providers: [
1937
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormLesserDirective, isStandalone: true, selector: "[fsFormLesser]", inputs: { fsFormLesser: "fsFormLesser", validationMessage: ["fsFormLesserMessage", "validationMessage"] }, providers: [
1976
1938
  VALIDATE_MESSAGE_PROVIDER
1977
1939
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
1978
1940
  }
@@ -1983,6 +1945,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
1983
1945
  providers: [
1984
1946
  VALIDATE_MESSAGE_PROVIDER
1985
1947
  ],
1948
+ standalone: true,
1986
1949
  }]
1987
1950
  }], propDecorators: { fsFormLesser: [{
1988
1951
  type: Input
@@ -2003,7 +1966,7 @@ class FsFormMaxDirective extends FsControlDirective {
2003
1966
  return FsValidators.numeric(this._control) || Validators.max(this.fsFormMax)(this._control);
2004
1967
  }
2005
1968
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormMaxDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
2006
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormMaxDirective, selector: "[fsFormMax]", inputs: { fsFormMax: "fsFormMax", validationMessage: ["fsFormMaxMessage", "validationMessage"] }, providers: [
1969
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormMaxDirective, isStandalone: true, selector: "[fsFormMax]", inputs: { fsFormMax: "fsFormMax", validationMessage: ["fsFormMaxMessage", "validationMessage"] }, providers: [
2007
1970
  VALIDATE_MESSAGE_PROVIDER
2008
1971
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
2009
1972
  }
@@ -2014,6 +1977,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
2014
1977
  providers: [
2015
1978
  VALIDATE_MESSAGE_PROVIDER
2016
1979
  ],
1980
+ standalone: true,
2017
1981
  }]
2018
1982
  }], propDecorators: { fsFormMax: [{
2019
1983
  type: Input
@@ -2034,7 +1998,7 @@ class FsFormMaxLengthDirective extends FsControlDirective {
2034
1998
  return Validators.maxLength(this.fsFormMaxLength)(this._control);
2035
1999
  }
2036
2000
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormMaxLengthDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
2037
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormMaxLengthDirective, selector: "[fsFormMaxLength]", inputs: { fsFormMaxLength: "fsFormMaxLength", validationMessage: ["fsFormMaxLengthMessage", "validationMessage"] }, providers: [
2001
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormMaxLengthDirective, isStandalone: true, selector: "[fsFormMaxLength]", inputs: { fsFormMaxLength: "fsFormMaxLength", validationMessage: ["fsFormMaxLengthMessage", "validationMessage"] }, providers: [
2038
2002
  VALIDATE_MESSAGE_PROVIDER
2039
2003
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
2040
2004
  }
@@ -2045,6 +2009,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
2045
2009
  providers: [
2046
2010
  VALIDATE_MESSAGE_PROVIDER
2047
2011
  ],
2012
+ standalone: true,
2048
2013
  }]
2049
2014
  }], propDecorators: { fsFormMaxLength: [{
2050
2015
  type: Input
@@ -2065,7 +2030,7 @@ class FsFormMinDirective extends FsControlDirective {
2065
2030
  return FsValidators.numeric(this._control) || Validators.min(parseFloat(this.fsFormMin))(this._control);
2066
2031
  }
2067
2032
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormMinDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
2068
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormMinDirective, selector: "[fsFormMin]", inputs: { fsFormMin: "fsFormMin", validationMessage: ["fsFormMinMessage", "validationMessage"] }, providers: [
2033
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormMinDirective, isStandalone: true, selector: "[fsFormMin]", inputs: { fsFormMin: "fsFormMin", validationMessage: ["fsFormMinMessage", "validationMessage"] }, providers: [
2069
2034
  VALIDATE_MESSAGE_PROVIDER
2070
2035
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
2071
2036
  }
@@ -2076,6 +2041,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
2076
2041
  providers: [
2077
2042
  VALIDATE_MESSAGE_PROVIDER
2078
2043
  ],
2044
+ standalone: true,
2079
2045
  }]
2080
2046
  }], propDecorators: { fsFormMin: [{
2081
2047
  type: Input
@@ -2096,7 +2062,7 @@ class FsFormMinLengthDirective extends FsControlDirective {
2096
2062
  return Validators.minLength(this.fsFormMinLength)(this._control);
2097
2063
  }
2098
2064
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormMinLengthDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
2099
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormMinLengthDirective, selector: "[fsFormMinLength]", inputs: { fsFormMinLength: "fsFormMinLength", validationMessage: ["fsFormMinLengthMessage", "validationMessage"] }, providers: [
2065
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormMinLengthDirective, isStandalone: true, selector: "[fsFormMinLength]", inputs: { fsFormMinLength: "fsFormMinLength", validationMessage: ["fsFormMinLengthMessage", "validationMessage"] }, providers: [
2100
2066
  VALIDATE_MESSAGE_PROVIDER
2101
2067
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
2102
2068
  }
@@ -2107,6 +2073,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
2107
2073
  providers: [
2108
2074
  VALIDATE_MESSAGE_PROVIDER
2109
2075
  ],
2076
+ standalone: true,
2110
2077
  }]
2111
2078
  }], propDecorators: { fsFormMinLength: [{
2112
2079
  type: Input
@@ -2130,7 +2097,7 @@ class FsFormNoFsValidatorsDirective extends FsControlDirective {
2130
2097
  }
2131
2098
  }
2132
2099
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormNoFsValidatorsDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
2133
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", 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: [
2100
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormNoFsValidatorsDirective, isStandalone: true, 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: [
2134
2101
  VALIDATE_MESSAGE_PROVIDER
2135
2102
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
2136
2103
  }
@@ -2161,6 +2128,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
2161
2128
  providers: [
2162
2129
  VALIDATE_MESSAGE_PROVIDER
2163
2130
  ],
2131
+ standalone: true,
2164
2132
  }]
2165
2133
  }] });
2166
2134
 
@@ -2181,7 +2149,7 @@ class FsFormNumericDirective extends FsControlDirective {
2181
2149
  }
2182
2150
  }
2183
2151
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormNumericDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
2184
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormNumericDirective, selector: "[fsFormNumeric]", inputs: { fsFormNumeric: "fsFormNumeric", validationMessage: ["fsFormNumericMessage", "validationMessage"] }, providers: [
2152
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormNumericDirective, isStandalone: true, selector: "[fsFormNumeric]", inputs: { fsFormNumeric: "fsFormNumeric", validationMessage: ["fsFormNumericMessage", "validationMessage"] }, providers: [
2185
2153
  VALIDATE_MESSAGE_PROVIDER
2186
2154
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
2187
2155
  }
@@ -2192,6 +2160,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
2192
2160
  providers: [
2193
2161
  VALIDATE_MESSAGE_PROVIDER
2194
2162
  ],
2163
+ standalone: true,
2195
2164
  }]
2196
2165
  }], propDecorators: { fsFormNumeric: [{
2197
2166
  type: Input
@@ -2212,7 +2181,7 @@ class FsFormPatternDirective extends FsControlDirective {
2212
2181
  return Validators.pattern(this.fsFormPattern)(this._control);
2213
2182
  }
2214
2183
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormPatternDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
2215
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormPatternDirective, selector: "[fsFormPattern]", inputs: { fsFormPattern: "fsFormPattern", validationMessage: ["fsFormPatternMessage", "validationMessage"] }, providers: [
2184
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormPatternDirective, isStandalone: true, selector: "[fsFormPattern]", inputs: { fsFormPattern: "fsFormPattern", validationMessage: ["fsFormPatternMessage", "validationMessage"] }, providers: [
2216
2185
  VALIDATE_MESSAGE_PROVIDER
2217
2186
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
2218
2187
  }
@@ -2223,6 +2192,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
2223
2192
  providers: [
2224
2193
  VALIDATE_MESSAGE_PROVIDER
2225
2194
  ],
2195
+ standalone: true,
2226
2196
  }]
2227
2197
  }], propDecorators: { fsFormPattern: [{
2228
2198
  type: Input
@@ -2248,7 +2218,7 @@ class FsFormPhoneDirective extends FsControlDirective {
2248
2218
  }
2249
2219
  }
2250
2220
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormPhoneDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
2251
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormPhoneDirective, selector: "[fsFormPhone]", inputs: { fsFormPhone: "fsFormPhone", validationMessage: ["fsFormPhoneMessage", "validationMessage"] }, providers: [
2221
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormPhoneDirective, isStandalone: true, selector: "[fsFormPhone]", inputs: { fsFormPhone: "fsFormPhone", validationMessage: ["fsFormPhoneMessage", "validationMessage"] }, providers: [
2252
2222
  VALIDATE_MESSAGE_PROVIDER
2253
2223
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
2254
2224
  }
@@ -2259,6 +2229,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
2259
2229
  providers: [
2260
2230
  VALIDATE_MESSAGE_PROVIDER
2261
2231
  ],
2232
+ standalone: true,
2262
2233
  }]
2263
2234
  }], propDecorators: { fsFormPhone: [{
2264
2235
  type: Input
@@ -2304,7 +2275,7 @@ class FsFormRequiredDirective extends FsControlDirective {
2304
2275
  super.render();
2305
2276
  }
2306
2277
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormRequiredDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
2307
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormRequiredDirective, selector: "[fsFormRequired],[ngModel][required]", inputs: { setFsFormRequired: ["fsFormRequired", "setFsFormRequired"], setRequired: ["required", "setRequired"], validationMessage: ["fsFormRequiredMessage", "validationMessage"] }, providers: [
2278
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormRequiredDirective, isStandalone: true, selector: "[fsFormRequired],[ngModel][required]", inputs: { setFsFormRequired: ["fsFormRequired", "setFsFormRequired"], setRequired: ["required", "setRequired"], validationMessage: ["fsFormRequiredMessage", "validationMessage"] }, providers: [
2308
2279
  VALIDATE_MESSAGE_PROVIDER,
2309
2280
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
2310
2281
  }
@@ -2315,6 +2286,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
2315
2286
  providers: [
2316
2287
  VALIDATE_MESSAGE_PROVIDER,
2317
2288
  ],
2289
+ standalone: true,
2318
2290
  }]
2319
2291
  }], propDecorators: { setFsFormRequired: [{
2320
2292
  type: Input,
@@ -2343,7 +2315,7 @@ class FsFormUrlDirective extends FsControlDirective {
2343
2315
  return null;
2344
2316
  }
2345
2317
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormUrlDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
2346
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormUrlDirective, selector: "[fsFormUrl]", inputs: { fsFormUrl: "fsFormUrl", fsFormUrlProtocol: "fsFormUrlProtocol", validationMessage: ["fsFormUrlMessage", "validationMessage"] }, providers: [
2318
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormUrlDirective, isStandalone: true, selector: "[fsFormUrl]", inputs: { fsFormUrl: "fsFormUrl", fsFormUrlProtocol: "fsFormUrlProtocol", validationMessage: ["fsFormUrlMessage", "validationMessage"] }, providers: [
2347
2319
  VALIDATE_MESSAGE_PROVIDER,
2348
2320
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
2349
2321
  }
@@ -2354,6 +2326,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
2354
2326
  providers: [
2355
2327
  VALIDATE_MESSAGE_PROVIDER,
2356
2328
  ],
2329
+ standalone: true,
2357
2330
  }]
2358
2331
  }], propDecorators: { fsFormUrl: [{
2359
2332
  type: Input
@@ -2378,7 +2351,7 @@ class FsFormValidateDirective extends FsControlDirective {
2378
2351
  return FsValidators.func(this._control, this.validateFn, this.validateFnData);
2379
2352
  }
2380
2353
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormValidateDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
2381
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormValidateDirective, selector: "[validate]", inputs: { validateFn: ["validate", "validateFn"], validateFnData: ["validateData", "validateFnData"], validateOnSubmit: "validateOnSubmit" }, providers: [
2354
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormValidateDirective, isStandalone: true, selector: "[validate]", inputs: { validateFn: ["validate", "validateFn"], validateFnData: ["validateData", "validateFnData"], validateOnSubmit: "validateOnSubmit" }, providers: [
2382
2355
  VALIDATE_MESSAGE_PROVIDER,
2383
2356
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
2384
2357
  }
@@ -2389,6 +2362,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
2389
2362
  providers: [
2390
2363
  VALIDATE_MESSAGE_PROVIDER,
2391
2364
  ],
2365
+ standalone: true,
2392
2366
  }]
2393
2367
  }], propDecorators: { validateFn: [{
2394
2368
  type: Input,
@@ -2409,12 +2383,13 @@ class FsFormTemplateDirective {
2409
2383
  });
2410
2384
  }
2411
2385
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormTemplateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2412
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormTemplateDirective, selector: "[fsFormTemplate],fs-form-template", queries: [{ propertyName: "_projectedControls", predicate: NgModel }], ngImport: i0 });
2386
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormTemplateDirective, isStandalone: true, selector: "[fsFormTemplate],fs-form-template", queries: [{ propertyName: "_projectedControls", predicate: NgModel }], ngImport: i0 });
2413
2387
  }
2414
2388
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormTemplateDirective, decorators: [{
2415
2389
  type: Directive,
2416
2390
  args: [{
2417
2391
  selector: '[fsFormTemplate],fs-form-template',
2392
+ standalone: true,
2418
2393
  }]
2419
2394
  }], propDecorators: { _projectedControls: [{
2420
2395
  type: ContentChildren,
@@ -2423,12 +2398,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
2423
2398
 
2424
2399
  class FsSubmitButtonDirective extends FsButtonDirective {
2425
2400
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsSubmitButtonDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
2426
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsSubmitButtonDirective, selector: "dummy-selector", usesInheritance: true, ngImport: i0 });
2401
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsSubmitButtonDirective, isStandalone: true, selector: "dummy-selector", usesInheritance: true, ngImport: i0 });
2427
2402
  }
2428
2403
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsSubmitButtonDirective, decorators: [{
2429
2404
  type: Directive,
2430
2405
  args: [{
2431
2406
  selector: 'dummy-selector',
2407
+ standalone: true,
2432
2408
  }]
2433
2409
  }] });
2434
2410
 
@@ -2443,12 +2419,13 @@ class FsFormTemplateOutletDirective {
2443
2419
  });
2444
2420
  }
2445
2421
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormTemplateOutletDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2446
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormTemplateOutletDirective, selector: "[fsFormTemplateOutlet]", inputs: { template: "template", context: "context" }, ngImport: i0 });
2422
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormTemplateOutletDirective, isStandalone: true, selector: "[fsFormTemplateOutlet]", inputs: { template: "template", context: "context" }, ngImport: i0 });
2447
2423
  }
2448
2424
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormTemplateOutletDirective, decorators: [{
2449
2425
  type: Directive,
2450
2426
  args: [{
2451
2427
  selector: '[fsFormTemplateOutlet]',
2428
+ standalone: true,
2452
2429
  }]
2453
2430
  }], propDecorators: { template: [{
2454
2431
  type: Input
@@ -2470,7 +2447,13 @@ class FsFormModule {
2470
2447
  };
2471
2448
  }
2472
2449
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2473
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: FsFormModule, declarations: [FsFormDirective,
2450
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: FsFormModule, imports: [CommonModule,
2451
+ FormsModule,
2452
+ MatButtonModule,
2453
+ MatDialogModule,
2454
+ MatDialogModule,
2455
+ FsDialogModule,
2456
+ FsFormDirective,
2474
2457
  FsControlDirective,
2475
2458
  FsFormRequiredDirective,
2476
2459
  FsFormMinDirective,
@@ -2500,12 +2483,7 @@ class FsFormModule {
2500
2483
  FsFormTemplateDirective,
2501
2484
  FsFormTemplateDirective,
2502
2485
  FsFormTemplateOutletDirective,
2503
- FsFormGroupDirective], imports: [CommonModule,
2504
- FormsModule,
2505
- MatButtonModule,
2506
- MatDialogModule,
2507
- MatDialogModule,
2508
- FsDialogModule], exports: [FsFormDirective,
2486
+ FsFormGroupDirective], exports: [FsFormDirective,
2509
2487
  FsControlDirective,
2510
2488
  FsFormRequiredDirective,
2511
2489
  FsFormMinDirective,
@@ -2546,7 +2524,8 @@ class FsFormModule {
2546
2524
  MatButtonModule,
2547
2525
  MatDialogModule,
2548
2526
  MatDialogModule,
2549
- FsDialogModule] });
2527
+ FsDialogModule,
2528
+ FsFormDialogActionsComponent] });
2550
2529
  }
2551
2530
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormModule, decorators: [{
2552
2531
  type: NgModule,
@@ -2558,8 +2537,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
2558
2537
  MatDialogModule,
2559
2538
  MatDialogModule,
2560
2539
  FsDialogModule,
2561
- ],
2562
- declarations: [
2563
2540
  FsFormDirective,
2564
2541
  FsControlDirective,
2565
2542
  FsFormRequiredDirective,