@firestitch/form 18.0.22 → 18.0.24

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 +3 -2
  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 +45 -50
  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 +184 -208
  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;
@@ -1164,12 +1076,13 @@ class FsButtonDirective {
1164
1076
  }
1165
1077
  }
1166
1078
  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 });
1079
+ 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
1080
  }
1169
1081
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsButtonDirective, decorators: [{
1170
1082
  type: Directive,
1171
1083
  args: [{
1172
1084
  selector: '[mat-raised-button],[mat-button],[mat-flat-button],[mat-stroked-button]',
1085
+ standalone: true,
1173
1086
  }]
1174
1087
  }], propDecorators: { name: [{
1175
1088
  type: Input
@@ -1180,9 +1093,50 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
1180
1093
  args: ['style.transition']
1181
1094
  }] } });
1182
1095
 
1096
+ class FsFormDialogCloseDirective {
1097
+ _form = inject(FsFormDirective, { optional: true });
1098
+ _dialogRef = inject(MatDialogRef, { optional: true });
1099
+ closeData;
1100
+ type = 'button';
1101
+ _destroy$ = new Subject();
1102
+ closeClick() {
1103
+ if (this._form) {
1104
+ this._form.triggerConfirm()
1105
+ .pipe(filter((confirmResult) => (confirmResult !== ConfirmResult.Review)), takeUntil(this._destroy$))
1106
+ .subscribe(() => {
1107
+ this._dialogRef.close(this.closeData);
1108
+ });
1109
+ }
1110
+ else {
1111
+ this._dialogRef.close(this.closeData);
1112
+ }
1113
+ }
1114
+ ngOnDestroy() {
1115
+ this._destroy$.next(null);
1116
+ this._destroy$.complete();
1117
+ }
1118
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormDialogCloseDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1119
+ 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 });
1120
+ }
1121
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormDialogCloseDirective, decorators: [{
1122
+ type: Directive,
1123
+ args: [{
1124
+ selector: '[fsFormDialogClose],[fs-form-dialog-close]',
1125
+ standalone: true,
1126
+ }]
1127
+ }], propDecorators: { closeData: [{
1128
+ type: Input
1129
+ }], type: [{
1130
+ type: HostBinding,
1131
+ args: ['attr.type']
1132
+ }], closeClick: [{
1133
+ type: HostListener,
1134
+ args: ['click', ['$event.target']]
1135
+ }] } });
1136
+
1183
1137
  class FsFormDialogActionsComponent {
1184
- _form;
1185
- _cdRef;
1138
+ _form = inject(FsFormDirective, { optional: true });
1139
+ _cdRef = inject(ChangeDetectorRef);
1186
1140
  save = true;
1187
1141
  create = false;
1188
1142
  close = false;
@@ -1191,10 +1145,6 @@ class FsFormDialogActionsComponent {
1191
1145
  name;
1192
1146
  dirty = false;
1193
1147
  _destroy$ = new Subject();
1194
- constructor(_form, _cdRef) {
1195
- this._form = _form;
1196
- this._cdRef = _cdRef;
1197
- }
1198
1148
  ngOnInit() {
1199
1149
  if (this._form) {
1200
1150
  this._form.ngForm.valueChanges
@@ -1221,15 +1171,20 @@ class FsFormDialogActionsComponent {
1221
1171
  this._destroy$.next(null);
1222
1172
  this._destroy$.complete();
1223
1173
  }
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 });
1174
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormDialogActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1175
+ 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
1176
  }
1227
1177
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormDialogActionsComponent, decorators: [{
1228
1178
  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: [{
1179
+ args: [{ selector: 'fs-form-dialog-actions', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
1180
+ NgClass,
1181
+ MatButton,
1182
+ FsButtonDirective,
1183
+ MatDialogClose,
1184
+ NgTemplateOutlet,
1185
+ FsFormDialogCloseDirective,
1186
+ ], 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"] }]
1187
+ }], propDecorators: { save: [{
1233
1188
  type: Input
1234
1189
  }], create: [{
1235
1190
  type: Input
@@ -1275,20 +1230,13 @@ function messageProviderFactory() {
1275
1230
  }
1276
1231
 
1277
1232
  class FsControlDirective {
1278
- _elementRef;
1279
- _renderer2;
1280
- _injector;
1281
- _validateMessages;
1282
- _ngControl;
1283
- _formDirective;
1284
1233
  wrapperSelector;
1285
1234
  messageSelector;
1286
1235
  hintSelector;
1287
1236
  labelSelector;
1288
- appendMessageClass = 'fs-form-message';
1289
- appendLabelClass = 'fs-form-label';
1290
- appendErrorClass = 'fs-form-error';
1291
- appendHintClass = 'fs-form-hint';
1237
+ appendMessageClass;
1238
+ appendErrorClass;
1239
+ appendHintClass;
1292
1240
  set validateMessages(messages) {
1293
1241
  this._validateMessages = {
1294
1242
  ...this._validateMessages,
@@ -1297,14 +1245,15 @@ class FsControlDirective {
1297
1245
  }
1298
1246
  errors = [];
1299
1247
  _control;
1248
+ _elementRef = inject(ElementRef);
1249
+ _renderer2 = inject(Renderer2);
1250
+ _injector = inject(Injector);
1251
+ _validateMessages = inject(VALIDATE_MESSAGES, { self: true });
1252
+ _ngControl = inject(NgControl, { optional: true });
1253
+ _formDirective = inject(FsFormDirective, { optional: true });
1300
1254
  _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;
1255
+ constructor() {
1256
+ const _ngControl = this._ngControl;
1308
1257
  if (_ngControl) {
1309
1258
  this._control = _ngControl.control;
1310
1259
  }
@@ -1333,6 +1282,9 @@ class FsControlDirective {
1333
1282
  return this._formDirective.messageSelector;
1334
1283
  }
1335
1284
  }
1285
+ getHintWrapper() {
1286
+ return this._elementRef.nativeElement.querySelector(this.getHintWrapperSelector());
1287
+ }
1336
1288
  getHintWrapperSelector() {
1337
1289
  if (this.hintSelector === false) {
1338
1290
  return '';
@@ -1405,6 +1357,7 @@ class FsControlDirective {
1405
1357
  return console
1406
1358
  .warn(`Failed to locate ${this.getMessageSelector()}`, this._elementRef.nativeElement);
1407
1359
  }
1360
+ renderer.addClass(messageWrapper, 'fs-form-message');
1408
1361
  if (this.appendMessageClass) {
1409
1362
  renderer.addClass(messageWrapper, this.appendMessageClass);
1410
1363
  }
@@ -1413,18 +1366,25 @@ class FsControlDirective {
1413
1366
  }
1414
1367
  }
1415
1368
  _renderHint(error, messageWrapper) {
1416
- if (this.getHintWrapperSelector()) {
1417
- const hints = messageWrapper.querySelectorAll('.mat-mdc-form-field-hint');
1418
- hints.forEach((hint) => {
1419
- this._renderer2.setStyle(hint, 'display', error ? 'none' : 'block');
1369
+ const hints = [
1370
+ ...messageWrapper.querySelectorAll('.mat-mdc-form-field-hint'),
1371
+ ];
1372
+ const hintWrapper = this.getHintWrapper();
1373
+ if (hintWrapper) {
1374
+ hintWrapper.classList.add('fs-form-hint-wrapper');
1375
+ }
1376
+ hints.forEach((hint) => {
1377
+ this._renderer2.setStyle(hint, 'display', error ? 'none' : 'block');
1378
+ if (this.appendHintClass) {
1379
+ this._renderer2.addClass(hint, 'fs-form-hint');
1420
1380
  if (this.appendHintClass) {
1421
1381
  this._renderer2.addClass(hint, this.appendHintClass);
1422
1382
  }
1423
- });
1424
- }
1383
+ }
1384
+ });
1425
1385
  }
1426
1386
  _renderError(wrapper, messageWrapper, error) {
1427
- let errorWrapper = wrapper.querySelector('.fs-form-error-target');
1387
+ let errorWrapper = wrapper.querySelector('.fs-form-error');
1428
1388
  if (errorWrapper) {
1429
1389
  errorWrapper.remove();
1430
1390
  }
@@ -1432,13 +1392,18 @@ class FsControlDirective {
1432
1392
  return;
1433
1393
  }
1434
1394
  errorWrapper = this._renderer2.createElement('div');
1435
- this._renderer2.addClass(errorWrapper, 'fs-form-error-target');
1436
- this._renderer2.addClass(errorWrapper, this.appendErrorClass);
1437
- this._renderer2.addClass(errorWrapper, `${this.appendErrorClass}-${error.name}`);
1395
+ this._renderer2.addClass(errorWrapper, 'fs-form-error');
1396
+ this._renderer2.addClass(errorWrapper, `fs-form-error-${error.name}`);
1397
+ if (this.appendErrorClass) {
1398
+ this._renderer2.addClass(errorWrapper, this.appendErrorClass);
1399
+ this._renderer2.addClass(errorWrapper, `${this.appendErrorClass}-${error.name}`);
1400
+ }
1438
1401
  const errorText = this._renderer2.createText(error.message);
1439
1402
  this._renderer2.appendChild(errorWrapper, errorText);
1440
1403
  const hintWrapper = messageWrapper.querySelector(this.getHintWrapperSelector());
1441
- hintWrapper?.prepend(errorWrapper);
1404
+ if (hintWrapper) {
1405
+ hintWrapper.prepend(errorWrapper);
1406
+ }
1442
1407
  }
1443
1408
  _subscribeToStatusChagnes() {
1444
1409
  if (this._control) {
@@ -1490,8 +1455,8 @@ class FsControlDirective {
1490
1455
  }
1491
1456
  control.updateValueAndValidity();
1492
1457
  }
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: [
1458
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsControlDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1459
+ 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
1460
  VALIDATE_MESSAGE_PROVIDER,
1496
1461
  ], ngImport: i0 });
1497
1462
  }
@@ -1502,20 +1467,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
1502
1467
  providers: [
1503
1468
  VALIDATE_MESSAGE_PROVIDER,
1504
1469
  ],
1470
+ standalone: true,
1505
1471
  }]
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: [{
1472
+ }], ctorParameters: () => [], propDecorators: { wrapperSelector: [{
1519
1473
  type: Input
1520
1474
  }], messageSelector: [{
1521
1475
  type: Input
@@ -1525,8 +1479,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
1525
1479
  type: Input
1526
1480
  }], appendMessageClass: [{
1527
1481
  type: Input
1528
- }], appendLabelClass: [{
1529
- type: Input
1530
1482
  }], appendErrorClass: [{
1531
1483
  type: Input
1532
1484
  }], appendHintClass: [{
@@ -1560,7 +1512,7 @@ class FsFormCompareDirective extends FsControlDirective {
1560
1512
  }, false);
1561
1513
  }
1562
1514
  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: [
1515
+ 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
1516
  VALIDATE_MESSAGE_PROVIDER,
1565
1517
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
1566
1518
  }
@@ -1571,6 +1523,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
1571
1523
  providers: [
1572
1524
  VALIDATE_MESSAGE_PROVIDER,
1573
1525
  ],
1526
+ standalone: true,
1574
1527
  }]
1575
1528
  }], propDecorators: { fsFormCompare: [{
1576
1529
  type: Input
@@ -1688,7 +1641,7 @@ class FsFormDateRangeDirective extends FsControlDirective {
1688
1641
  }
1689
1642
  }
1690
1643
  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: [
1644
+ 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
1645
  VALIDATE_MESSAGE_PROVIDER
1693
1646
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
1694
1647
  }
@@ -1699,6 +1652,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
1699
1652
  providers: [
1700
1653
  VALIDATE_MESSAGE_PROVIDER
1701
1654
  ],
1655
+ standalone: true,
1702
1656
  }]
1703
1657
  }], propDecorators: { fsFormDateRange: [{
1704
1658
  type: Input
@@ -1724,7 +1678,7 @@ class FsFormEmailDirective extends FsControlDirective {
1724
1678
  }
1725
1679
  }
1726
1680
  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: [
1681
+ 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
1682
  VALIDATE_MESSAGE_PROVIDER
1729
1683
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
1730
1684
  }
@@ -1735,6 +1689,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
1735
1689
  providers: [
1736
1690
  VALIDATE_MESSAGE_PROVIDER
1737
1691
  ],
1692
+ standalone: true,
1738
1693
  }]
1739
1694
  }], propDecorators: { fsFormEmail: [{
1740
1695
  type: Input
@@ -1760,7 +1715,7 @@ class FsFormEmailsDirective extends FsControlDirective {
1760
1715
  }
1761
1716
  }
1762
1717
  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: [
1718
+ 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
1719
  VALIDATE_MESSAGE_PROVIDER
1765
1720
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
1766
1721
  }
@@ -1771,6 +1726,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
1771
1726
  providers: [
1772
1727
  VALIDATE_MESSAGE_PROVIDER
1773
1728
  ],
1729
+ standalone: true,
1774
1730
  }]
