@rxap/material-form-system 21.0.1-dev.0 → 21.0.1

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 (81) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/compodoc/changelog.html +40 -0
  3. package/compodoc/classes/ExtractHideShowMixin.html +14 -28
  4. package/compodoc/classes/RecordViewTuple.html +9 -23
  5. package/compodoc/components/FormControlsComponent.html +146 -352
  6. package/compodoc/dependencies.html +5 -5
  7. package/compodoc/directives/ChipInputAdapterDirective.html +7 -53
  8. package/compodoc/directives/ChipListIteratorDirective.html +8 -106
  9. package/compodoc/directives/CompareWithDirective.html +44 -90
  10. package/compodoc/directives/ControlErrorDirective.html +150 -151
  11. package/compodoc/directives/ControlErrorsDirective.html +123 -109
  12. package/compodoc/directives/FormFieldHideShowDirective.html +11 -97
  13. package/compodoc/directives/InputClearButtonDirective.html +15 -251
  14. package/compodoc/directives/RequiredDirective.html +2 -58
  15. package/compodoc/graph/dependencies.svg +15 -153
  16. package/compodoc/interfaces/ChipListTemplateContext.html +6 -20
  17. package/compodoc/interfaces/ControlErrorDirectiveContext.html +8 -28
  18. package/compodoc/interfaces/ControlErrorsDirectiveContext.html +6 -21
  19. package/compodoc/js/menu-wc.js +0 -41
  20. package/compodoc/js/menu-wc_es5.js +1 -1
  21. package/compodoc/js/search/search_index.js +2 -2
  22. package/compodoc/modules.html +0 -17
  23. package/compodoc/overview.html +1 -185
  24. package/compodoc/properties.html +1 -1
  25. package/docs/documentation.json +774 -1578
  26. package/docs/html/assets/hierarchy.js +1 -1
  27. package/docs/html/assets/navigation.js +1 -1
  28. package/docs/html/assets/search.js +1 -1
  29. package/docs/html/classes/ChipInputAdapterDirective.html +4 -4
  30. package/docs/html/classes/ChipListIteratorDirective.html +4 -4
  31. package/docs/html/classes/CompareWithDirective.html +3 -3
  32. package/docs/html/classes/ControlErrorDirective.html +4 -4
  33. package/docs/html/classes/ControlErrorsDirective.html +4 -4
  34. package/docs/html/classes/ExtractHideShowMixin.html +2 -2
  35. package/docs/html/classes/FormControlsComponent.html +6 -7
  36. package/docs/html/classes/FormFieldHideShowDirective.html +5 -5
  37. package/docs/html/classes/InputClearButtonDirective.html +2 -2
  38. package/docs/html/classes/RequiredDirective.html +3 -3
  39. package/docs/html/hierarchy.html +1 -1
  40. package/docs/html/index.html +2 -2
  41. package/docs/html/interfaces/ChipListTemplateContext.html +2 -2
  42. package/docs/html/interfaces/ControlErrorDirectiveContext.html +2 -2
  43. package/docs/html/interfaces/ControlErrorsDirectiveContext.html +2 -2
  44. package/docs/html/modules.html +1 -1
  45. package/docs/markdown/README.md +1 -1
  46. package/docs/markdown/classes/ChipInputAdapterDirective.md +6 -16
  47. package/docs/markdown/classes/ChipListIteratorDirective.md +6 -26
  48. package/docs/markdown/classes/CompareWithDirective.md +6 -14
  49. package/docs/markdown/classes/ControlErrorDirective.md +12 -32
  50. package/docs/markdown/classes/ControlErrorsDirective.md +10 -30
  51. package/docs/markdown/classes/ExtractHideShowMixin.md +8 -8
  52. package/docs/markdown/classes/FormControlsComponent.md +24 -74
  53. package/docs/markdown/classes/FormFieldHideShowDirective.md +12 -28
  54. package/docs/markdown/classes/InputClearButtonDirective.md +8 -16
  55. package/docs/markdown/classes/RequiredDirective.md +4 -12
  56. package/docs/markdown/globals.md +2 -3
  57. package/docs/markdown/interfaces/ChipListTemplateContext.md +4 -4
  58. package/docs/markdown/interfaces/ControlErrorDirectiveContext.md +4 -4
  59. package/docs/markdown/interfaces/ControlErrorsDirectiveContext.md +4 -4
  60. package/docs/wiki/Class.ChipInputAdapterDirective.md +5 -15
  61. package/docs/wiki/Class.ChipListIteratorDirective.md +5 -25
  62. package/docs/wiki/Class.CompareWithDirective.md +5 -13
  63. package/docs/wiki/Class.ControlErrorDirective.md +11 -31
  64. package/docs/wiki/Class.ControlErrorsDirective.md +9 -29
  65. package/docs/wiki/Class.ExtractHideShowMixin.md +7 -7
  66. package/docs/wiki/Class.FormControlsComponent.md +23 -73
  67. package/docs/wiki/Class.FormFieldHideShowDirective.md +11 -27
  68. package/docs/wiki/Class.InputClearButtonDirective.md +7 -15
  69. package/docs/wiki/Class.RequiredDirective.md +3 -11
  70. package/docs/wiki/Interface.ChipListTemplateContext.md +3 -3
  71. package/docs/wiki/Interface.ControlErrorDirectiveContext.md +3 -3
  72. package/docs/wiki/Interface.ControlErrorsDirectiveContext.md +3 -3
  73. package/docs/wiki/_Sidebar.md +0 -1
  74. package/docs/wiki/globals.md +1 -2
  75. package/fesm2022/rxap-material-form-system.mjs +92 -215
  76. package/fesm2022/rxap-material-form-system.mjs.map +1 -1
  77. package/package.json +23 -23
  78. package/types/rxap-material-form-system.d.ts +19 -40
  79. package/docs/html/classes/MaterialFormSystemModule.html +0 -2
  80. package/docs/markdown/classes/MaterialFormSystemModule.md +0 -19
  81. package/docs/wiki/Class.MaterialFormSystemModule.md +0 -15
