@rxap/material-form-system 16.0.0-dev.2 → 16.0.0-dev.21

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 (33) hide show
  1. package/CHANGELOG.md +590 -0
  2. package/LICENSE +621 -27
  3. package/LICENSE.md +621 -0
  4. package/README.md +7 -22
  5. package/esm2022/index.mjs +2 -1
  6. package/esm2022/lib/chip-input-adapter.directive.mjs +9 -10
  7. package/esm2022/lib/chip-list-iterator.directive.mjs +13 -12
  8. package/esm2022/lib/compare-with.directive.mjs +8 -9
  9. package/esm2022/lib/control-error.directive.mjs +18 -23
  10. package/esm2022/lib/control-errors.directive.mjs +14 -16
  11. package/esm2022/lib/form-controls/form-controls.component.mjs +25 -25
  12. package/esm2022/lib/form-field-hide-show.directive.mjs +13 -14
  13. package/esm2022/lib/input-clear-button.directive.mjs +13 -14
  14. package/esm2022/lib/material-form-system.module.mjs +40 -0
  15. package/esm2022/lib/required.directive.mjs +8 -9
  16. package/esm2022/rxap-material-form-system.mjs +1 -1
  17. package/fesm2022/rxap-material-form-system.mjs +115 -82
  18. package/fesm2022/rxap-material-form-system.mjs.map +1 -1
  19. package/index.d.ts +1 -0
  20. package/lib/control-error.directive.d.ts +5 -5
  21. package/lib/control-errors.directive.d.ts +4 -4
  22. package/lib/form-controls/form-controls.component.d.ts +5 -6
  23. package/lib/form-field-hide-show.directive.d.ts +1 -1
  24. package/lib/input-clear-button.directive.d.ts +1 -1
  25. package/lib/material-form-system.module.d.ts +11 -0
  26. package/package.json +66 -57
  27. package/theme.css +1 -0
  28. package/collection.json +0 -10
  29. package/migration.json +0 -4
  30. package/src/schematics/ng-add/index.d.ts +0 -2
  31. package/src/schematics/ng-add/index.js +0 -8
  32. package/src/schematics/ng-add/index.js.map +0 -1
  33. package/src/schematics/ng-add/schema.json +0 -7
@@ -1,22 +1,22 @@
1
- import { __decorate, __metadata } from 'tslib';
2
1
  import * as i0 from '@angular/core';
3
- import { TemplateRef, ViewContainerRef, ChangeDetectorRef, Directive, Inject, Input, HostBinding, HostListener, isDevMode, Renderer2, ElementRef, EventEmitter, Component, ChangeDetectionStrategy, Optional, Output } from '@angular/core';
2
+ import { TemplateRef, ViewContainerRef, ChangeDetectorRef, Directive, Inject, Input, HostBinding, HostListener, isDevMode, Renderer2, ElementRef, EventEmitter, Component, ChangeDetectionStrategy, Optional, Output, NgModule } from '@angular/core';
4
3
  import * as i1 from '@angular/material/form-field';
5
4
  import { MAT_FORM_FIELD, MatFormField } from '@angular/material/form-field';
6
5
  import * as i5 from '@rxap/forms';
7
6
  import { controlErrorChanges$, RxapFormControl, FormDirective } from '@rxap/forms';
8
7
  import { tap, startWith, catchError, take, filter } from 'rxjs/operators';
9
- import { Required, getFromObject, equals, coerceBoolean, clone, unique } from '@rxap/utilities';
10
8
  import * as i1$1 from '@angular/material/select';
11
9
  import { MatSelect } from '@angular/material/select';
10
+ import { getFromObject, equals, coerceBoolean, clone, unique } from '@rxap/utilities';
11
+ import { __decorate, __metadata } from 'tslib';
12
12
  import { Subscription, of } from 'rxjs';
13
13
  import { RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS, RXAP_FORM_SYSTEM_HIDE_METADATA, RXAP_FORM_SYSTEM_SHOW_METADATA, ExtractFormDefinitionMixin } from '@rxap/form-system';
14
14
  import { Mixin } from '@rxap/mixin';