1775
1731
  }], propDecorators: { fsFormEmails: [{
1776
1732
  type: Input
@@ -1793,7 +1749,7 @@ class FsFormFunctionDirective extends FsControlDirective {
1793
1749
  return FsValidators.func(this._control, this.fsFormFunction, this.fsFormFunctionData);
1794
1750
  }
1795
1751
  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: [
1752
+ 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
1753
  VALIDATE_MESSAGE_PROVIDER,
1798
1754
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
1799
1755
  }
@@ -1804,6 +1760,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
1804
1760
  providers: [
1805
1761
  VALIDATE_MESSAGE_PROVIDER,
1806
1762
  ],
1763
+ standalone: true,
1807
1764
  }]
1808
1765
  }], propDecorators: { fsFormFunction: [{
1809
1766
  type: Input
@@ -1830,7 +1787,7 @@ class FsFormGreaterEqualDirective extends FsControlDirective {
1830
1787
  return FsValidators.numeric(this._control);
1831
1788
  }
1832
1789
  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: [
1790
+ 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
1791
  VALIDATE_MESSAGE_PROVIDER
1835
1792
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
1836
1793
  }
@@ -1841,6 +1798,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
1841
1798
  providers: [
1842
1799
  VALIDATE_MESSAGE_PROVIDER
1843
1800
  ],
1801
+ standalone: true,
1844
1802
  }]
1845
1803
  }], propDecorators: { fsFormGreaterEqual: [{
1846
1804
  type: Input
@@ -1866,7 +1824,7 @@ class FsFormGreaterDirective extends FsControlDirective {
1866
1824
  return FsValidators.numeric(this._control);
1867
1825
  }
1868
1826
  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: [
1827
+ 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
1828
  VALIDATE_MESSAGE_PROVIDER
1871
1829
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
1872
1830
  }
@@ -1877,6 +1835,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
1877
1835
  providers: [
1878
1836
  VALIDATE_MESSAGE_PROVIDER
1879
1837
  ],
1838
+ standalone: true,
1880
1839
  }]
1881
1840
  }], propDecorators: { fsFormGreater: [{
1882
1841
  type: Input
@@ -1900,7 +1859,7 @@ class FsFormIntegerDirective extends FsControlDirective {
1900
1859
  return null;
1901
1860
  }
1902
1861
  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: [
1862
+ 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
1863
  VALIDATE_MESSAGE_PROVIDER,
1905
1864
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
1906
1865
  }
@@ -1911,6 +1870,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
1911
1870
  providers: [
1912
1871
  VALIDATE_MESSAGE_PROVIDER,
1913
1872
  ],
1873
+ standalone: true,
1914
1874
  }]
1915
1875
  }], propDecorators: { fsFormInteger: [{
1916
1876
  type: Input
@@ -1936,7 +1896,7 @@ class FsFormLesserEqualDirective extends FsControlDirective {
1936
1896
  return FsValidators.numeric(this._control);
1937
1897
  }
1938
1898
  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: [
1899
+ 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
1900
  VALIDATE_MESSAGE_PROVIDER
1941
1901
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
1942
1902
  }
@@ -1947,6 +1907,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
1947
1907
  providers: [
1948
1908
  VALIDATE_MESSAGE_PROVIDER
1949
1909
  ],
1910
+ standalone: true,
1950
1911
  }]
1951
1912
  }], propDecorators: { fsFormLesserEqual: [{
1952
1913
  type: Input
@@ -1972,7 +1933,7 @@ class FsFormLesserDirective extends FsControlDirective {
1972
1933
  return FsValidators.numeric(this._control);
1973
1934
  }
1974
1935
  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: [
1936
+ 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
1937
  VALIDATE_MESSAGE_PROVIDER
1977
1938
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
1978
1939
  }
@@ -1983,6 +1944,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
1983
1944
  providers: [
1984
1945
  VALIDATE_MESSAGE_PROVIDER
1985
1946
  ],
1947
+ standalone: true,
1986
1948
  }]
1987
1949
  }], propDecorators: { fsFormLesser: [{
1988
1950
  type: Input
@@ -2003,7 +1965,7 @@ class FsFormMaxDirective extends FsControlDirective {
2003
1965
  return FsValidators.numeric(this._control) || Validators.max(this.fsFormMax)(this._control);
2004
1966
  }
2005
1967
  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: [
1968
+ 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
1969
  VALIDATE_MESSAGE_PROVIDER
2008
1970
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
2009
1971
  }
@@ -2014,6 +1976,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
2014
1976
  providers: [
2015
1977
  VALIDATE_MESSAGE_PROVIDER
2016
1978
  ],
1979
+ standalone: true,
2017
1980
  }]
2018
1981
  }], propDecorators: { fsFormMax: [{
2019
1982
  type: Input
@@ -2034,7 +1997,7 @@ class FsFormMaxLengthDirective extends FsControlDirective {
2034
1997
  return Validators.maxLength(this.fsFormMaxLength)(this._control);
2035
1998
  }
2036
1999
  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: [
2000
+ 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
2001
  VALIDATE_MESSAGE_PROVIDER
2039
2002
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
2040
2003
  }
@@ -2045,6 +2008,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
2045
2008
  providers: [
2046
2009
  VALIDATE_MESSAGE_PROVIDER
2047
2010
  ],
2011
+ standalone: true,
2048
2012
  }]
2049
2013
  }], propDecorators: { fsFormMaxLength: [{
2050
2014
  type: Input
@@ -2065,7 +2029,7 @@ class FsFormMinDirective extends FsControlDirective {
2065
2029
  return FsValidators.numeric(this._control) || Validators.min(parseFloat(this.fsFormMin))(this._control);
2066
2030
  }
2067
2031
  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: [
2032
+ 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
2033
  VALIDATE_MESSAGE_PROVIDER
2070
2034
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
2071
2035
  }
@@ -2076,6 +2040,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
2076
2040
  providers: [
2077
2041
  VALIDATE_MESSAGE_PROVIDER
2078
2042
  ],
2043
+ standalone: true,
2079
2044
  }]
2080
2045
  }], propDecorators: { fsFormMin: [{
2081
2046
  type: Input
@@ -2096,7 +2061,7 @@ class FsFormMinLengthDirective extends FsControlDirective {
2096
2061
  return Validators.minLength(this.fsFormMinLength)(this._control);
2097
2062
  }
2098
2063
  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: [
2064
+ 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
2065
  VALIDATE_MESSAGE_PROVIDER
2101
2066
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
2102
2067
  }
@@ -2107,6 +2072,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
2107
2072
  providers: [
2108
2073
  VALIDATE_MESSAGE_PROVIDER
2109
2074
  ],
2075
+ standalone: true,
2110
2076
  }]
2111
2077
  }], propDecorators: { fsFormMinLength: [{
2112
2078
  type: Input
@@ -2130,7 +2096,7 @@ class FsFormNoFsValidatorsDirective extends FsControlDirective {
2130
2096
  }
2131
2097
  }
2132
2098
  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: [
2099
+ 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
2100
  VALIDATE_MESSAGE_PROVIDER
2135
2101
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
2136
2102
  }
@@ -2161,6 +2127,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
2161
2127
  providers: [
2162
2128
  VALIDATE_MESSAGE_PROVIDER
2163
2129
  ],
2130
+ standalone: true,
2164
2131
  }]