@@ -1,61 +1,53 @@
1
1
  import * as i0 from '@angular/core';
2
- import { EventEmitter, isDevMode, ChangeDetectorRef, Input, Output, Inject, Optional, ChangeDetectionStrategy, Component, Directive, TemplateRef, ViewContainerRef, Renderer2, ElementRef, HostListener, HostBinding, NgModule } from '@angular/core';
3
- import * as i3 from '@rxap/forms';
2
+ import { inject, signal, input, output, isDevMode, ChangeDetectionStrategy, Component, Directive, TemplateRef, ViewContainerRef, IterableDiffers, ChangeDetectorRef, Renderer2, ElementRef } from '@angular/core';
3
+ import { outputToObservable } from '@angular/core/rxjs-interop';
4
4
  import { FormDirective, controlErrorChanges$, RxapFormControl } from '@rxap/forms';
5
5
  import { coerceBoolean, clone, unique, getFromObject, equals } from '@rxap/utilities';
6
6
  import { take, tap, filter, startWith, catchError } from 'rxjs/operators';
7
- import * as i5 from '@angular/router';
8
7
  import { Router } from '@angular/router';
9
- import * as i4 from '@angular/material/snack-bar';
10
8
  import { MatSnackBar, MatSnackBarModule } from '@angular/material/snack-bar';
11
9
  import * as i2 from '@angular/material/progress-spinner';
12
10
  import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
13
- import { NgClass, AsyncPipe } from '@angular/common';
11
+ import { NgClass } from '@angular/common';
14
12
  import * as i1 from '@angular/material/button';
15
13
  import { MatButtonModule } from '@angular/material/button';
16
14
  import { ENTER, COMMA } from '@angular/cdk/keycodes';
17
- import * as i2$1 from '@angular/forms';
18
- import * as i1$1 from '@angular/material/chips';
19
- import * as i1$2 from '@angular/material/select';
15
+ import { NgControl } from '@angular/forms';
16
+ import { MatChipInput } from '@angular/material/chips';
20
17
  import { MatSelect } from '@angular/material/select';
21
- import * as i1$3 from '@angular/material/form-field';
22
- import { MAT_FORM_FIELD, MatFormField } from '@angular/material/form-field';
23
- import { __decorate, __metadata } from 'tslib';
18
+ import { MAT_FORM_FIELD } from '@angular/material/form-field';
19
+ import { __decorate } from 'tslib';
24
20
  import { Subscription, of } from 'rxjs';
25
21
  import { RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS, RXAP_FORM_SYSTEM_HIDE_METADATA, RXAP_FORM_SYSTEM_SHOW_METADATA, ExtractFormDefinitionMixin } from '@rxap/form-system';
26
22
  import { Mixin } from '@rxap/mixin';
27
23
  import { getMetadata } from '@rxap/reflect-metadata';
28
24
 