15
- import { getMetadata } from '@rxap/utilities/reflect-metadata';
15
+ import { getMetadata } from '@rxap/reflect-metadata';
16
16
  import * as i7 from '@angular/router';
17
17
  import { Router } from '@angular/router';
18
18
  import * as i6 from '@angular/material/snack-bar';
19
- import { MatSnackBar } from '@angular/material/snack-bar';
19
+ import { MatSnackBar, MatSnackBarModule } from '@angular/material/snack-bar';
20
20
  import * as i4 from '@angular/material/progress-spinner';
21
21
  import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
22
22
  import { NgClass, NgIf, AsyncPipe } from '@angular/common';
@@ -26,22 +26,20 @@ import * as i2 from '@angular/material/button';
26
26
  import { MatButtonModule } from '@angular/material/button';
27
27
  import * as i1$2 from '@angular/flex-layout/flex';
28
28
  import { FlexModule } from '@angular/flex-layout/flex';
29
- import '@angular/localize/init';
30
29
  import { ENTER, COMMA } from '@angular/cdk/keycodes';
31
30
  import * as i2$1 from '@angular/forms';
32
31
  import * as i1$3 from '@angular/material/chips';
33
- import { log } from '@rxap/utilities/rxjs';
34
32
 
35
33
  class ControlErrorDirective {
36
- static ngTemplateContextGuard(dir, ctx) {
37
- return true;
38
- }
39
34
  constructor(formField, template, viewContainerRef, cdr) {
40
35
  this.formField = formField;
41
36
  this.template = template;
42
37
  this.viewContainerRef = viewContainerRef;
43
38
  this.cdr = cdr;
44
39
  }
40
+ static ngTemplateContextGuard(dir, ctx) {
41
+ return true;
42
+ }
45
43
  ngAfterContentInit() {
46
44
  const control = this.formField._control.ngControl?.control;
47
45
  if (control) {
@@ -54,6 +52,9 @@ class ControlErrorDirective {
54
52
  throw new Error('The form field has not a control associated!');
55
53
  }
56
54
  }
55
+ ngOnDestroy() {
56
+ this._subscription?.unsubscribe();
57
+ }
57
58
  render(errors) {
58
59
  this.viewContainerRef.clear();
59
60
  if (errors) {
@@ -72,22 +73,14 @@ class ControlErrorDirective {
72
73
  }
73
74
  this.cdr.detectChanges();
74
75
  }
75
- ngOnDestroy() {
76
- this._subscription?.unsubscribe();
77
- }
78
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ControlErrorDirective, deps: [{ token: MAT_FORM_FIELD }, { token: TemplateRef }, { token: ViewContainerRef }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
79
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: ControlErrorDirective, isStandalone: true, selector: "[rxapControlError]", inputs: { key: ["rxapControlErrorKey", "key"] }, ngImport: i0 }); }
76
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ControlErrorDirective, deps: [{ token: MAT_FORM_FIELD }, { token: TemplateRef }, { token: ViewContainerRef }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
77
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: ControlErrorDirective, isStandalone: true, selector: "[rxapControlError]", inputs: { key: ["rxapControlErrorKey", "key"] }, ngImport: i0 }); }
80
78
  }
81
- __decorate([
82
- Required,
83
- __metadata("design:type", String)
84
- ], ControlErrorDirective.prototype, "key", void 0);
85
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ControlErrorDirective, decorators: [{
79
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ControlErrorDirective, decorators: [{
86
80
  type: Directive,
87
81
  args: [{
88
- // tslint:disable-next-line:directive-selector
89
82
  selector: '[rxapControlError]',
90
- standalone: true
83
+ standalone: true,
91
84
  }]
92
85
  }], ctorParameters: function () { return [{ type: i1.MatFormField, decorators: [{
93
86
  type: Inject,
@@ -103,19 +96,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
103
96
  args: [ChangeDetectorRef]
104
97
  }] }]; }, propDecorators: { key: [{
105
98
  type: Input,
106
- args: ['rxapControlErrorKey']
99
+ args: [{
100
+ required: true,
101
+ alias: 'rxapControlErrorKey',
102
+ }]
107
103
  }] } });