2165
2132
  }] });
2166
2133
 
@@ -2181,7 +2148,7 @@ class FsFormNumericDirective extends FsControlDirective {
2181
2148
  }
2182
2149
  }
2183
2150
  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: [
2151
+ 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
2152
  VALIDATE_MESSAGE_PROVIDER
2186
2153
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
2187
2154
  }
@@ -2192,6 +2159,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
2192
2159
  providers: [
2193
2160
  VALIDATE_MESSAGE_PROVIDER
2194
2161
  ],
2162
+ standalone: true,
2195
2163
  }]
2196
2164
  }], propDecorators: { fsFormNumeric: [{
2197
2165
  type: Input
@@ -2212,7 +2180,7 @@ class FsFormPatternDirective extends FsControlDirective {
2212
2180
  return Validators.pattern(this.fsFormPattern)(this._control);
2213
2181
  }
2214
2182
  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: [
2183
+ 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
2184
  VALIDATE_MESSAGE_PROVIDER
2217
2185
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
2218
2186
  }
@@ -2223,6 +2191,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
2223
2191
  providers: [
2224
2192
  VALIDATE_MESSAGE_PROVIDER
2225
2193
  ],
2194
+ standalone: true,
2226
2195
  }]
2227
2196
  }], propDecorators: { fsFormPattern: [{
2228
2197
  type: Input
@@ -2248,7 +2217,7 @@ class FsFormPhoneDirective extends FsControlDirective {
2248
2217
  }
2249
2218
  }
2250
2219
  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: [
2220
+ 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
2221
  VALIDATE_MESSAGE_PROVIDER
2253
2222
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
2254
2223
  }
@@ -2259,6 +2228,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
2259
2228
  providers: [
2260
2229
  VALIDATE_MESSAGE_PROVIDER
2261
2230
  ],
2231
+ standalone: true,
2262
2232
  }]