29
25
  class FormControlsComponent {
30
- constructor(formDirective, cdr, snackBar, router) {
31
- this.formDirective = formDirective;
32
- this.cdr = cdr;
33
- this.snackBar = snackBar;
34
- this.router = router;
35
- this.invalid = false;
36
- this.close = new EventEmitter();
37
- this.submitted = new EventEmitter();
26
+ constructor() {
27
+ this.formDirective = inject(FormDirective);
28
+ this.snackBar = inject(MatSnackBar);
29
+ this.router = inject(Router, { optional: true });
30
+ this.submitting = this.formDirective.submitting;
31
+ this.invalid = signal(false, ...(ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []));
32
+ this.navigateAfterSubmit = input(...(ngDevMode ? [undefined, { debugName: "navigateAfterSubmit" }] : /* istanbul ignore next */ []));
33
+ // eslint-disable-next-line @angular-eslint/no-output-native
34
+ this.close = output();
35
+ this.submitted = output();
38
36
  this.isDevMode = isDevMode();
39
37
  /**
40
38
  * Collection of successful submitted values
41
39
  * @private
42
40
  */
43
41
  this._submitted = [];
44
- this._allowResubmit = false;
45
- }
46
- get allowResubmit() {
47
- return this._allowResubmit;
48
- }
49
- set allowResubmit(value) {
50
- this._allowResubmit = coerceBoolean(value);
42
+ this.allowResubmit = input(false, { ...(ngDevMode ? { debugName: "allowResubmit" } : /* istanbul ignore next */ {}), transform: coerceBoolean });
51
43
  }
52
44
  ngOnInit() {
53
- this.submitting$ = this.formDirective.submitting$;
54
- this.close
45
+ outputToObservable(this.close)
55
46
  .pipe(take(1), tap(() => {
56
- if (this.navigateAfterSubmit) {
47
+ const navigateAfterSubmit = this.navigateAfterSubmit();
48
+ if (navigateAfterSubmit) {
57
49
  if (this.router) {
58
- return this.router.navigate(this.navigateAfterSubmit);
50
+ return this.router.navigate(navigateAfterSubmit);
59
51
  }
60
52
  else {
61
53
  console.warn('The Router is not available. Ensure that tha RouterModule is imported');
@@ -66,7 +58,7 @@ class FormControlsComponent {
66
58
  .subscribe();
67
59
  }
68
60
  reset() {
69
- this.invalid = false;
61
+ this.invalid.set(false);
70
62
  this.formDirective.reset();
71
63
  }
72
64
  cancel() {
@@ -75,13 +67,12 @@ class FormControlsComponent {
75
67
  submit(closeAfterSubmit) {
76
68
  this.formDirective.form.markAllAsDirty();
77
69
  this.formDirective.form.markAllAsTouched();
78
- this.formDirective.cdr.markForCheck();
79
70
  // eslint-disable-next-line prefer-const
80
71
  let submitSubscription;
81
- const invalidSubmitSubscription = this.formDirective.invalidSubmit
82
- .pipe(take(1), tap(() => submitSubscription?.unsubscribe()), tap(() => (this.invalid = true)), tap(() => this.cdr.detectChanges()), tap(() => this.snackBar.open($localize `:@@rxap-material.form-system.form-controls.form-is-invalid:Form is not valid`, 'ok', { duration: 5000 })))
72
+ const invalidSubmitSubscription = outputToObservable(this.formDirective.invalidSubmit)
73
+ .pipe(take(1), tap(() => submitSubscription?.unsubscribe()), tap(() => this.invalid.set(true)), tap(() => this.snackBar.open($localize `:@@rxap-material.form-system.form-controls.form-is-invalid:Form is not valid`, 'ok', { duration: 5000 })))
83
74
  .subscribe();
84
- submitSubscription = this.formDirective.rxapSubmit
75
+ submitSubscription = outputToObservable(this.formDirective.rxapSubmit)
85
76
  .pipe(take(1), tap((value) => {
86
77
  const clonedValue = clone(value);
87
78
  this._submitted.push(clonedValue);
@@ -95,8 +86,7 @@ class FormControlsComponent {
95
86
  }
96
87
  }
97
88
  invalidSubmitSubscription.unsubscribe();
98
- this.invalid = false;
99
- this.cdr.detectChanges();
89
+ this.invalid.set(false);
100
90
  }))
101
91
  .subscribe();
102
92
  this.formDirective.onSubmit(new Event('submit'));
@@ -104,8 +94,8 @@ class FormControlsComponent {
104
94
  logCurrentFormState() {
105
95
  console.log(clone(this.formDirective.form.value));
106
96
  }
107
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: FormControlsComponent, deps: [{ token: FormDirective }, { token: ChangeDetectorRef }, { token: MatSnackBar }, { token: Router, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
108
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: FormControlsComponent, isStandalone: true, selector: "rxap-form-controls", inputs: { navigateAfterSubmit: "navigateAfterSubmit", allowResubmit: "allowResubmit" }, outputs: { close: "close", submitted: "submitted" }, ngImport: i0, template: "<div class=\"flex flex-row justify-between items-center gap-8\">\n <div class=\"flex grow-0 flex-row justify-end items-center gap-8 w-full\">\n <button (click)=\"reset()\"\n [disabled]=\"submitting$ | async\"\n class=\"grow-0\"\n mat-stroked-button\n type=\"button\">\n <ng-container i18n>Reset</ng-container>\n </button>\n <button (click)=\"cancel()\"\n [disabled]=\"submitting$ | async\"\n color=\"warn\"\n class=\"grow-0\"\n mat-stroked-button\n type=\"button\">\n <ng-container i18n>Cancel</ng-container>\n </button>\n <button (click)=\"submit(!allowResubmit)\"\n [disabled]=\"submitting$ | async\"\n [ngClass]=\"{ invalid: invalid }\"\n color=\"primary\"\n class=\"grow-0\"\n mat-raised-button\n type=\"button\">\n <span class=\"flex flex-row items-center gap-2\">\n <span class=\"grow-0\">\n <ng-container i18n>Submit</ng-container>\n </span>\n @if (submitting$ | async) {\n <mat-spinner [diameter]=\"15\" color=\"accent\" class=\"grow-0\"\n mode=\"indeterminate\"></mat-spinner>\n }\n </span>\n </button>\n @if (allowResubmit) {\n <button (click)=\"submit(true)\"\n [disabled]=\"submitting$ | async\"\n [ngClass]=\"{ invalid: invalid }\"\n color=\"primary\"\n class=\"grow-0\"\n mat-raised-button\n type=\"button\">\n <span class=\"flex flex-row items-center gap-2\">\n <span class=\"grow-0\">\n <ng-container i18n>Submit and Close</ng-container>\n </span>\n @if (submitting$ | async) {\n <mat-spinner [diameter]=\"15\" color=\"accent\" class=\"grow-0\"\n mode=\"indeterminate\"></mat-spinner>\n }\n </span>\n </button>\n }\n @if (isDevMode) {\n <button (click)=\"logCurrentFormState()\" mat-button type=\"button\" class=\"grow-0\">\n Current Form State\n </button>\n }\n </div>\n</div>\n", styles: ["button{overflow:hidden}button.invalid{border:6px solid darkred}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i2.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatSnackBarModule }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
97
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: FormControlsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
98
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: FormControlsComponent, isStandalone: true, selector: "rxap-form-controls", inputs: { navigateAfterSubmit: { classPropertyName: "navigateAfterSubmit", publicName: "navigateAfterSubmit", isSignal: true, isRequired: false, transformFunction: null }, allowResubmit: { classPropertyName: "allowResubmit", publicName: "allowResubmit", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { close: "close", submitted: "submitted" }, ngImport: i0, template: "<div class=\"flex flex-row justify-between items-center gap-8\">\n <div class=\"flex grow-0 flex-row justify-end items-center gap-8 w-full\">\n <button (click)=\"reset()\"\n [disabled]=\"submitting()\"\n class=\"grow-0\"\n mat-stroked-button\n type=\"button\">\n <ng-container i18n>Reset</ng-container>\n </button>\n <button (click)=\"cancel()\"\n [disabled]=\"submitting()\"\n color=\"warn\"\n class=\"grow-0\"\n mat-stroked-button\n type=\"button\">\n <ng-container i18n>Cancel</ng-container>\n </button>\n <button (click)=\"submit(!allowResubmit())\"\n [disabled]=\"submitting()\"\n [ngClass]=\"{ invalid: invalid() }\"\n color=\"primary\"\n class=\"grow-0\"\n mat-raised-button\n type=\"button\">\n <span class=\"flex flex-row items-center gap-2\">\n <span class=\"grow-0\">\n <ng-container i18n>Submit</ng-container>\n </span>\n @if (submitting()) {\n <mat-spinner [diameter]=\"15\" color=\"accent\" class=\"grow-0\"\n mode=\"indeterminate\"></mat-spinner>\n }\n </span>\n </button>\n @if (allowResubmit()) {\n <button (click)=\"submit(true)\"\n [disabled]=\"submitting()\"\n [ngClass]=\"{ invalid: invalid() }\"\n color=\"primary\"\n class=\"grow-0\"\n mat-raised-button\n type=\"button\">\n <span class=\"flex flex-row items-center gap-2\">\n <span class=\"grow-0\">\n <ng-container i18n>Submit and Close</ng-container>\n </span>\n @if (submitting()) {\n <mat-spinner [diameter]=\"15\" color=\"accent\" class=\"grow-0\"\n mode=\"indeterminate\"></mat-spinner>\n }\n </span>\n </button>\n }\n @if (isDevMode) {\n <button (click)=\"logCurrentFormState()\" mat-button type=\"button\" class=\"grow-0\">\n Current Form State\n </button>\n }\n </div>\n</div>\n", styles: ["button{overflow:hidden}button.invalid{border:6px solid darkred}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i2.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatSnackBarModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
109
99
  }
110
100
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: FormControlsComponent, decorators: [{
111
101
  type: Component,
@@ -113,37 +103,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
113
103
  MatButtonModule,
114
104
  NgClass,
115
105
  MatProgressSpinnerModule,
116
- AsyncPipe,
117
106
  MatSnackBarModule
118
- ], template: "<div class=\"flex flex-row justify-between items-center gap-8\">\n <div class=\"flex grow-0 flex-row justify-end items-center gap-8 w-full\">\n <button (click)=\"reset()\"\n [disabled]=\"submitting$ | async\"\n class=\"grow-0\"\n mat-stroked-button\n type=\"button\">\n <ng-container i18n>Reset</ng-container>\n </button>\n <button (click)=\"cancel()\"\n [disabled]=\"submitting$ | async\"\n color=\"warn\"\n class=\"grow-0\"\n mat-stroked-button\n type=\"button\">\n <ng-container i18n>Cancel</ng-container>\n </button>\n <button (click)=\"submit(!allowResubmit)\"\n [disabled]=\"submitting$ | async\"\n [ngClass]=\"{ invalid: invalid }\"\n color=\"primary\"\n class=\"grow-0\"\n mat-raised-button\n type=\"button\">\n <span class=\"flex flex-row items-center gap-2\">\n <span class=\"grow-0\">\n <ng-container i18n>Submit</ng-container>\n </span>\n @if (submitting$ | async) {\n <mat-spinner [diameter]=\"15\" color=\"accent\" class=\"grow-0\"\n mode=\"indeterminate\"></mat-spinner>\n }\n </span>\n </button>\n @if (allowResubmit) {\n <button (click)=\"submit(true)\"\n [disabled]=\"submitting$ | async\"\n [ngClass]=\"{ invalid: invalid }\"\n color=\"primary\"\n class=\"grow-0\"\n mat-raised-button\n type=\"button\">\n <span class=\"flex flex-row items-center gap-2\">\n <span class=\"grow-0\">\n <ng-container i18n>Submit and Close</ng-container>\n </span>\n @if (submitting$ | async) {\n <mat-spinner [diameter]=\"15\" color=\"accent\" class=\"grow-0\"\n mode=\"indeterminate\"></mat-spinner>\n }\n </span>\n </button>\n }\n @if (isDevMode) {\n <button (click)=\"logCurrentFormState()\" mat-button type=\"button\" class=\"grow-0\">\n Current Form State\n </button>\n }\n </div>\n</div>\n", styles: ["button{overflow:hidden}button.invalid{border:6px solid darkred}\n"] }]
119
- }], ctorParameters: () => [{ type: i3.FormDirective, decorators: [{
120
- type: Inject,
121
- args: [FormDirective]
122
- }] }, { type: i0.ChangeDetectorRef, decorators: [{
123
- type: Inject,
124
- args: [ChangeDetectorRef]
125
- }] }, { type: i4.MatSnackBar, decorators: [{
126
- type: Inject,
127
- args: [MatSnackBar]
128
- }] }, { type: i5.Router, decorators: [{
129
- type: Optional
130
- }, {
131
- type: Inject,
132
- args: [Router]
133
- }] }], propDecorators: { navigateAfterSubmit: [{
134
- type: Input
135
- }], close: [{
136
- type: Output
137
- }], submitted: [{
138
- type: Output
139
- }], allowResubmit: [{
140
- type: Input
141
- }] } });
107
+ ], template: "<div class=\"flex flex-row justify-between items-center gap-8\">\n <div class=\"flex grow-0 flex-row justify-end items-center gap-8 w-full\">\n <button (click)=\"reset()\"\n [disabled]=\"submitting()\"\n class=\"grow-0\"\n mat-stroked-button\n type=\"button\">\n <ng-container i18n>Reset</ng-container>\n </button>\n <button (click)=\"cancel()\"\n [disabled]=\"submitting()\"\n color=\"warn\"\n class=\"grow-0\"\n mat-stroked-button\n type=\"button\">\n <ng-container i18n>Cancel</ng-container>\n </button>\n <button (click)=\"submit(!allowResubmit())\"\n [disabled]=\"submitting()\"\n [ngClass]=\"{ invalid: invalid() }\"\n color=\"primary\"\n class=\"grow-0\"\n mat-raised-button\n type=\"button\">\n <span class=\"flex flex-row items-center gap-2\">\n <span class=\"grow-0\">\n <ng-container i18n>Submit</ng-container>\n </span>\n @if (submitting()) {\n <mat-spinner [diameter]=\"15\" color=\"accent\" class=\"grow-0\"\n mode=\"indeterminate\"></mat-spinner>\n }\n </span>\n </button>\n @if (allowResubmit()) {\n <button (click)=\"submit(true)\"\n [disabled]=\"submitting()\"\n [ngClass]=\"{ invalid: invalid() }\"\n color=\"primary\"\n class=\"grow-0\"\n mat-raised-button\n type=\"button\">\n <span class=\"flex flex-row items-center gap-2\">\n <span class=\"grow-0\">\n <ng-container i18n>Submit and Close</ng-container>\n </span>\n @if (submitting()) {\n <mat-spinner [diameter]=\"15\" color=\"accent\" class=\"grow-0\"\n mode=\"indeterminate\"></mat-spinner>\n }\n </span>\n </button>\n }\n @if (isDevMode) {\n <button (click)=\"logCurrentFormState()\" mat-button type=\"button\" class=\"grow-0\">\n Current Form State\n </button>\n }\n </div>\n</div>\n", styles: ["button{overflow:hidden}button.invalid{border:6px solid darkred}\n"] }]
108
+ }], propDecorators: { navigateAfterSubmit: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigateAfterSubmit", required: false }] }], close: [{ type: i0.Output, args: ["close"] }], submitted: [{ type: i0.Output, args: ["submitted"] }], allowResubmit: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowResubmit", required: false }] }] } });
142
109
 
143
110
  class ChipInputAdapterDirective {
144
- constructor(matChipInput, ngControl) {
145
- this.matChipInput = matChipInput;
146
- this.ngControl = ngControl;
111
+ constructor() {
112
+ this.matChipInput = inject(MatChipInput);
113
+ this.ngControl = inject(NgControl);
147
114
  this.matChipInput.separatorKeyCodes = [ENTER, COMMA];
148
115
  this.matChipInput.addOnBlur = true;
149
116
  }
@@ -159,7 +126,7 @@ class ChipInputAdapterDirective {
159
126
  }))
160
127
  .subscribe();
161
128
  }