108
104
 
109
105
  class ControlErrorsDirective {
110
- static ngTemplateContextGuard(dir, ctx) {
111
- return true;
112
- }
113
106
  constructor(formField, template, viewContainerRef, cdr) {
114
107
  this.formField = formField;
115
108
  this.template = template;
116
109
  this.viewContainerRef = viewContainerRef;
117
110
  this.cdr = cdr;
118
111
  }
112
+ static ngTemplateContextGuard(dir, ctx) {
113
+ return true;
114
+ }
119
115
  ngAfterContentInit() {
120
116
  const control = this.formField._control.ngControl?.control;
121
117
  if (control) {
@@ -128,6 +124,9 @@ class ControlErrorsDirective {
128
124
  throw new Error('The form field has not a control associated!');
129
125
  }
130
126
  }
127
+ ngOnDestroy() {
128
+ this._subscription?.unsubscribe();
129
+ }
131
130
  render(errors) {
132
131
  this.viewContainerRef.clear();
133
132
  if (errors) {
@@ -141,18 +140,14 @@ class ControlErrorsDirective {
141
140
  }
142
141
  this.cdr.detectChanges();
143
142
  }
144
- ngOnDestroy() {
145
- this._subscription?.unsubscribe();
146
- }
147
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ControlErrorsDirective, deps: [{ token: MAT_FORM_FIELD }, { token: TemplateRef }, { token: ViewContainerRef }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
148
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: ControlErrorsDirective, isStandalone: true, selector: "[rxapControlErrors]", ngImport: i0 }); }
143
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ControlErrorsDirective, deps: [{ token: MAT_FORM_FIELD }, { token: TemplateRef }, { token: ViewContainerRef }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
144
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: ControlErrorsDirective, isStandalone: true, selector: "[rxapControlErrors]", ngImport: i0 }); }
149
145
  }
150
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ControlErrorsDirective, decorators: [{
146
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ControlErrorsDirective, decorators: [{
151
147
  type: Directive,
152
148
  args: [{
153
- // tslint:disable-next-line:directive-selector
154
149
  selector: '[rxapControlErrors]',
155
- standalone: true
150
+ standalone: true,
156
151
  }]
157
152
  }], ctorParameters: function () { return [{ type: i1.MatFormField, decorators: [{
158
153
  type: Inject,
@@ -169,17 +164,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
169
164
  }] }]; } });
170
165
 
171
166
  class InputClearButtonDirective {
167
+ constructor(formField) {
168
+ this.formField = formField;
169
+ this.type = 'button';
170
+ this.tabIndex = '-1';
171
+ }
172
172
  get control() {
173
173
  return this.formField._control;
174
174
  }
175
175
  get isDisabled() {
176
176
  return this.control.disabled;
177
177
  }
178
- constructor(formField) {
179
- this.formField = formField;
180
- this.type = 'button';
181
- this.tabIndex = '-1';
182
- }
183
178
  onClick() {
184
179
  if (this.control.ngControl) {
185
180
  this.control.ngControl.reset();
@@ -188,14 +183,14 @@ class InputClearButtonDirective {
188
183
  this.control.value = null;
189
184
  }
190
185
  }
191
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: InputClearButtonDirective, deps: [{ token: MAT_FORM_FIELD }], target: i0.ɵɵFactoryTarget.Directive }); }
192
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: InputClearButtonDirective, isStandalone: true, selector: "[rxapInputClearButton]", host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.type", "attr.tabindex": "this.tabIndex", "disabled": "this.isDisabled" } }, ngImport: i0 }); }
186
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: InputClearButtonDirective, deps: [{ token: MAT_FORM_FIELD }], target: i0.ɵɵFactoryTarget.Directive }); }
187
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: InputClearButtonDirective, isStandalone: true, selector: "[rxapInputClearButton]", host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.type", "attr.tabindex": "this.tabIndex", "disabled": "this.isDisabled" } }, ngImport: i0 }); }
193
188
  }