2263
2233
  }], propDecorators: { fsFormPhone: [{
2264
2234
  type: Input
@@ -2304,7 +2274,7 @@ class FsFormRequiredDirective extends FsControlDirective {
2304
2274
  super.render();
2305
2275
  }
2306
2276
  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: [
2277
+ 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
2278
  VALIDATE_MESSAGE_PROVIDER,
2309
2279
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
2310
2280
  }
@@ -2315,6 +2285,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
2315
2285
  providers: [
2316
2286
  VALIDATE_MESSAGE_PROVIDER,
2317
2287
  ],
2288
+ standalone: true,
2318
2289
  }]
2319
2290
  }], propDecorators: { setFsFormRequired: [{
2320
2291
  type: Input,
@@ -2343,7 +2314,7 @@ class FsFormUrlDirective extends FsControlDirective {
2343
2314
  return null;
2344
2315
  }
2345
2316
  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: [
2317
+ 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
2318
  VALIDATE_MESSAGE_PROVIDER,
2348
2319
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
2349
2320
  }
@@ -2354,6 +2325,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
2354
2325
  providers: [
2355
2326
  VALIDATE_MESSAGE_PROVIDER,
2356
2327
  ],
2328
+ standalone: true,
2357
2329
  }]
2358
2330
  }], propDecorators: { fsFormUrl: [{
2359
2331
  type: Input
@@ -2378,7 +2350,7 @@ class FsFormValidateDirective extends FsControlDirective {
2378
2350
  return FsValidators.func(this._control, this.validateFn, this.validateFnData);
2379
2351
  }
2380
2352
  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: [
2353
+ 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
2354
  VALIDATE_MESSAGE_PROVIDER,
2383
2355
  ], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
2384
2356
  }
@@ -2389,6 +2361,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
2389
2361
  providers: [
2390
2362
  VALIDATE_MESSAGE_PROVIDER,
2391
2363
  ],
2364
+ standalone: true,
2392
2365
  }]