162
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ChipInputAdapterDirective, deps: [{ token: i1$1.MatChipInput }, { token: i2$1.NgControl }], target: i0.ɵɵFactoryTarget.Directive }); }
129
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ChipInputAdapterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
163
130
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: ChipInputAdapterDirective, isStandalone: true, selector: "[matChipInputFor][rxapChipInputAdapter]", ngImport: i0 }); }
164
131
  }
165
132
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ChipInputAdapterDirective, decorators: [{
@@ -168,7 +135,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
168
135
  selector: '[matChipInputFor][rxapChipInputAdapter]',
169
136
  standalone: true,
170
137
  }]
171
- }], ctorParameters: () => [{ type: i1$1.MatChipInput }, { type: i2$1.NgControl }] });
138
+ }], ctorParameters: () => [] });
172
139
 
173
140
  function getTypeName(type) {
174
141
  return type['name'] || typeof type;
@@ -180,11 +147,11 @@ class RecordViewTuple {
180
147
  }
181
148
  }
182
149
  class ChipListIteratorDirective {
183
- constructor(template, viewContainerRef, ngControl, differs) {
184
- this.template = template;
185
- this.viewContainerRef = viewContainerRef;
186
- this.ngControl = ngControl;
187
- this.differs = differs;
150
+ constructor() {
151
+ this.template = inject(TemplateRef);
152
+ this.viewContainerRef = inject(ViewContainerRef);
153
+ this.ngControl = inject(NgControl);
154
+ this.differs = inject(IterableDiffers);
188
155
  this._dirty = true;
189
156
  this._differ = null;
190
157
  }
@@ -252,7 +219,7 @@ class ChipListIteratorDirective {
252
219
  perViewChange(view, record) {
253
220
  view.context.$implicit = record.item;
254
221
  }
255
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ChipListIteratorDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: i2$1.NgControl }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive }); }
222
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ChipListIteratorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
256
223
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: ChipListIteratorDirective, isStandalone: true, selector: "[rxapChipListIterator]", ngImport: i0 }); }
257
224
  }