194
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: InputClearButtonDirective, decorators: [{
189
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: InputClearButtonDirective, decorators: [{
195
190
  type: Directive,
196
191
  args: [{
197
192
  selector: '[rxapInputClearButton]',
198
- standalone: true
193
+ standalone: true,
199
194
  }]
200
195
  }], ctorParameters: function () { return [{ type: i1.MatFormField, decorators: [{
201
196
  type: Inject,
@@ -230,14 +225,14 @@ class RequiredDirective {
230
225
  throw new Error('The form field has not a control associated!');
231
226
  }
232
227
  }
233
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: RequiredDirective, deps: [{ token: MAT_FORM_FIELD }], target: i0.ɵɵFactoryTarget.Directive }); }
234
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: RequiredDirective, isStandalone: true, selector: "[formControlName][rxapRequired]", ngImport: i0 }); }
228
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RequiredDirective, deps: [{ token: MAT_FORM_FIELD }], target: i0.ɵɵFactoryTarget.Directive }); }
229
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: RequiredDirective, isStandalone: true, selector: "[formControlName][rxapRequired]", ngImport: i0 }); }
235
230
  }
236
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: RequiredDirective, decorators: [{
231
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RequiredDirective, decorators: [{
237
232
  type: Directive,
238
233
  args: [{
239
234
  selector: '[formControlName][rxapRequired]',
240
- standalone: true
235
+ standalone: true,
241
236
  }]
242
237
  }], ctorParameters: function () { return [{ type: i1.MatFormField, decorators: [{
243
238
  type: Inject,
@@ -276,14 +271,14 @@ class CompareWithDirective {
276
271
  return equals(o1, o2);
277
272
  }
278
273
  }
279
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: CompareWithDirective, deps: [{ token: MatSelect }], target: i0.ɵɵFactoryTarget.Directive }); }
280
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: CompareWithDirective, isStandalone: true, selector: "mat-select[rxapCompareWith]", inputs: { objectPath: ["rxapCompareWith", "objectPath"] }, ngImport: i0 }); }
274
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CompareWithDirective, deps: [{ token: MatSelect }], target: i0.ɵɵFactoryTarget.Directive }); }
275
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: CompareWithDirective, isStandalone: true, selector: "mat-select[rxapCompareWith]", inputs: { objectPath: ["rxapCompareWith", "objectPath"] }, ngImport: i0 }); }
281
276
  }