2393
2366
  }], propDecorators: { validateFn: [{
2394
2367
  type: Input,
@@ -2409,12 +2382,13 @@ class FsFormTemplateDirective {
2409
2382
  });
2410
2383
  }
2411
2384
  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 });
2385
+ 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
2386
  }
2414
2387
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormTemplateDirective, decorators: [{
2415
2388
  type: Directive,
2416
2389
  args: [{
2417
2390
  selector: '[fsFormTemplate],fs-form-template',
2391
+ standalone: true,
2418
2392
  }]
2419
2393
  }], propDecorators: { _projectedControls: [{
2420
2394
  type: ContentChildren,
@@ -2423,12 +2397,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
2423
2397
 
2424
2398
  class FsSubmitButtonDirective extends FsButtonDirective {
2425
2399
  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 });
2400
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsSubmitButtonDirective, isStandalone: true, selector: "dummy-selector", usesInheritance: true, ngImport: i0 });
2427
2401
  }
2428
2402
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsSubmitButtonDirective, decorators: [{
2429
2403
  type: Directive,
2430
2404
  args: [{
2431
2405
  selector: 'dummy-selector',
2406
+ standalone: true,
2432
2407
  }]
2433
2408
  }] });
2434
2409
 
@@ -2443,12 +2418,13 @@ class FsFormTemplateOutletDirective {
2443
2418
  });