258
225
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ChipListIteratorDirective, decorators: [{
@@ -261,17 +228,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
261
228
  selector: '[rxapChipListIterator]',
262
229
  standalone: true,
263
230
  }]
264
- }], ctorParameters: () => [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: i2$1.NgControl }, { type: i0.IterableDiffers }] });
231
+ }] });
265
232
 
266
233
  class CompareWithDirective {
267
- constructor(matSelect) {
268
- this.matSelect = matSelect;
234
+ constructor() {
235
+ this.matSelect = inject(MatSelect);
236
+ this.objectPath = input.required({ ...(ngDevMode ? { debugName: "objectPath" } : /* istanbul ignore next */ {}), alias: "rxapCompareWith" });
269
237
  }
270
238
  ngOnInit() {
271
239
  this.matSelect.compareWith = this.compareWith.bind(this);
272
240
  }
273
241
  compareWith(o1, o2) {
274
- if (this.objectPath) {
242
+ const objectPath = this.objectPath();
243
+ if (objectPath) {
275
244
  if (typeof o1 !== 'object' || typeof o2 !== 'object') {
276
245
  if (isDevMode()) {
277
246
  console.warn('At least one of the select options value is not an object');
@@ -284,8 +253,8 @@ class CompareWithDirective {
284
253
  }
285
254
  return false;
286
255
  }
287
- const o1Value = getFromObject(o1, this.objectPath);
288
- const o2Value = getFromObject(o2, this.objectPath);
256
+ const o1Value = getFromObject(o1, objectPath);
257
+ const o2Value = getFromObject(o2, objectPath);
289
258
  if (o1Value === undefined || o2Value === undefined) {
290
259
  return false;
291
260
  }
@@ -295,8 +264,8 @@ class CompareWithDirective {
295
264
  return equals(o1, o2);
296
265
  }
297
266
  }
298
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: CompareWithDirective, deps: [{ token: MatSelect }], target: i0.ɵɵFactoryTarget.Directive }); }
299
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: CompareWithDirective, isStandalone: true, selector: "mat-select[rxapCompareWith]", inputs: { objectPath: ["rxapCompareWith", "objectPath"] }, ngImport: i0 }); }
267
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: CompareWithDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
268
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.9", type: CompareWithDirective, isStandalone: true, selector: "mat-select[rxapCompareWith]", inputs: { objectPath: { classPropertyName: "objectPath", publicName: "rxapCompareWith", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
300
269
  }