282
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: CompareWithDirective, decorators: [{
277
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CompareWithDirective, decorators: [{
283
278
  type: Directive,
284
279
  args: [{
285
280
  selector: 'mat-select[rxapCompareWith]',
286
- standalone: true
281
+ standalone: true,
287
282
  }]
288
283
  }], ctorParameters: function () { return [{ type: i1$1.MatSelect, decorators: [{
289
284
  type: Inject,
@@ -395,8 +390,8 @@ let FormFieldHideShowDirective = class FormFieldHideShowDirective {
395
390
  reset() {
396
391
  this.renderer.removeStyle(this.elementRef.nativeElement, 'display');
397
392
  }
398
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormFieldHideShowDirective, deps: [{ token: MAT_FORM_FIELD }, { token: Renderer2 }, { token: ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
399
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormFieldHideShowDirective, isStandalone: true, selector: "mat-form-field[rxapHideShow]", ngImport: i0 }); }
393
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormFieldHideShowDirective, deps: [{ token: MAT_FORM_FIELD }, { token: Renderer2 }, { token: ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
394
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: FormFieldHideShowDirective, isStandalone: true, selector: "mat-form-field[rxapHideShow]", ngImport: i0 }); }
400
395
  };
401
396
  FormFieldHideShowDirective = __decorate([
402
397
  Mixin(ExtractHideShowMixin, ExtractFormDefinitionMixin),
@@ -404,11 +399,11 @@ FormFieldHideShowDirective = __decorate([
404
399
  Renderer2,
405
400
  ElementRef])
406
401
  ], FormFieldHideShowDirective);
407
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormFieldHideShowDirective, decorators: [{
402
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormFieldHideShowDirective, decorators: [{
408
403
  type: Directive,
409
404
  args: [{
410
405
  selector: 'mat-form-field[rxapHideShow]',
411
- standalone: true
406
+ standalone: true,
412
407
  }]
413
408
  }], ctorParameters: function () { return [{ type: i1.MatFormField, decorators: [{
414
409
  type: Inject,
@@ -422,18 +417,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
422
417
  }] }]; } });
423
418
 
424
419
  class FormControlsComponent {
425
- set allowResubmit(value) {
426
- this._allowResubmit = coerceBoolean(value);
427
- }
428
- get allowResubmit() {
429
- return this._allowResubmit;
430
- }
431
420
  constructor(formDirective, cdr, snackBar, router) {
432
421
  this.formDirective = formDirective;
433
422
  this.cdr = cdr;
434
423
  this.snackBar = snackBar;
435
424
  this.router = router;
436
- this._allowResubmit = false;
437
425
  this.invalid = false;
438
426
  this.close = new EventEmitter();
439
427
  this.submitted = new EventEmitter();
@@ -443,6 +431,13 @@ class FormControlsComponent {
443
431
  * @private
444
432
  */
445
433
  this._submitted = [];
434
+ this._allowResubmit = false;
435
+ }
436
+ get allowResubmit() {
437
+ return this._allowResubmit;
438
+ }
439
+ set allowResubmit(value) {
440
+ this._allowResubmit = coerceBoolean(value);
446
441
  }
447
442
  ngOnInit() {
448
443
  this.submitting$ = this.formDirective.submitting$;
@@ -471,6 +466,7 @@ class FormControlsComponent {
471
466
  this.formDirective.form.markAllAsDirty();
472
467
  this.formDirective.form.markAllAsTouched();
473
468
  this.formDirective.cdr.markForCheck();
469
+ // eslint-disable-next-line prefer-const
474
470
  let submitSubscription;
475
471
  const invalidSubmitSubscription = this.formDirective.invalidSubmit
476
472
  .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 })))
@@ -498,20 +494,21 @@ class FormControlsComponent {
498
494
  logCurrentFormState() {
499
495
  console.log(clone(this.formDirective.form.value));
500
496
  }
501
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormControlsComponent, deps: [{ token: FormDirective }, { token: ChangeDetectorRef }, { token: MatSnackBar }, { token: Router, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
502
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: FormControlsComponent, isStandalone: true, selector: "rxap-form-controls", inputs: { allowResubmit: "allowResubmit", navigateAfterSubmit: "navigateAfterSubmit" }, outputs: { close: "close", submitted: "submitted" }, host: { classAttribute: "mfd-form-controls" }, ngImport: i0, template: "<div fxLayout=\"row\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"32px\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"end center\" fxLayoutGap=\"32px\" style=\"width: 100%\">\n <button (click)=\"reset()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n fxFlex=\"nogrow\"\n mat-stroked-button>\n <ng-container i18n>Reset</ng-container>\n </button>\n <button (click)=\"cancel()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"warn\" fxFlex=\"nogrow\"\n mat-stroked-button>\n <ng-container i18n>Cancel</ng-container>\n </button>\n <button (click)=\"submit(!allowResubmit)\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\">\n <ng-container i18n>Submit</ng-container>\n </span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"allowResubmit\" (click)=\"submit(true)\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n [disabled]=\"submitting$ | async\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\">\n <ng-container i18n>Submit and Close</ng-container>\n </span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"isDevMode\" type=\"button\" mat-button fxFlex=\"nogrow\" (click)=\"logCurrentFormState()\">Current Form State</button>\n </div>\n</div>\n", styles: ["button{overflow:hidden}button.invalid{border:6px solid darkred}\n"], dependencies: [{ kind: "ngmodule", type: FlexModule }, { kind: "directive", type: i1$2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i1$2.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i1$2.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i1$2.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: ExtendedModule }, { kind: "directive", type: i3.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }, { kind: "directive", type: i3.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
497
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormControlsComponent, deps: [{ token: FormDirective }, { token: ChangeDetectorRef }, { token: MatSnackBar }, { token: Router, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
498
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: FormControlsComponent, isStandalone: true, selector: "rxap-form-controls", inputs: { navigateAfterSubmit: "navigateAfterSubmit", allowResubmit: "allowResubmit" }, outputs: { close: "close", submitted: "submitted" }, ngImport: i0, template: "<div fxLayout=\"row\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"32px\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"end center\" fxLayoutGap=\"32px\" style=\"width: 100%\">\n <button (click)=\"reset()\"\n [disabled]=\"submitting$ | async\"\n fxFlex=\"nogrow\"\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 fxFlex=\"nogrow\" 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 fxFlex=\"nogrow\"\n mat-raised-button\n type=\"button\">\n <span fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"4px\">\n <span fxFlex=\"nogrow\">\n <ng-container i18n>Submit</ng-container>\n </span>\n <mat-spinner [diameter]=\"15\" [fxShow]=\"submitting$ | async\" color=\"accent\" fxFlex=\"nogrow\"\n mode=\"indeterminate\"></mat-spinner>\n </span>\n </button>\n <button (click)=\"submit(true)\" *ngIf=\"allowResubmit\"\n [disabled]=\"submitting$ | async\"\n [ngClass]=\"{ invalid: invalid }\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n mat-raised-button\n type=\"button\">\n <span fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"4px\">\n <span fxFlex=\"nogrow\">\n <ng-container i18n>Submit and Close</ng-container>\n </span>\n <mat-spinner [diameter]=\"15\" [fxShow]=\"submitting$ | async\" color=\"accent\" fxFlex=\"nogrow\"\n mode=\"indeterminate\"></mat-spinner>\n </span>\n </button>\n <button (click)=\"logCurrentFormState()\" *ngIf=\"isDevMode\" fxFlex=\"nogrow\" mat-button type=\"button\">Current Form\n State\n </button>\n </div>\n</div>\n", styles: ["button{overflow:hidden}button.invalid{border:6px solid darkred}\n"], dependencies: [{ kind: "ngmodule", type: FlexModule }, { kind: "directive", type: i1$2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i1$2.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i1$2.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i1$2.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: ExtendedModule }, { kind: "directive", type: i3.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }, { kind: "directive", type: i3.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "ngmodule", type: MatSnackBarModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
503
499
  }
504
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormControlsComponent, decorators: [{
500
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FormControlsComponent, decorators: [{
505
501
  type: Component,
506
- args: [{ selector: 'rxap-form-controls', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'mfd-form-controls' }, standalone: true, imports: [
502
+ args: [{ selector: 'rxap-form-controls', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
507
503
  FlexModule,
508
504
  MatButtonModule,
509
505
  ExtendedModule,
510
506
  NgClass,
511
507
  MatProgressSpinnerModule,
512
508
  NgIf,
513
- AsyncPipe
514
- ], template: "<div fxLayout=\"row\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"32px\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"end center\" fxLayoutGap=\"32px\" style=\"width: 100%\">\n <button (click)=\"reset()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n fxFlex=\"nogrow\"\n mat-stroked-button>\n <ng-container i18n>Reset</ng-container>\n </button>\n <button (click)=\"cancel()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"warn\" fxFlex=\"nogrow\"\n mat-stroked-button>\n <ng-container i18n>Cancel</ng-container>\n </button>\n <button (click)=\"submit(!allowResubmit)\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\">\n <ng-container i18n>Submit</ng-container>\n </span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"allowResubmit\" (click)=\"submit(true)\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n [disabled]=\"submitting$ | async\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\">\n <ng-container i18n>Submit and Close</ng-container>\n </span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"isDevMode\" type=\"button\" mat-button fxFlex=\"nogrow\" (click)=\"logCurrentFormState()\">Current Form State</button>\n </div>\n</div>\n", styles: ["button{overflow:hidden}button.invalid{border:6px solid darkred}\n"] }]
509
+ AsyncPipe,
510
+ MatSnackBarModule,
511
+ ], template: "<div fxLayout=\"row\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"32px\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"end center\" fxLayoutGap=\"32px\" style=\"width: 100%\">\n <button (click)=\"reset()\"\n [disabled]=\"submitting$ | async\"\n fxFlex=\"nogrow\"\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 fxFlex=\"nogrow\" 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 fxFlex=\"nogrow\"\n mat-raised-button\n type=\"button\">\n <span fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"4px\">\n <span fxFlex=\"nogrow\">\n <ng-container i18n>Submit</ng-container>\n </span>\n <mat-spinner [diameter]=\"15\" [fxShow]=\"submitting$ | async\" color=\"accent\" fxFlex=\"nogrow\"\n mode=\"indeterminate\"></mat-spinner>\n </span>\n </button>\n <button (click)=\"submit(true)\" *ngIf=\"allowResubmit\"\n [disabled]=\"submitting$ | async\"\n [ngClass]=\"{ invalid: invalid }\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n mat-raised-button\n type=\"button\">\n <span fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"4px\">\n <span fxFlex=\"nogrow\">\n <ng-container i18n>Submit and Close</ng-container>\n </span>\n <mat-spinner [diameter]=\"15\" [fxShow]=\"submitting$ | async\" color=\"accent\" fxFlex=\"nogrow\"\n mode=\"indeterminate\"></mat-spinner>\n </span>\n </button>\n <button (click)=\"logCurrentFormState()\" *ngIf=\"isDevMode\" fxFlex=\"nogrow\" mat-button type=\"button\">Current Form\n State\n </button>\n </div>\n</div>\n", styles: ["button{overflow:hidden}button.invalid{border:6px solid darkred}\n"] }]
515
512
  }], ctorParameters: function () { return [{ type: i5.FormDirective, decorators: [{
516
513
  type: Inject,
517
514
  args: [FormDirective]
@@ -526,14 +523,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
526
523
  }, {
527
524
  type: Inject,
528
525
  args: [Router]
529
- }] }]; }, propDecorators: { allowResubmit: [{
530
- type: Input
531
- }], navigateAfterSubmit: [{
526
+ }] }]; }, propDecorators: { navigateAfterSubmit: [{
532
527
  type: Input
533
528
  }], close: [{
534
529
  type: Output
535
530
  }], submitted: [{
536
531
  type: Output
532
+ }], allowResubmit: [{
533
+ type: Input
537
534
  }] } });
538
535
 
539
536
  class ChipInputAdapterDirective {
@@ -555,14 +552,14 @@ class ChipInputAdapterDirective {
555
552
  }))
556
553
  .subscribe();
557
554
  }
558
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ChipInputAdapterDirective, deps: [{ token: i1$3.MatChipInput }, { token: i2$1.NgControl }], target: i0.ɵɵFactoryTarget.Directive }); }
559
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: ChipInputAdapterDirective, isStandalone: true, selector: "[matChipInputFor][rxapChipInputAdapter]", ngImport: i0 }); }
555
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ChipInputAdapterDirective, deps: [{ token: i1$3.MatChipInput }, { token: i2$1.NgControl }], target: i0.ɵɵFactoryTarget.Directive }); }
556
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: ChipInputAdapterDirective, isStandalone: true, selector: "[matChipInputFor][rxapChipInputAdapter]", ngImport: i0 }); }
560
557
  }