2444
2419
  }
2445
2420
  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 });
2421
+ 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
2422
  }
2448
2423
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormTemplateOutletDirective, decorators: [{
2449
2424
  type: Directive,
2450
2425
  args: [{
2451
2426
  selector: '[fsFormTemplateOutlet]',
2427
+ standalone: true,
2452
2428
  }]
2453
2429
  }], propDecorators: { template: [{
2454
2430
  type: Input
@@ -2470,7 +2446,13 @@ class FsFormModule {
2470
2446
  };
2471
2447
  }
2472
2448
  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,
2449
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: FsFormModule, imports: [CommonModule,
2450
+ FormsModule,
2451
+ MatButtonModule,
2452
+ MatDialogModule,
2453
+ MatDialogModule,
2454
+ FsDialogModule,
2455
+ FsFormDirective,
2474
2456
  FsControlDirective,
2475
2457
  FsFormRequiredDirective,
2476
2458
  FsFormMinDirective,
@@ -2500,12 +2482,7 @@ class FsFormModule {
2500
2482
  FsFormTemplateDirective,
2501
2483
  FsFormTemplateDirective,
2502
2484
  FsFormTemplateOutletDirective,
2503
- FsFormGroupDirective], imports: [CommonModule,
2504
- FormsModule,
2505
- MatButtonModule,
2506
- MatDialogModule,
2507
- MatDialogModule,
2508
- FsDialogModule], exports: [FsFormDirective,
2485
+ FsFormGroupDirective], exports: [FsFormDirective,
2509
2486
  FsControlDirective,
2510
2487
  FsFormRequiredDirective,
2511
2488
  FsFormMinDirective,
@@ -2546,7 +2523,8 @@ class FsFormModule {
2546
2523
  MatButtonModule,
2547
2524
  MatDialogModule,
2548
2525
  MatDialogModule,
2549
- FsDialogModule] });
2526
+ FsDialogModule,
2527
+ FsFormDialogActionsComponent] });
2550
2528
  }
2551
2529
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormModule, decorators: [{
2552
2530
  type: NgModule,
@@ -2558,8 +2536,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
2558
2536
  MatDialogModule,
2559
2537
  MatDialogModule,
2560
2538
  FsDialogModule,
2561
- ],
2562
- declarations: [
2563
2539
  FsFormDirective,
2564
2540
  FsControlDirective,
2565
2541
  FsFormRequiredDirective,