301
270
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: CompareWithDirective, decorators: [{
302
271
  type: Directive,
@@ -304,20 +273,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
304
273
  selector: 'mat-select[rxapCompareWith]',
305
274
  standalone: true,
306
275
  }]
307
- }], ctorParameters: () => [{ type: i1$2.MatSelect, decorators: [{
308
- type: Inject,
309
- args: [MatSelect]
310
- }] }], propDecorators: { objectPath: [{
311
- type: Input,
312
- args: ['rxapCompareWith']
313
- }] } });
276
+ }], propDecorators: { objectPath: [{ type: i0.Input, args: [{ isSignal: true, alias: "rxapCompareWith", required: true }] }] } });
314
277
 
315
278
  class ControlErrorDirective {
316
- constructor(formField, template, viewContainerRef, cdr) {
317
- this.formField = formField;
318
- this.template = template;
319
- this.viewContainerRef = viewContainerRef;
320
- this.cdr = cdr;
279
+ constructor() {
280
+ this.formField = inject(MAT_FORM_FIELD);
281
+ this.template = inject(TemplateRef);
282
+ this.viewContainerRef = inject(ViewContainerRef);
283
+ this.cdr = inject(ChangeDetectorRef);
284
+ this.key = input.required({ ...(ngDevMode ? { debugName: "key" } : /* istanbul ignore next */ {}), alias: "rxapControlErrorKey" });
321
285
  }
322
286
  static ngTemplateContextGuard(dir, ctx) {
323
287
  return true;
@@ -341,7 +305,7 @@ class ControlErrorDirective {
341
305
  this.viewContainerRef.clear();
342
306
  if (errors) {
343
307
  const errorKeys = Object.keys(errors);
344
- const matchingKey = errorKeys.find((key) => key.toLowerCase() === this.key.toLowerCase());
308
+ const matchingKey = errorKeys.find((key) => key.toLowerCase() === this.key().toLowerCase());
345
309
  if (matchingKey) {
346
310
  const error = errors[matchingKey];
347
311
  if (!this._control) {
@@ -355,8 +319,8 @@ class ControlErrorDirective {
355
319
  }
356
320
  this.cdr.detectChanges();
357
321
  }
358
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ControlErrorDirective, deps: [{ token: MAT_FORM_FIELD }, { token: TemplateRef }, { token: ViewContainerRef }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
359
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: ControlErrorDirective, isStandalone: true, selector: "[rxapControlError]", inputs: { key: ["rxapControlErrorKey", "key"] }, ngImport: i0 }); }
322
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ControlErrorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
323
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.9", type: ControlErrorDirective, isStandalone: true, selector: "[rxapControlError]", inputs: { key: { classPropertyName: "key", publicName: "rxapControlErrorKey", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
360
324
  }
361
325
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ControlErrorDirective, decorators: [{
362
326
  type: Directive,
@@ -364,32 +328,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
364
328
  selector: '[rxapControlError]',
365
329
  standalone: true,
366
330
  }]
367
- }], ctorParameters: () => [{ type: i1$3.MatFormField, decorators: [{
368
- type: Inject,
369
- args: [MAT_FORM_FIELD]
370
- }] }, { type: i0.TemplateRef, decorators: [{
371
- type: Inject,
372
- args: [TemplateRef]
373
- }] }, { type: i0.ViewContainerRef, decorators: [{
374
- type: Inject,
375
- args: [ViewContainerRef]
376
- }] }, { type: i0.ChangeDetectorRef, decorators: [{
377
- type: Inject,
378
- args: [ChangeDetectorRef]
379
- }] }], propDecorators: { key: [{
380
- type: Input,
381
- args: [{
382
- required: true,
383
- alias: 'rxapControlErrorKey',
384
- }]
385
- }] } });
331
+ }], propDecorators: { key: [{ type: i0.Input, args: [{ isSignal: true, alias: "rxapControlErrorKey", required: true }] }] } });
386
332
 