561
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ChipInputAdapterDirective, decorators: [{
558
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ChipInputAdapterDirective, decorators: [{
562
559
  type: Directive,
563
560
  args: [{
564
561
  selector: '[matChipInputFor][rxapChipInputAdapter]',
565
- standalone: true
562
+ standalone: true,
566
563
  }]
567
564
  }], ctorParameters: function () { return [{ type: i1$3.MatChipInput }, { type: i2$1.NgControl }]; } });
568
565
 
@@ -586,7 +583,7 @@ class ChipListIteratorDirective {
586
583
  }
587
584
  ngOnInit() {
588
585
  this._subscription = this.ngControl.valueChanges
589
- ?.pipe(startWith(this.ngControl.value), log('test'), filter((value) => Array.isArray(value)), tap((items) => {
586
+ ?.pipe(startWith(this.ngControl.value), filter((value) => Array.isArray(value)), tap((items) => {
590
587
  this._dirty = false;
591
588
  // React on ngForOf changes only once all inputs have been initialized
592
589
  const value = items;
@@ -617,7 +614,10 @@ class ChipListIteratorDirective {
617
614
  // NgForOf is never "null" or "undefined" here because the differ detected
618
615
  // that a new item needs to be inserted from the iterable. This implies that
619
616
  // there is an iterable value for "_ngForOf".
620
- const view = this.viewContainerRef.createEmbeddedView(this.template, { $implicit: item.item, onRemoved: this.onRemoved.bind(this) }, currentIndex === null ? undefined : currentIndex);
617
+ const view = this.viewContainerRef.createEmbeddedView(this.template, {
618
+ $implicit: item.item,
619
+ onRemoved: this.onRemoved.bind(this),
620
+ }, currentIndex === null ? undefined : currentIndex);
621
621
  const tuple = new RecordViewTuple(item, view);
622
622
  insertTuples.push(tuple);
623
623
  }
@@ -645,20 +645,53 @@ class ChipListIteratorDirective {
645
645
  perViewChange(view, record) {
646
646
  view.context.$implicit = record.item;
647
647
  }
648
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ChipListIteratorDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: i2$1.NgControl }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive }); }
649
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: ChipListIteratorDirective, isStandalone: true, selector: "[rxapChipListIterator]", ngImport: i0 }); }
648
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ChipListIteratorDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: i2$1.NgControl }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive }); }
649
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: ChipListIteratorDirective, isStandalone: true, selector: "[rxapChipListIterator]", ngImport: i0 }); }
650
650
  }