387
333
  class ControlErrorsDirective {
388
- constructor(formField, template, viewContainerRef, cdr) {
389
- this.formField = formField;
390
- this.template = template;
391
- this.viewContainerRef = viewContainerRef;
392
- this.cdr = cdr;
334
+ constructor() {
335
+ this.formField = inject(MAT_FORM_FIELD);
336
+ this.template = inject(TemplateRef);
337
+ this.viewContainerRef = inject(ViewContainerRef);
338
+ this.cdr = inject(ChangeDetectorRef);
393
339
  }
394
340
  static ngTemplateContextGuard(dir, ctx) {
395
341
  return true;
@@ -422,7 +368,7 @@ class ControlErrorsDirective {
422
368
  }
423
369
  this.cdr.detectChanges();
424
370
  }
425
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ControlErrorsDirective, deps: [{ token: MAT_FORM_FIELD }, { token: TemplateRef }, { token: ViewContainerRef }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
371
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ControlErrorsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
426
372
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: ControlErrorsDirective, isStandalone: true, selector: "[rxapControlErrors]", ngImport: i0 }); }
427
373
  }
428
374
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ControlErrorsDirective, decorators: [{
@@ -431,19 +377,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
431
377
  selector: '[rxapControlErrors]',
432
378
  standalone: true,
433
379
  }]
434
- }], ctorParameters: () => [{ type: i1$3.MatFormField, decorators: [{
435
- type: Inject,
436
- args: [MAT_FORM_FIELD]
437
- }] }, { type: i0.TemplateRef, decorators: [{
438
- type: Inject,
439
- args: [TemplateRef]
440
- }] }, { type: i0.ViewContainerRef, decorators: [{
441
- type: Inject,
442
- args: [ViewContainerRef]
443
- }] }, { type: i0.ChangeDetectorRef, decorators: [{
444
- type: Inject,
445
- args: [ChangeDetectorRef]
446
- }] }] });
380
+ }] });
447
381
 
448
382
  class ExtractHideShowMixin {
449
383
  extractOptions(formDefinition = this.formDefinition, controlId = this.control?.controlId ?? this.controlId) {
@@ -470,10 +404,10 @@ class ExtractHideShowMixin {
470
404
  }
471
405
  // TODO : create mixin for hide and show logic (this class and ControlHideShowDirective in @rxap/form-system)
472
406
  let FormFieldHideShowDirective = class FormFieldHideShowDirective {
473
- constructor(formField, renderer, elementRef) {
474
- this.formField = formField;
475
- this.renderer = renderer;
476
- this.elementRef = elementRef;
407
+ constructor() {
408
+ this.formField = inject(MAT_FORM_FIELD);
409
+ this.renderer = inject(Renderer2);
410
+ this.elementRef = inject(ElementRef);
477
411
  this.subscription = new Subscription();
478
412
  }
479
413
  ngAfterContentInit() {
@@ -547,14 +481,11 @@ let FormFieldHideShowDirective = class FormFieldHideShowDirective {
547
481
  reset() {
548
482
  this.renderer.removeStyle(this.elementRef.nativeElement, 'display');
549
483
  }
550
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: FormFieldHideShowDirective, deps: [{ token: MAT_FORM_FIELD }, { token: Renderer2 }, { token: ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
484
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: FormFieldHideShowDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
551
485
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: FormFieldHideShowDirective, isStandalone: true, selector: "mat-form-field[rxapHideShow]", ngImport: i0 }); }
552
486
  };
553
487
  FormFieldHideShowDirective = __decorate([
554
- Mixin(ExtractHideShowMixin, ExtractFormDefinitionMixin),
555
- __metadata("design:paramtypes", [MatFormField,
556
- Renderer2,
557
- ElementRef])
488
+ Mixin(ExtractHideShowMixin, ExtractFormDefinitionMixin)
558
489
  ], FormFieldHideShowDirective);
559
490
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: FormFieldHideShowDirective, decorators: [{
560
491
  type: Directive,
@@ -562,20 +493,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
562
493
  selector: 'mat-form-field[rxapHideShow]',
563
494
  standalone: true,
564
495
  }]
565
- }], ctorParameters: () => [{ type: i1$3.MatFormField, decorators: [{
566
- type: Inject,
567
- args: [MAT_FORM_FIELD]
568
- }] }, { type: i0.Renderer2, decorators: [{
569
- type: Inject,
570
- args: [Renderer2]
571
- }] }, { type: i0.ElementRef, decorators: [{
572
- type: Inject,
573
- args: [ElementRef]
574
- }] }] });
496
+ }] });
575
497
 
576
498
  class InputClearButtonDirective {
577
- constructor(formField) {
578
- this.formField = formField;
499
+ constructor() {
500
+ this.formField = inject(MAT_FORM_FIELD);
579
501
  this.type = 'button';
580
502
  this.tabIndex = '-1';
581
503
  }
@@ -599,35 +521,26 @@ class InputClearButtonDirective {
599
521
  this.control.value = null;
600
522
  }
601
523
  }
602
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: InputClearButtonDirective, deps: [{ token: MAT_FORM_FIELD }], target: i0.ɵɵFactoryTarget.Directive }); }
603
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: InputClearButtonDirective, isStandalone: true, selector: "[rxapInputClearButton]", host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.type", "attr.tabindex": "this.tabIndex", "disabled": "this.isDisabled" } }, ngImport: i0 }); }
524
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: InputClearButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
525
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: InputClearButtonDirective, isStandalone: true, selector: "[rxapInputClearButton]", host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "type", "attr.tabindex": "tabIndex", "disabled": "isDisabled" } }, ngImport: i0 }); }
604
526
  }
605
527
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: InputClearButtonDirective, decorators: [{
606
528
  type: Directive,
607
529
  args: [{
608
530
  selector: '[rxapInputClearButton]',
609
531
  standalone: true,
532
+ host: {
533
+ '[attr.type]': 'type',
534
+ '[attr.tabindex]': 'tabIndex',
535
+ '[disabled]': 'isDisabled',
536
+ '(click)': 'onClick()',
537
+ },
610
538
  }]
611
- }], ctorParameters: () => [{ type: i1$3.MatFormField, decorators: [{
612
- type: Inject,
613
- args: [MAT_FORM_FIELD]
614
- }] }], propDecorators: { type: [{
615
- type: HostBinding,
616
- args: ['attr.type']
617
- }], tabIndex: [{
618
- type: HostBinding,
619
- args: ['attr.tabindex']
620
- }], isDisabled: [{
621
- type: HostBinding,
622
- args: ['disabled']
623
- }], onClick: [{
624
- type: HostListener,
625
- args: ['click']
626
- }] } });
539
+ }] });
627
540
 
628
541
  class RequiredDirective {
629
- constructor(formField) {
630
- this.formField = formField;
542
+ constructor() {
543
+ this.formField = inject(MAT_FORM_FIELD);
631
544
  }
632
545
  ngAfterContentInit() {
633
546
  const control = this.formField._control.ngControl?.control;
@@ -641,7 +554,7 @@ class RequiredDirective {
641
554
  throw new Error('The form field has not a control associated!');
642
555
  }
643
556
  }
644
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RequiredDirective, deps: [{ token: MAT_FORM_FIELD }], target: i0.ɵɵFactoryTarget.Directive }); }
557
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RequiredDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
645
558
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: RequiredDirective, isStandalone: true, selector: "[formControlName][rxapRequired],[formControl][rxapRequired]", ngImport: i0 }); }
646
559
  }
647
560
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RequiredDirective, decorators: [{
@@ -650,42 +563,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
650
563
  selector: '[formControlName][rxapRequired],[formControl][rxapRequired]',
651
564
  standalone: true,
652
565
  }]
653
- }], ctorParameters: () => [{ type: i1$3.MatFormField, decorators: [{
654
- type: Inject,
655
- args: [MAT_FORM_FIELD]
656
- }] }] });
657
-
658
- class MaterialFormSystemModule {
659
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: MaterialFormSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
660
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: MaterialFormSystemModule, imports: [ControlErrorDirective,
661
- ControlErrorsDirective,
662
- InputClearButtonDirective,
663
- RequiredDirective,
664
- FormFieldHideShowDirective], exports: [ControlErrorDirective,
665
- ControlErrorsDirective,
666
- InputClearButtonDirective,
667
- RequiredDirective,
668
- FormFieldHideShowDirective] }); }
669
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: MaterialFormSystemModule }); }
670
- }
671
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: MaterialFormSystemModule, decorators: [{
672
- type: NgModule,
673
- args: [{
674
- exports: [
675
- ControlErrorDirective,
676
- ControlErrorsDirective,
677
- InputClearButtonDirective,
678
- RequiredDirective,
679
- FormFieldHideShowDirective,
680
- ],
681
- imports: [
682
- ControlErrorDirective,
683
- ControlErrorsDirective,
684
- InputClearButtonDirective,
685
- RequiredDirective,
686
- FormFieldHideShowDirective,
687
- ],
688
- }]
689
566
  }] });
690
567
 
691
568
  // region form-controls
@@ -695,5 +572,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
695
572
  * Generated bundle index. Do not edit.
696
573
  */
697
574
 
698
- export { ChipInputAdapterDirective, ChipListIteratorDirective, CompareWithDirective, ControlErrorDirective, ControlErrorsDirective, ExtractHideShowMixin, FormControlsComponent, FormFieldHideShowDirective, InputClearButtonDirective, MaterialFormSystemModule, RequiredDirective };
575
+ export { ChipInputAdapterDirective, ChipListIteratorDirective, CompareWithDirective, ControlErrorDirective, ControlErrorsDirective, ExtractHideShowMixin, FormControlsComponent, FormFieldHideShowDirective, InputClearButtonDirective, RequiredDirective };
699
576
  //# sourceMappingURL=rxap-material-form-system.mjs.map