651
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ChipListIteratorDirective, decorators: [{
651
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ChipListIteratorDirective, decorators: [{
652
652
  type: Directive,
653
653
  args: [{
654
654
  selector: '[rxapChipListIterator]',
655
- standalone: true
655
+ standalone: true,
656
656
  }]
657
657
  }], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: i2$1.NgControl }, { type: i0.IterableDiffers }]; } });
658
658
 
659
+ class MaterialFormSystemModule {
660
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MaterialFormSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
661
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: MaterialFormSystemModule, imports: [ControlErrorDirective,
662
+ ControlErrorsDirective,
663
+ InputClearButtonDirective,
664
+ RequiredDirective,
665
+ FormFieldHideShowDirective], exports: [ControlErrorDirective,
666
+ ControlErrorsDirective,
667
+ InputClearButtonDirective,
668
+ RequiredDirective,
669
+ FormFieldHideShowDirective] }); }
670
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MaterialFormSystemModule }); }
671
+ }
672
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MaterialFormSystemModule, decorators: [{
673
+ type: NgModule,
674
+ args: [{
675
+ exports: [
676
+ ControlErrorDirective,
677
+ ControlErrorsDirective,
678
+ InputClearButtonDirective,
679
+ RequiredDirective,
680
+ FormFieldHideShowDirective,
681
+ ],
682
+ imports: [
683
+ ControlErrorDirective,
684
+ ControlErrorsDirective,
685
+ InputClearButtonDirective,
686
+ RequiredDirective,
687
+ FormFieldHideShowDirective,
688
+ ],
689
+ }]
690
+ }] });
691
+
659
692
  /**
660
693
  * Generated bundle index. Do not edit.
661
694
  */
662
695
 
663
- export { ChipInputAdapterDirective, ChipListIteratorDirective, CompareWithDirective, ControlErrorDirective, ControlErrorsDirective, ExtractHideShowMixin, FormControlsComponent, FormFieldHideShowDirective, InputClearButtonDirective, RequiredDirective };
696
+ export { ChipInputAdapterDirective, ChipListIteratorDirective, CompareWithDirective, ControlErrorDirective, ControlErrorsDirective, ExtractHideShowMixin, FormControlsComponent, FormFieldHideShowDirective, InputClearButtonDirective, MaterialFormSystemModule, RequiredDirective };
664
697
  //# sourceMappingURL=rxap-material-form-system.mjs.map