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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/compodoc/changelog.html +28 -0
  3. package/compodoc/dependencies.html +12 -12
  4. package/compodoc/js/search/search_index.js +2 -2
  5. package/compodoc/properties.html +1 -1
  6. package/docs/documentation.json +138 -118
  7. package/docs/html/classes/ChipInputAdapterDirective.html +4 -4
  8. package/docs/html/classes/ChipListIteratorDirective.html +4 -4
  9. package/docs/html/classes/CompareWithDirective.html +3 -3
  10. package/docs/html/classes/ControlErrorDirective.html +4 -4
  11. package/docs/html/classes/ControlErrorsDirective.html +4 -4
  12. package/docs/html/classes/ExtractHideShowMixin.html +2 -2
  13. package/docs/html/classes/FormControlsComponent.html +3 -3
  14. package/docs/html/classes/FormFieldHideShowDirective.html +5 -5
  15. package/docs/html/classes/InputClearButtonDirective.html +2 -2
  16. package/docs/html/classes/RequiredDirective.html +2 -2
  17. package/docs/html/hierarchy.html +1 -1
  18. package/docs/html/index.html +2 -2
  19. package/docs/html/interfaces/ChipListTemplateContext.html +2 -2
  20. package/docs/html/interfaces/ControlErrorDirectiveContext.html +2 -2
  21. package/docs/html/interfaces/ControlErrorsDirectiveContext.html +2 -2
  22. package/docs/html/modules.html +1 -1
  23. package/docs/markdown/README.md +1 -1
  24. package/docs/markdown/classes/ChipInputAdapterDirective.md +5 -5
  25. package/docs/markdown/classes/ChipListIteratorDirective.md +5 -5
  26. package/docs/markdown/classes/CompareWithDirective.md +4 -4
  27. package/docs/markdown/classes/ControlErrorDirective.md +10 -10
  28. package/docs/markdown/classes/ControlErrorsDirective.md +9 -9
  29. package/docs/markdown/classes/ExtractHideShowMixin.md +8 -8
  30. package/docs/markdown/classes/FormControlsComponent.md +14 -14
  31. package/docs/markdown/classes/FormFieldHideShowDirective.md +12 -12
  32. package/docs/markdown/classes/InputClearButtonDirective.md +9 -9
  33. package/docs/markdown/classes/RequiredDirective.md +3 -3
  34. package/docs/markdown/globals.md +2 -2
  35. package/docs/markdown/interfaces/ChipListTemplateContext.md +4 -4
  36. package/docs/markdown/interfaces/ControlErrorDirectiveContext.md +4 -4
  37. package/docs/markdown/interfaces/ControlErrorsDirectiveContext.md +4 -4
  38. package/docs/wiki/Class.ChipInputAdapterDirective.md +4 -4
  39. package/docs/wiki/Class.ChipListIteratorDirective.md +4 -4
  40. package/docs/wiki/Class.CompareWithDirective.md +3 -3
  41. package/docs/wiki/Class.ControlErrorDirective.md +9 -9
  42. package/docs/wiki/Class.ControlErrorsDirective.md +8 -8
  43. package/docs/wiki/Class.ExtractHideShowMixin.md +7 -7
  44. package/docs/wiki/Class.FormControlsComponent.md +13 -13
  45. package/docs/wiki/Class.FormFieldHideShowDirective.md +11 -11
  46. package/docs/wiki/Class.InputClearButtonDirective.md +8 -8
  47. package/docs/wiki/Class.RequiredDirective.md +2 -2
  48. package/docs/wiki/Interface.ChipListTemplateContext.md +3 -3
  49. package/docs/wiki/Interface.ControlErrorDirectiveContext.md +3 -3
  50. package/docs/wiki/Interface.ControlErrorsDirectiveContext.md +3 -3
  51. package/docs/wiki/globals.md +1 -1
  52. package/fesm2022/rxap-material-form-system.mjs +811 -571
  53. package/fesm2022/rxap-material-form-system.mjs.map +1 -1
  54. package/package.json +37 -37
  55. package/types/rxap-material-form-system.d.ts +164 -148
@@ -1,576 +1,816 @@
1
- import * as i0 from '@angular/core';
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
- import { FormDirective, controlErrorChanges$, RxapFormControl } from '@rxap/forms';
5
- import { coerceBoolean, clone, unique, getFromObject, equals } from '@rxap/utilities';
6
- import { take, tap, filter, startWith, catchError } from 'rxjs/operators';
7
- import { Router } from '@angular/router';
8
- import { MatSnackBar, MatSnackBarModule } from '@angular/material/snack-bar';
9
- import * as i2 from '@angular/material/progress-spinner';
10
- import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
11
- import { NgClass } from '@angular/common';
12
- import * as i1 from '@angular/material/button';
13
- import { MatButtonModule } from '@angular/material/button';
14
- import { ENTER, COMMA } from '@angular/cdk/keycodes';
15
- import { NgControl } from '@angular/forms';
16
- import { MatChipInput } from '@angular/material/chips';
17
- import { MatSelect } from '@angular/material/select';
18
- import { MAT_FORM_FIELD } from '@angular/material/form-field';
19
- import { __decorate } from 'tslib';
20
- import { Subscription, of } from 'rxjs';
21
- import { RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS, RXAP_FORM_SYSTEM_HIDE_METADATA, RXAP_FORM_SYSTEM_SHOW_METADATA, ExtractFormDefinitionMixin } from '@rxap/form-system';
22
- import { Mixin } from '@rxap/mixin';
23
- import { getMetadata } from '@rxap/reflect-metadata';
24
-
25
- class FormControlsComponent {
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();
36
- this.isDevMode = isDevMode();
37
- /**
38
- * Collection of successful submitted values
39
- * @private
40
- */
41
- this._submitted = [];
42
- this.allowResubmit = input(false, { ...(ngDevMode ? { debugName: "allowResubmit" } : /* istanbul ignore next */ {}), transform: coerceBoolean });
43
- }
44
- ngOnInit() {
45
- outputToObservable(this.close)
46
- .pipe(take(1), tap(() => {
47
- const navigateAfterSubmit = this.navigateAfterSubmit();
48
- if (navigateAfterSubmit) {
49
- if (this.router) {
50
- return this.router.navigate(navigateAfterSubmit);
51
- }
52
- else {
53
- console.warn('The Router is not available. Ensure that tha RouterModule is imported');
54
- }
55
- }
56
- return Promise.resolve();
57
- }))
58
- .subscribe();
59
- }
60
- reset() {
61
- this.invalid.set(false);
62
- this.formDirective.reset();
63
- }
64
- cancel() {
65
- this.close.emit();
66
- }
67
- submit(closeAfterSubmit) {
68
- this.formDirective.form.markAllAsDirty();
69
- this.formDirective.form.markAllAsTouched();
70
- // eslint-disable-next-line prefer-const
71
- let submitSubscription;
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 })))
74
- .subscribe();
75
- submitSubscription = outputToObservable(this.formDirective.rxapSubmit)
76
- .pipe(take(1), tap((value) => {
77
- const clonedValue = clone(value);
78
- this._submitted.push(clonedValue);
79
- this.submitted.emit(clonedValue);
80
- if (closeAfterSubmit) {
81
- this.close.emit(this._submitted.length > 1 ? this._submitted : this._submitted[0]);
82
- }
83
- else {
84
- if (typeof this.formDirective.formDefinition.rxapReuse === 'function') {
85
- this.formDirective.formDefinition.rxapReuse();
86
- }
87
- }
88
- invalidSubmitSubscription.unsubscribe();
89
- this.invalid.set(false);
90
- }))
91
- .subscribe();
92
- this.formDirective.onSubmit(new Event('submit'));
93
- }
94
- logCurrentFormState() {
95
- console.log(clone(this.formDirective.form.value));
96
- }
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 }); }
99
- }
100
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: FormControlsComponent, decorators: [{
101
- type: Component,
102
- args: [{ selector: 'rxap-form-controls', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
103
- MatButtonModule,
104
- NgClass,
105
- MatProgressSpinnerModule,
106
- MatSnackBarModule
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 }] }] } });
109
-
110
- class ChipInputAdapterDirective {
111
- constructor() {
112
- this.matChipInput = inject(MatChipInput);
113
- this.ngControl = inject(NgControl);
114
- this.matChipInput.separatorKeyCodes = [ENTER, COMMA];
115
- this.matChipInput.addOnBlur = true;
116
- }
117
- ngOnDestroy() {
118
- this._subscription?.unsubscribe();
119
- }
120
- ngOnInit() {
121
- this._subscription = this.matChipInput.chipEnd
122
- .pipe(filter((add) => !!add.value?.trim()), tap((add) => {
123
- const value = this.ngControl.value ?? [];
124
- this.ngControl.control?.setValue([...value, add.value].filter(unique()));
125
- this.matChipInput.clear();
126
- }))
127
- .subscribe();
128
- }
129
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ChipInputAdapterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
130
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: ChipInputAdapterDirective, isStandalone: true, selector: "[matChipInputFor][rxapChipInputAdapter]", ngImport: i0 }); }
131
- }
132
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ChipInputAdapterDirective, decorators: [{
133
- type: Directive,
134
- args: [{
135
- selector: '[matChipInputFor][rxapChipInputAdapter]',
136
- standalone: true,
137
- }]
138
- }], ctorParameters: () => [] });
139
-
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Directive, ElementRef, IterableDiffers, Renderer2, TemplateRef, ViewContainerRef, inject, input, isDevMode, output, signal } from "@angular/core";
3
+ import { outputToObservable } from "@angular/core/rxjs-interop";
4
+ import { FormDirective, RxapFormControl, controlErrorChanges$ } from "@rxap/forms";
5
+ import { clone, coerceBoolean, equals, getFromObject, unique } from "@rxap/utilities";
6
+ import { catchError, filter, startWith, take, tap } from "rxjs/operators";
7
+ import { Router } from "@angular/router";
8
+ import { MatSnackBar, MatSnackBarModule } from "@angular/material/snack-bar";
9
+ import * as i2 from "@angular/material/progress-spinner";
10
+ import { MatProgressSpinnerModule } from "@angular/material/progress-spinner";
11
+ import { NgClass } from "@angular/common";
12
+ import * as i1 from "@angular/material/button";
13
+ import { MatButtonModule } from "@angular/material/button";
14
+ import { COMMA, ENTER } from "@angular/cdk/keycodes";
15
+ import { NgControl } from "@angular/forms";
16
+ import { MatChipInput } from "@angular/material/chips";
17
+ import { MatSelect } from "@angular/material/select";
18
+ import { MAT_FORM_FIELD } from "@angular/material/form-field";
19
+ import { __decorate } from "tslib";
20
+ import { Subscription, of } from "rxjs";
21
+ import { ExtractFormDefinitionMixin, RXAP_FORM_SYSTEM_HIDE_METADATA, RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS, RXAP_FORM_SYSTEM_SHOW_METADATA } from "@rxap/form-system";
22
+ import { Mixin } from "@rxap/mixin";
23
+ import { getMetadata } from "@rxap/reflect-metadata";
24
+ var FormControlsComponent = class FormControlsComponent {
25
+ constructor() {
26
+ this.formDirective = inject(FormDirective);
27
+ this.snackBar = inject(MatSnackBar);
28
+ this.router = inject(Router, { optional: true });
29
+ this.submitting = this.formDirective.submitting;
30
+ this.invalid = signal(false, ...ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []);
31
+ this.navigateAfterSubmit = input(...ngDevMode ? [void 0, { debugName: "navigateAfterSubmit" }] : /* istanbul ignore next */ []);
32
+ this.close = output();
33
+ this.submitted = output();
34
+ this.isDevMode = isDevMode();
35
+ this._submitted = [];
36
+ this.allowResubmit = input(false, {
37
+ ...ngDevMode ? { debugName: "allowResubmit" } : /* istanbul ignore next */ {},
38
+ transform: coerceBoolean
39
+ });
40
+ }
41
+ ngOnInit() {
42
+ outputToObservable(this.close).pipe(take(1), tap(() => {
43
+ const navigateAfterSubmit = this.navigateAfterSubmit();
44
+ if (navigateAfterSubmit) {
45
+ if (this.router) return this.router.navigate(navigateAfterSubmit);
46
+ else console.warn("The Router is not available. Ensure that tha RouterModule is imported");
47
+ }
48
+ return Promise.resolve();
49
+ })).subscribe();
50
+ }
51
+ reset() {
52
+ this.invalid.set(false);
53
+ this.formDirective.reset();
54
+ }
55
+ cancel() {
56
+ this.close.emit();
57
+ }
58
+ submit(closeAfterSubmit) {
59
+ this.formDirective.form.markAllAsDirty();
60
+ this.formDirective.form.markAllAsTouched();
61
+ let submitSubscription;
62
+ const invalidSubmitSubscription = outputToObservable(this.formDirective.invalidSubmit).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: 5e3 }))).subscribe();
63
+ submitSubscription = outputToObservable(this.formDirective.rxapSubmit).pipe(take(1), tap((value) => {
64
+ const clonedValue = clone(value);
65
+ this._submitted.push(clonedValue);
66
+ this.submitted.emit(clonedValue);
67
+ if (closeAfterSubmit) this.close.emit(this._submitted.length > 1 ? this._submitted : this._submitted[0]);
68
+ else if (typeof this.formDirective.formDefinition.rxapReuse === "function") this.formDirective.formDefinition.rxapReuse();
69
+ invalidSubmitSubscription.unsubscribe();
70
+ this.invalid.set(false);
71
+ })).subscribe();
72
+ this.formDirective.onSubmit(new Event("submit"));
73
+ }
74
+ logCurrentFormState() {
75
+ console.log(clone(this.formDirective.form.value));
76
+ }
77
+ static {
78
+ this.ɵfac = i0.ɵɵngDeclareFactory({
79
+ minVersion: "12.0.0",
80
+ version: "22.3.0",
81
+ ngImport: i0,
82
+ type: FormControlsComponent,
83
+ deps: [],
84
+ target: i0.ɵɵFactoryTarget.Component
85
+ });
86
+ }
87
+ static {
88
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
89
+ minVersion: "17.0.0",
90
+ version: "22.3.0",
91
+ type: FormControlsComponent,
92
+ isStandalone: true,
93
+ selector: "rxap-form-controls",
94
+ inputs: {
95
+ navigateAfterSubmit: {
96
+ classPropertyName: "navigateAfterSubmit",
97
+ publicName: "navigateAfterSubmit",
98
+ isSignal: true,
99
+ isRequired: false,
100
+ transformFunction: null
101
+ },
102
+ allowResubmit: {
103
+ classPropertyName: "allowResubmit",
104
+ publicName: "allowResubmit",
105
+ isSignal: true,
106
+ isRequired: false,
107
+ transformFunction: null
108
+ }
109
+ },
110
+ outputs: {
111
+ close: "close",
112
+ submitted: "submitted"
113
+ },
114
+ ngImport: i0,
115
+ 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",
116
+ styles: ["button{overflow:hidden}button.invalid{border:6px solid darkred}\n"],
117
+ dependencies: [
118
+ {
119
+ kind: "ngmodule",
120
+ type: MatButtonModule
121
+ },
122
+ {
123
+ kind: "component",
124
+ type: i1.MatButton,
125
+ 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] ",
126
+ inputs: ["matButton"],
127
+ exportAs: ["matButton", "matAnchor"]
128
+ },
129
+ {
130
+ kind: "directive",
131
+ type: NgClass,
132
+ selector: "[ngClass]",
133
+ inputs: ["class", "ngClass"]
134
+ },
135
+ {
136
+ kind: "ngmodule",
137
+ type: MatProgressSpinnerModule
138
+ },
139
+ {
140
+ kind: "component",
141
+ type: i2.MatProgressSpinner,
142
+ selector: "mat-progress-spinner, mat-spinner",
143
+ inputs: [
144
+ "color",
145
+ "mode",
146
+ "value",
147
+ "diameter",
148
+ "strokeWidth"
149
+ ],
150
+ exportAs: ["matProgressSpinner"]
151
+ },
152
+ {
153
+ kind: "ngmodule",
154
+ type: MatSnackBarModule
155
+ }
156
+ ],
157
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
158
+ });
159
+ }
160
+ };
161
+ i0.ɵɵngDeclareClassMetadata({
162
+ minVersion: "12.0.0",
163
+ version: "22.3.0",
164
+ ngImport: i0,
165
+ type: FormControlsComponent,
166
+ decorators: [{
167
+ type: Component,
168
+ args: [{
169
+ selector: "rxap-form-controls",
170
+ changeDetection: ChangeDetectionStrategy.OnPush,
171
+ imports: [
172
+ MatButtonModule,
173
+ NgClass,
174
+ MatProgressSpinnerModule,
175
+ MatSnackBarModule
176
+ ],
177
+ 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",
178
+ styles: ["button{overflow:hidden}button.invalid{border:6px solid darkred}\n"]
179
+ }]
180
+ }],
181
+ propDecorators: {
182
+ navigateAfterSubmit: [{
183
+ type: i0.Input,
184
+ args: [{
185
+ isSignal: true,
186
+ alias: "navigateAfterSubmit",
187
+ required: false
188
+ }]
189
+ }],
190
+ close: [{
191
+ type: i0.Output,
192
+ args: ["close"]
193
+ }],
194
+ submitted: [{
195
+ type: i0.Output,
196
+ args: ["submitted"]
197
+ }],
198
+ allowResubmit: [{
199
+ type: i0.Input,
200
+ args: [{
201
+ isSignal: true,
202
+ alias: "allowResubmit",
203
+ required: false
204
+ }]
205
+ }]
206
+ }
207
+ });
208
+ var ChipInputAdapterDirective = class ChipInputAdapterDirective {
209
+ constructor() {
210
+ this.matChipInput = inject(MatChipInput);
211
+ this.ngControl = inject(NgControl);
212
+ this.matChipInput.separatorKeyCodes = [ENTER, COMMA];
213
+ this.matChipInput.addOnBlur = true;
214
+ }
215
+ ngOnDestroy() {
216
+ this._subscription?.unsubscribe();
217
+ }
218
+ ngOnInit() {
219
+ this._subscription = this.matChipInput.chipEnd.pipe(filter((add) => !!add.value?.trim()), tap((add) => {
220
+ const value = this.ngControl.value ?? [];
221
+ this.ngControl.control?.setValue([...value, add.value].filter(unique()));
222
+ this.matChipInput.clear();
223
+ })).subscribe();
224
+ }
225
+ static {
226
+ this.ɵfac = i0.ɵɵngDeclareFactory({
227
+ minVersion: "12.0.0",
228
+ version: "22.3.0",
229
+ ngImport: i0,
230
+ type: ChipInputAdapterDirective,
231
+ deps: [],
232
+ target: i0.ɵɵFactoryTarget.Directive
233
+ });
234
+ }
235
+ static {
236
+ this.ɵdir = i0.ɵɵngDeclareDirective({
237
+ minVersion: "14.0.0",
238
+ version: "22.3.0",
239
+ type: ChipInputAdapterDirective,
240
+ isStandalone: true,
241
+ selector: "[matChipInputFor][rxapChipInputAdapter]",
242
+ ngImport: i0
243
+ });
244
+ }
245
+ };
246
+ i0.ɵɵngDeclareClassMetadata({
247
+ minVersion: "12.0.0",
248
+ version: "22.3.0",
249
+ ngImport: i0,
250
+ type: ChipInputAdapterDirective,
251
+ decorators: [{
252
+ type: Directive,
253
+ args: [{
254
+ selector: "[matChipInputFor][rxapChipInputAdapter]",
255
+ standalone: true
256
+ }]
257
+ }],
258
+ ctorParameters: () => []
259
+ });
140
260
  function getTypeName(type) {
141
- return type['name'] || typeof type;
142
- }
143
- class RecordViewTuple {
144
- constructor(record, view) {
145
- this.record = record;
146
- this.view = view;
147
- }
148
- }
149
- class ChipListIteratorDirective {
150
- constructor() {
151
- this.template = inject(TemplateRef);
152
- this.viewContainerRef = inject(ViewContainerRef);
153
- this.ngControl = inject(NgControl);
154
- this.differs = inject(IterableDiffers);
155
- this._dirty = true;
156
- this._differ = null;
157
- }
158
- ngOnInit() {
159
- this._subscription = this.ngControl.valueChanges
160
- ?.pipe(startWith(this.ngControl.value), filter((value) => Array.isArray(value)), tap((items) => {
161
- this._dirty = false;
162
- // React on ngForOf changes only once all inputs have been initialized
163
- const value = items;
164
- if (!this._differ && value) {
165
- try {
166
- this._differ = this.differs.find(value).create((_, item) => item);
167
- }
168
- catch {
169
- throw new Error(`Cannot find a differ supporting object '${value}' of type '${getTypeName(value)}'. NgFor only supports binding to Iterables such as Arrays.`);
170
- }
171
- }
172
- if (this._differ) {
173
- const changes = this._differ.diff(items);
174
- if (changes) {
175
- this.applyChanges(changes);
176
- }
177
- }
178
- }))
179
- .subscribe();
180
- }
181
- ngOnDestroy() {
182
- this._subscription?.unsubscribe();
183
- }
184
- applyChanges(changes) {
185
- const insertTuples = [];
186
- changes.forEachOperation((item, adjustedPreviousIndex, currentIndex) => {
187
- if (item.previousIndex == null) {
188
- // NgForOf is never "null" or "undefined" here because the differ detected
189
- // that a new item needs to be inserted from the iterable. This implies that
190
- // there is an iterable value for "_ngForOf".
191
- const view = this.viewContainerRef.createEmbeddedView(this.template, {
192
- $implicit: item.item,
193
- onRemoved: this.onRemoved.bind(this),
194
- }, currentIndex === null ? undefined : currentIndex);
195
- const tuple = new RecordViewTuple(item, view);
196
- insertTuples.push(tuple);
197
- }
198
- else if (currentIndex == null) {
199
- this.viewContainerRef.remove(adjustedPreviousIndex === null ? undefined : adjustedPreviousIndex);
200
- }
201
- else if (adjustedPreviousIndex !== null) {
202
- const view = this.viewContainerRef.get(adjustedPreviousIndex);
203
- this.viewContainerRef.move(view, currentIndex);
204
- const tuple = new RecordViewTuple(item, view);
205
- insertTuples.push(tuple);
206
- }
207
- });
208
- for (let i = 0; i < insertTuples.length; i++) {
209
- this.perViewChange(insertTuples[i].view, insertTuples[i].record);
210
- }
211
- changes.forEachIdentityChange((record) => {
212
- const viewRef = (this.viewContainerRef.get(record.currentIndex));
213
- viewRef.context.$implicit = record.item;
214
- });
215
- }
216
- onRemoved($event) {
217
- this.ngControl.control?.setValue((this.ngControl.value ?? []).filter((item) => item !== $event.chip.value));
218
- }
219
- perViewChange(view, record) {
220
- view.context.$implicit = record.item;
221
- }
222
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ChipListIteratorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
223
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: ChipListIteratorDirective, isStandalone: true, selector: "[rxapChipListIterator]", ngImport: i0 }); }
224
- }
225
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ChipListIteratorDirective, decorators: [{
226
- type: Directive,
227
- args: [{
228
- selector: '[rxapChipListIterator]',
229
- standalone: true,
230
- }]
231
- }] });
232
-
233
- class CompareWithDirective {
234
- constructor() {
235
- this.matSelect = inject(MatSelect);
236
- this.objectPath = input.required({ ...(ngDevMode ? { debugName: "objectPath" } : /* istanbul ignore next */ {}), alias: "rxapCompareWith" });
237
- }
238
- ngOnInit() {
239
- this.matSelect.compareWith = this.compareWith.bind(this);
240
- }
241
- compareWith(o1, o2) {
242
- const objectPath = this.objectPath();
243
- if (objectPath) {
244
- if (typeof o1 !== 'object' || typeof o2 !== 'object') {
245
- if (isDevMode()) {
246
- console.warn('At least one of the select options value is not an object');
247
- }
248
- return false;
249
- }
250
- if (o1 === null || o1 === undefined || o2 === null || o2 === undefined) {
251
- if (isDevMode()) {
252
- console.warn('At least one of the select options value is undefined or null');
253
- }
254
- return false;
255
- }
256
- const o1Value = getFromObject(o1, objectPath);
257
- const o2Value = getFromObject(o2, objectPath);
258
- if (o1Value === undefined || o2Value === undefined) {
259
- return false;
260
- }
261
- return o1Value === o2Value;
262
- }
263
- else {
264
- return equals(o1, o2);
265
- }
266
- }
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 }); }
269
- }
270
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: CompareWithDirective, decorators: [{
271
- type: Directive,
272
- args: [{
273
- selector: 'mat-select[rxapCompareWith]',
274
- standalone: true,
275
- }]
276
- }], propDecorators: { objectPath: [{ type: i0.Input, args: [{ isSignal: true, alias: "rxapCompareWith", required: true }] }] } });
277
-
278
- class ControlErrorDirective {
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" });
285
- }
286
- static ngTemplateContextGuard(dir, ctx) {
287
- return true;
288
- }
289
- ngAfterContentInit() {
290
- const control = this.formField._control.ngControl?.control;
291
- if (control) {
292
- this._control = control;
293
- this._subscription = controlErrorChanges$(control)
294
- .pipe(tap((errors) => this.render(errors)))
295
- .subscribe();
296
- }
297
- else {
298
- throw new Error('The form field has not a control associated!');
299
- }
300
- }
301
- ngOnDestroy() {
302
- this._subscription?.unsubscribe();
303
- }
304
- render(errors) {
305
- this.viewContainerRef.clear();
306
- if (errors) {
307
- const errorKeys = Object.keys(errors);
308
- const matchingKey = errorKeys.find((key) => key.toLowerCase() === this.key().toLowerCase());
309
- if (matchingKey) {
310
- const error = errors[matchingKey];
311
- if (!this._control) {
312
- throw new Error('The control is not defined!');
313
- }
314
- this.viewContainerRef.createEmbeddedView(this.template, {
315
- $implicit: error,
316
- control: this._control,
317
- });
318
- }
319
- }
320
- this.cdr.detectChanges();
321
- }
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 }); }
324
- }
325
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ControlErrorDirective, decorators: [{
326
- type: Directive,
327
- args: [{
328
- selector: '[rxapControlError]',
329
- standalone: true,
330
- }]
331
- }], propDecorators: { key: [{ type: i0.Input, args: [{ isSignal: true, alias: "rxapControlErrorKey", required: true }] }] } });
332
-
333
- class ControlErrorsDirective {
334
- constructor() {
335
- this.formField = inject(MAT_FORM_FIELD);
336
- this.template = inject(TemplateRef);
337
- this.viewContainerRef = inject(ViewContainerRef);
338
- this.cdr = inject(ChangeDetectorRef);
339
- }
340
- static ngTemplateContextGuard(dir, ctx) {
341
- return true;
342
- }
343
- ngAfterContentInit() {
344
- const control = this.formField._control.ngControl?.control;
345
- if (control) {
346
- this._control = control;
347
- this._subscription = controlErrorChanges$(control)
348
- .pipe(tap((errors) => this.render(errors)))
349
- .subscribe();
350
- }
351
- else {
352
- throw new Error('The form field has not a control associated!');
353
- }
354
- }
355
- ngOnDestroy() {
356
- this._subscription?.unsubscribe();
357
- }
358
- render(errors) {
359
- this.viewContainerRef.clear();
360
- if (errors) {
361
- if (!this._control) {
362
- throw new Error('The control is not defined!');
363
- }
364
- this.viewContainerRef.createEmbeddedView(this.template, {
365
- $implicit: errors,
366
- control: this._control,
367
- });
368
- }
369
- this.cdr.detectChanges();
370
- }
371
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ControlErrorsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
372
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: ControlErrorsDirective, isStandalone: true, selector: "[rxapControlErrors]", ngImport: i0 }); }
373
- }
374
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ControlErrorsDirective, decorators: [{
375
- type: Directive,
376
- args: [{
377
- selector: '[rxapControlErrors]',
378
- standalone: true,
379
- }]
380
- }] });
381
-
382
- class ExtractHideShowMixin {
383
- extractOptions(formDefinition = this.formDefinition, controlId = this.control?.controlId ?? this.controlId) {
384
- const map = getMetadata(RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS, Object.getPrototypeOf(formDefinition)) ?? null;
385
- if (!map || !map.has(controlId)) {
386
- return {};
387
- }
388
- return map.get(controlId);
389
- }
390
- extractHideFunction(formDefinition = this.formDefinition, controlId = this.control?.controlId ?? this.controlId) {
391
- const map = getMetadata(RXAP_FORM_SYSTEM_HIDE_METADATA, Object.getPrototypeOf(formDefinition)) ?? null;
392
- if (!map || !map.has(controlId)) {
393
- return null;
394
- }
395
- return map.get(controlId);
396
- }
397
- extractShowFunction(formDefinition = this.formDefinition, controlId = this.control?.controlId ?? this.controlId) {
398
- const map = getMetadata(RXAP_FORM_SYSTEM_SHOW_METADATA, Object.getPrototypeOf(formDefinition)) ?? null;
399
- if (!map || !map.has(controlId)) {
400
- return null;
401
- }
402
- return map.get(controlId);
403
- }
261
+ return type["name"] || typeof type;
404
262
  }
405
- // TODO : create mixin for hide and show logic (this class and ControlHideShowDirective in @rxap/form-system)
263
+ var RecordViewTuple = class {
264
+ constructor(record, view) {
265
+ this.record = record;
266
+ this.view = view;
267
+ }
268
+ };
269
+ var ChipListIteratorDirective = class ChipListIteratorDirective {
270
+ constructor() {
271
+ this.template = inject(TemplateRef);
272
+ this.viewContainerRef = inject(ViewContainerRef);
273
+ this.ngControl = inject(NgControl);
274
+ this.differs = inject(IterableDiffers);
275
+ this._dirty = true;
276
+ this._differ = null;
277
+ }
278
+ ngOnInit() {
279
+ this._subscription = this.ngControl.valueChanges?.pipe(startWith(this.ngControl.value), filter((value) => Array.isArray(value)), tap((items) => {
280
+ this._dirty = false;
281
+ const value = items;
282
+ if (!this._differ && value) try {
283
+ this._differ = this.differs.find(value).create((_, item) => item);
284
+ } catch {
285
+ throw new Error(`Cannot find a differ supporting object '${value}' of type '${getTypeName(value)}'. NgFor only supports binding to Iterables such as Arrays.`);
286
+ }
287
+ if (this._differ) {
288
+ const changes = this._differ.diff(items);
289
+ if (changes) this.applyChanges(changes);
290
+ }
291
+ })).subscribe();
292
+ }
293
+ ngOnDestroy() {
294
+ this._subscription?.unsubscribe();
295
+ }
296
+ applyChanges(changes) {
297
+ const insertTuples = [];
298
+ changes.forEachOperation((item, adjustedPreviousIndex, currentIndex) => {
299
+ if (item.previousIndex == null) {
300
+ const tuple = new RecordViewTuple(item, this.viewContainerRef.createEmbeddedView(this.template, {
301
+ $implicit: item.item,
302
+ onRemoved: this.onRemoved.bind(this)
303
+ }, currentIndex === null ? void 0 : currentIndex));
304
+ insertTuples.push(tuple);
305
+ } else if (currentIndex == null) this.viewContainerRef.remove(adjustedPreviousIndex === null ? void 0 : adjustedPreviousIndex);
306
+ else if (adjustedPreviousIndex !== null) {
307
+ const view = this.viewContainerRef.get(adjustedPreviousIndex);
308
+ this.viewContainerRef.move(view, currentIndex);
309
+ const tuple = new RecordViewTuple(item, view);
310
+ insertTuples.push(tuple);
311
+ }
312
+ });
313
+ for (let i = 0; i < insertTuples.length; i++) this.perViewChange(insertTuples[i].view, insertTuples[i].record);
314
+ changes.forEachIdentityChange((record) => {
315
+ const viewRef = this.viewContainerRef.get(record.currentIndex);
316
+ viewRef.context.$implicit = record.item;
317
+ });
318
+ }
319
+ onRemoved($event) {
320
+ this.ngControl.control?.setValue((this.ngControl.value ?? []).filter((item) => item !== $event.chip.value));
321
+ }
322
+ perViewChange(view, record) {
323
+ view.context.$implicit = record.item;
324
+ }
325
+ static {
326
+ this.ɵfac = i0.ɵɵngDeclareFactory({
327
+ minVersion: "12.0.0",
328
+ version: "22.3.0",
329
+ ngImport: i0,
330
+ type: ChipListIteratorDirective,
331
+ deps: [],
332
+ target: i0.ɵɵFactoryTarget.Directive
333
+ });
334
+ }
335
+ static {
336
+ this.ɵdir = i0.ɵɵngDeclareDirective({
337
+ minVersion: "14.0.0",
338
+ version: "22.3.0",
339
+ type: ChipListIteratorDirective,
340
+ isStandalone: true,
341
+ selector: "[rxapChipListIterator]",
342
+ ngImport: i0
343
+ });
344
+ }
345
+ };
346
+ i0.ɵɵngDeclareClassMetadata({
347
+ minVersion: "12.0.0",
348
+ version: "22.3.0",
349
+ ngImport: i0,
350
+ type: ChipListIteratorDirective,
351
+ decorators: [{
352
+ type: Directive,
353
+ args: [{
354
+ selector: "[rxapChipListIterator]",
355
+ standalone: true
356
+ }]
357
+ }]
358
+ });
359
+ var CompareWithDirective = class CompareWithDirective {
360
+ constructor() {
361
+ this.matSelect = inject(MatSelect);
362
+ this.objectPath = input.required({
363
+ ...ngDevMode ? { debugName: "objectPath" } : /* istanbul ignore next */ {},
364
+ alias: "rxapCompareWith"
365
+ });
366
+ }
367
+ ngOnInit() {
368
+ this.matSelect.compareWith = this.compareWith.bind(this);
369
+ }
370
+ compareWith(o1, o2) {
371
+ const objectPath = this.objectPath();
372
+ if (objectPath) {
373
+ if (typeof o1 !== "object" || typeof o2 !== "object") {
374
+ if (isDevMode()) console.warn("At least one of the select options value is not an object");
375
+ return false;
376
+ }
377
+ if (o1 === null || o1 === void 0 || o2 === null || o2 === void 0) {
378
+ if (isDevMode()) console.warn("At least one of the select options value is undefined or null");
379
+ return false;
380
+ }
381
+ const o1Value = getFromObject(o1, objectPath);
382
+ const o2Value = getFromObject(o2, objectPath);
383
+ if (o1Value === void 0 || o2Value === void 0) return false;
384
+ return o1Value === o2Value;
385
+ } else return equals(o1, o2);
386
+ }
387
+ static {
388
+ this.ɵfac = i0.ɵɵngDeclareFactory({
389
+ minVersion: "12.0.0",
390
+ version: "22.3.0",
391
+ ngImport: i0,
392
+ type: CompareWithDirective,
393
+ deps: [],
394
+ target: i0.ɵɵFactoryTarget.Directive
395
+ });
396
+ }
397
+ static {
398
+ this.ɵdir = i0.ɵɵngDeclareDirective({
399
+ minVersion: "17.1.0",
400
+ version: "22.3.0",
401
+ type: CompareWithDirective,
402
+ isStandalone: true,
403
+ selector: "mat-select[rxapCompareWith]",
404
+ inputs: { objectPath: {
405
+ classPropertyName: "objectPath",
406
+ publicName: "rxapCompareWith",
407
+ isSignal: true,
408
+ isRequired: true,
409
+ transformFunction: null
410
+ } },
411
+ ngImport: i0
412
+ });
413
+ }
414
+ };
415
+ i0.ɵɵngDeclareClassMetadata({
416
+ minVersion: "12.0.0",
417
+ version: "22.3.0",
418
+ ngImport: i0,
419
+ type: CompareWithDirective,
420
+ decorators: [{
421
+ type: Directive,
422
+ args: [{
423
+ selector: "mat-select[rxapCompareWith]",
424
+ standalone: true
425
+ }]
426
+ }],
427
+ propDecorators: { objectPath: [{
428
+ type: i0.Input,
429
+ args: [{
430
+ isSignal: true,
431
+ alias: "rxapCompareWith",
432
+ required: true
433
+ }]
434
+ }] }
435
+ });
436
+ var ControlErrorDirective = class ControlErrorDirective {
437
+ constructor() {
438
+ this.formField = inject(MAT_FORM_FIELD);
439
+ this.template = inject(TemplateRef);
440
+ this.viewContainerRef = inject(ViewContainerRef);
441
+ this.cdr = inject(ChangeDetectorRef);
442
+ this.key = input.required({
443
+ ...ngDevMode ? { debugName: "key" } : /* istanbul ignore next */ {},
444
+ alias: "rxapControlErrorKey"
445
+ });
446
+ }
447
+ static ngTemplateContextGuard(dir, ctx) {
448
+ return true;
449
+ }
450
+ ngAfterContentInit() {
451
+ const control = this.formField._control.ngControl?.control;
452
+ if (control) {
453
+ this._control = control;
454
+ this._subscription = controlErrorChanges$(control).pipe(tap((errors) => this.render(errors))).subscribe();
455
+ } else throw new Error("The form field has not a control associated!");
456
+ }
457
+ ngOnDestroy() {
458
+ this._subscription?.unsubscribe();
459
+ }
460
+ render(errors) {
461
+ this.viewContainerRef.clear();
462
+ if (errors) {
463
+ const matchingKey = Object.keys(errors).find((key) => key.toLowerCase() === this.key().toLowerCase());
464
+ if (matchingKey) {
465
+ const error = errors[matchingKey];
466
+ if (!this._control) throw new Error("The control is not defined!");
467
+ this.viewContainerRef.createEmbeddedView(this.template, {
468
+ $implicit: error,
469
+ control: this._control
470
+ });
471
+ }
472
+ }
473
+ this.cdr.detectChanges();
474
+ }
475
+ static {
476
+ this.ɵfac = i0.ɵɵngDeclareFactory({
477
+ minVersion: "12.0.0",
478
+ version: "22.3.0",
479
+ ngImport: i0,
480
+ type: ControlErrorDirective,
481
+ deps: [],
482
+ target: i0.ɵɵFactoryTarget.Directive
483
+ });
484
+ }
485
+ static {
486
+ this.ɵdir = i0.ɵɵngDeclareDirective({
487
+ minVersion: "17.1.0",
488
+ version: "22.3.0",
489
+ type: ControlErrorDirective,
490
+ isStandalone: true,
491
+ selector: "[rxapControlError]",
492
+ inputs: { key: {
493
+ classPropertyName: "key",
494
+ publicName: "rxapControlErrorKey",
495
+ isSignal: true,
496
+ isRequired: true,
497
+ transformFunction: null
498
+ } },
499
+ ngImport: i0
500
+ });
501
+ }
502
+ };
503
+ i0.ɵɵngDeclareClassMetadata({
504
+ minVersion: "12.0.0",
505
+ version: "22.3.0",
506
+ ngImport: i0,
507
+ type: ControlErrorDirective,
508
+ decorators: [{
509
+ type: Directive,
510
+ args: [{
511
+ selector: "[rxapControlError]",
512
+ standalone: true
513
+ }]
514
+ }],
515
+ propDecorators: { key: [{
516
+ type: i0.Input,
517
+ args: [{
518
+ isSignal: true,
519
+ alias: "rxapControlErrorKey",
520
+ required: true
521
+ }]
522
+ }] }
523
+ });
524
+ var ControlErrorsDirective = class ControlErrorsDirective {
525
+ constructor() {
526
+ this.formField = inject(MAT_FORM_FIELD);
527
+ this.template = inject(TemplateRef);
528
+ this.viewContainerRef = inject(ViewContainerRef);
529
+ this.cdr = inject(ChangeDetectorRef);
530
+ }
531
+ static ngTemplateContextGuard(dir, ctx) {
532
+ return true;
533
+ }
534
+ ngAfterContentInit() {
535
+ const control = this.formField._control.ngControl?.control;
536
+ if (control) {
537
+ this._control = control;
538
+ this._subscription = controlErrorChanges$(control).pipe(tap((errors) => this.render(errors))).subscribe();
539
+ } else throw new Error("The form field has not a control associated!");
540
+ }
541
+ ngOnDestroy() {
542
+ this._subscription?.unsubscribe();
543
+ }
544
+ render(errors) {
545
+ this.viewContainerRef.clear();
546
+ if (errors) {
547
+ if (!this._control) throw new Error("The control is not defined!");
548
+ this.viewContainerRef.createEmbeddedView(this.template, {
549
+ $implicit: errors,
550
+ control: this._control
551
+ });
552
+ }
553
+ this.cdr.detectChanges();
554
+ }
555
+ static {
556
+ this.ɵfac = i0.ɵɵngDeclareFactory({
557
+ minVersion: "12.0.0",
558
+ version: "22.3.0",
559
+ ngImport: i0,
560
+ type: ControlErrorsDirective,
561
+ deps: [],
562
+ target: i0.ɵɵFactoryTarget.Directive
563
+ });
564
+ }
565
+ static {
566
+ this.ɵdir = i0.ɵɵngDeclareDirective({
567
+ minVersion: "14.0.0",
568
+ version: "22.3.0",
569
+ type: ControlErrorsDirective,
570
+ isStandalone: true,
571
+ selector: "[rxapControlErrors]",
572
+ ngImport: i0
573
+ });
574
+ }
575
+ };
576
+ i0.ɵɵngDeclareClassMetadata({
577
+ minVersion: "12.0.0",
578
+ version: "22.3.0",
579
+ ngImport: i0,
580
+ type: ControlErrorsDirective,
581
+ decorators: [{
582
+ type: Directive,
583
+ args: [{
584
+ selector: "[rxapControlErrors]",
585
+ standalone: true
586
+ }]
587
+ }]
588
+ });
589
+ var ExtractHideShowMixin = class {
590
+ extractOptions(formDefinition = this.formDefinition, controlId = this.control?.controlId ?? this.controlId) {
591
+ const map = getMetadata(RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS, Object.getPrototypeOf(formDefinition)) ?? null;
592
+ if (!map || !map.has(controlId)) return {};
593
+ return map.get(controlId);
594
+ }
595
+ extractHideFunction(formDefinition = this.formDefinition, controlId = this.control?.controlId ?? this.controlId) {
596
+ const map = getMetadata(RXAP_FORM_SYSTEM_HIDE_METADATA, Object.getPrototypeOf(formDefinition)) ?? null;
597
+ if (!map || !map.has(controlId)) return null;
598
+ return map.get(controlId);
599
+ }
600
+ extractShowFunction(formDefinition = this.formDefinition, controlId = this.control?.controlId ?? this.controlId) {
601
+ const map = getMetadata(RXAP_FORM_SYSTEM_SHOW_METADATA, Object.getPrototypeOf(formDefinition)) ?? null;
602
+ if (!map || !map.has(controlId)) return null;
603
+ return map.get(controlId);
604
+ }
605
+ };
406
606
  let FormFieldHideShowDirective = class FormFieldHideShowDirective {
407
- constructor() {
408
- this.formField = inject(MAT_FORM_FIELD);
409
- this.renderer = inject(Renderer2);
410
- this.elementRef = inject(ElementRef);
411
- this.subscription = new Subscription();
412
- }
413
- ngAfterContentInit() {
414
- const control = this.formField._control.ngControl?.control;
415
- if (!control) {
416
- throw new Error('The form field has not a control associated!');
417
- }
418
- if (!(control instanceof RxapFormControl)) {
419
- throw new Error('The associated control is not a RxapFormControl');
420
- }
421
- this.control = control;
422
- this.formDefinition = this.extractFormDefinition(control);
423
- const hideFunction = this.extractHideFunction(this.formDefinition);
424
- const showFunction = this.extractShowFunction(this.formDefinition);
425
- const options = this.extractOptions(this.formDefinition);
426
- let changeTrigger = this.formDefinition.rxapFormGroup.valueChanges;
427
- if (options.rootChange) {
428
- changeTrigger = this.formDefinition.rxapFormGroup.root.valueChanges;
429
- }
430
- changeTrigger = changeTrigger.pipe(startWith(null));
431
- if (showFunction) {
432
- this.subscription.add(changeTrigger.pipe(tap(() => {
433
- // TODO : resubscribe if the showFunction throws an error
434
- const show = showFunction.call(this.formDefinition, control);
435
- switch (show) {
436
- case true:
437
- this.show();
438
- break;
439
- case false:
440
- this.hide();
441
- break;
442
- case null:
443
- this.reset();
444
- break;
445
- }
446
- }), catchError(err => {
447
- console.error(err);
448
- return of(null);
449
- })).subscribe());
450
- }
451
- if (hideFunction) {
452
- this.subscription.add(changeTrigger.pipe(tap(() => {
453
- // TODO : resubscribe if the hideFunction throws an error
454
- const hide = hideFunction.call(this.formDefinition, control);
455
- switch (hide) {
456
- case true:
457
- this.hide();
458
- break;
459
- case false:
460
- this.show();
461
- break;
462
- case null:
463
- this.reset();
464
- break;
465
- }
466
- }), catchError(err => {
467
- console.error(err);
468
- return of(null);
469
- })).subscribe());
470
- }
471
- }
472
- ngOnDestroy() {
473
- this.subscription.unsubscribe();
474
- }
475
- hide() {
476
- this.renderer.setStyle(this.elementRef.nativeElement, 'display', 'none');
477
- }
478
- show() {
479
- this.renderer.setStyle(this.elementRef.nativeElement, 'display', 'block');
480
- }
481
- reset() {
482
- this.renderer.removeStyle(this.elementRef.nativeElement, 'display');
483
- }
484
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: FormFieldHideShowDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
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 }); }
607
+ constructor() {
608
+ this.formField = inject(MAT_FORM_FIELD);
609
+ this.renderer = inject(Renderer2);
610
+ this.elementRef = inject(ElementRef);
611
+ this.subscription = new Subscription();
612
+ }
613
+ ngAfterContentInit() {
614
+ const control = this.formField._control.ngControl?.control;
615
+ if (!control) throw new Error("The form field has not a control associated!");
616
+ if (!(control instanceof RxapFormControl)) throw new Error("The associated control is not a RxapFormControl");
617
+ this.control = control;
618
+ this.formDefinition = this.extractFormDefinition(control);
619
+ const hideFunction = this.extractHideFunction(this.formDefinition);
620
+ const showFunction = this.extractShowFunction(this.formDefinition);
621
+ const options = this.extractOptions(this.formDefinition);
622
+ let changeTrigger = this.formDefinition.rxapFormGroup.valueChanges;
623
+ if (options.rootChange) changeTrigger = this.formDefinition.rxapFormGroup.root.valueChanges;
624
+ changeTrigger = changeTrigger.pipe(startWith(null));
625
+ if (showFunction) this.subscription.add(changeTrigger.pipe(tap(() => {
626
+ switch (showFunction.call(this.formDefinition, control)) {
627
+ case true:
628
+ this.show();
629
+ break;
630
+ case false:
631
+ this.hide();
632
+ break;
633
+ case null: this.reset();
634
+ }
635
+ }), catchError((err) => {
636
+ console.error(err);
637
+ return of(null);
638
+ })).subscribe());
639
+ if (hideFunction) this.subscription.add(changeTrigger.pipe(tap(() => {
640
+ switch (hideFunction.call(this.formDefinition, control)) {
641
+ case true:
642
+ this.hide();
643
+ break;
644
+ case false:
645
+ this.show();
646
+ break;
647
+ case null: this.reset();
648
+ }
649
+ }), catchError((err) => {
650
+ console.error(err);
651
+ return of(null);
652
+ })).subscribe());
653
+ }
654
+ ngOnDestroy() {
655
+ this.subscription.unsubscribe();
656
+ }
657
+ hide() {
658
+ this.renderer.setStyle(this.elementRef.nativeElement, "display", "none");
659
+ }
660
+ show() {
661
+ this.renderer.setStyle(this.elementRef.nativeElement, "display", "block");
662
+ }
663
+ reset() {
664
+ this.renderer.removeStyle(this.elementRef.nativeElement, "display");
665
+ }
666
+ static {
667
+ this.ɵfac = i0.ɵɵngDeclareFactory({
668
+ minVersion: "12.0.0",
669
+ version: "22.3.0",
670
+ ngImport: i0,
671
+ type: FormFieldHideShowDirective,
672
+ deps: [],
673
+ target: i0.ɵɵFactoryTarget.Directive
674
+ });
675
+ }
676
+ static {
677
+ this.ɵdir = i0.ɵɵngDeclareDirective({
678
+ minVersion: "14.0.0",
679
+ version: "22.3.0",
680
+ type: FormFieldHideShowDirective,
681
+ isStandalone: true,
682
+ selector: "mat-form-field[rxapHideShow]",
683
+ ngImport: i0
684
+ });
685
+ }
486
686
  };
487
- FormFieldHideShowDirective = __decorate([
488
- Mixin(ExtractHideShowMixin, ExtractFormDefinitionMixin)
489
- ], FormFieldHideShowDirective);
490
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: FormFieldHideShowDirective, decorators: [{
491
- type: Directive,
492
- args: [{
493
- selector: 'mat-form-field[rxapHideShow]',
494
- standalone: true,
495
- }]
496
- }] });
497
-
498
- class InputClearButtonDirective {
499
- constructor() {
500
- this.formField = inject(MAT_FORM_FIELD);
501
- this.type = 'button';
502
- this.tabIndex = '-1';
503
- }
504
- get control() {
505
- return this.formField._control;
506
- }
507
- get isDisabled() {
508
- return this.control.disabled;
509
- }
510
- onClick() {
511
- if (this.control.ngControl) {
512
- if (this.control.ngControl.control) {
513
- this.control.ngControl.control.setValue(null);
514
- }
515
- else {
516
- this.control.ngControl.reset();
517
- }
518
- }
519
- else {
520
- console.log('InputClearButtonDirective.onClick', 'value = null');
521
- this.control.value = null;
522
- }
523
- }
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 }); }
526
- }
527
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: InputClearButtonDirective, decorators: [{
528
- type: Directive,
529
- args: [{
530
- selector: '[rxapInputClearButton]',
531
- standalone: true,
532
- host: {
533
- '[attr.type]': 'type',
534
- '[attr.tabindex]': 'tabIndex',
535
- '[disabled]': 'isDisabled',
536
- '(click)': 'onClick()',
537
- },
538
- }]
539
- }] });
540
-
541
- class RequiredDirective {
542
- constructor() {
543
- this.formField = inject(MAT_FORM_FIELD);
544
- }
545
- ngAfterContentInit() {
546
- const control = this.formField._control.ngControl?.control;
547
- if (control) {
548
- const hasRequiredValidator = Reflect.get(control, 'hasRequiredValidator');
549
- if (hasRequiredValidator) {
550
- this.formField._control.required = true;
551
- }
552
- }
553
- else {
554
- throw new Error('The form field has not a control associated!');
555
- }
556
- }
557
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RequiredDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
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 }); }
559
- }
560
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RequiredDirective, decorators: [{
561
- type: Directive,
562
- args: [{
563
- selector: '[formControlName][rxapRequired],[formControl][rxapRequired]',
564
- standalone: true,
565
- }]
566
- }] });
567
-
568
- // region form-controls
569
- // endregion
570
-
571
- /**
572
- * Generated bundle index. Do not edit.
573
- */
574
-
687
+ FormFieldHideShowDirective = __decorate([Mixin(ExtractHideShowMixin, ExtractFormDefinitionMixin)], FormFieldHideShowDirective);
688
+ i0.ɵɵngDeclareClassMetadata({
689
+ minVersion: "12.0.0",
690
+ version: "22.3.0",
691
+ ngImport: i0,
692
+ type: FormFieldHideShowDirective,
693
+ decorators: [{
694
+ type: Directive,
695
+ args: [{
696
+ selector: "mat-form-field[rxapHideShow]",
697
+ standalone: true
698
+ }]
699
+ }]
700
+ });
701
+ var InputClearButtonDirective = class InputClearButtonDirective {
702
+ constructor() {
703
+ this.formField = inject(MAT_FORM_FIELD);
704
+ this.type = "button";
705
+ this.tabIndex = "-1";
706
+ }
707
+ get control() {
708
+ return this.formField._control;
709
+ }
710
+ get isDisabled() {
711
+ return this.control.disabled;
712
+ }
713
+ onClick() {
714
+ if (this.control.ngControl) {
715
+ if (this.control.ngControl.control) this.control.ngControl.control.setValue(null);
716
+ else this.control.ngControl.reset();
717
+ } else {
718
+ console.log("InputClearButtonDirective.onClick", "value = null");
719
+ this.control.value = null;
720
+ }
721
+ }
722
+ static {
723
+ this.ɵfac = i0.ɵɵngDeclareFactory({
724
+ minVersion: "12.0.0",
725
+ version: "22.3.0",
726
+ ngImport: i0,
727
+ type: InputClearButtonDirective,
728
+ deps: [],
729
+ target: i0.ɵɵFactoryTarget.Directive
730
+ });
731
+ }
732
+ static {
733
+ this.ɵdir = i0.ɵɵngDeclareDirective({
734
+ minVersion: "14.0.0",
735
+ version: "22.3.0",
736
+ type: InputClearButtonDirective,
737
+ isStandalone: true,
738
+ selector: "[rxapInputClearButton]",
739
+ host: {
740
+ listeners: { "click": "onClick()" },
741
+ properties: {
742
+ "attr.type": "type",
743
+ "attr.tabindex": "tabIndex",
744
+ "disabled": "isDisabled"
745
+ }
746
+ },
747
+ ngImport: i0
748
+ });
749
+ }
750
+ };
751
+ i0.ɵɵngDeclareClassMetadata({
752
+ minVersion: "12.0.0",
753
+ version: "22.3.0",
754
+ ngImport: i0,
755
+ type: InputClearButtonDirective,
756
+ decorators: [{
757
+ type: Directive,
758
+ args: [{
759
+ selector: "[rxapInputClearButton]",
760
+ standalone: true,
761
+ host: {
762
+ "[attr.type]": "type",
763
+ "[attr.tabindex]": "tabIndex",
764
+ "[disabled]": "isDisabled",
765
+ "(click)": "onClick()"
766
+ }
767
+ }]
768
+ }]
769
+ });
770
+ var RequiredDirective = class RequiredDirective {
771
+ constructor() {
772
+ this.formField = inject(MAT_FORM_FIELD);
773
+ }
774
+ ngAfterContentInit() {
775
+ const control = this.formField._control.ngControl?.control;
776
+ if (control) {
777
+ if (Reflect.get(control, "hasRequiredValidator")) this.formField._control.required = true;
778
+ } else throw new Error("The form field has not a control associated!");
779
+ }
780
+ static {
781
+ this.ɵfac = i0.ɵɵngDeclareFactory({
782
+ minVersion: "12.0.0",
783
+ version: "22.3.0",
784
+ ngImport: i0,
785
+ type: RequiredDirective,
786
+ deps: [],
787
+ target: i0.ɵɵFactoryTarget.Directive
788
+ });
789
+ }
790
+ static {
791
+ this.ɵdir = i0.ɵɵngDeclareDirective({
792
+ minVersion: "14.0.0",
793
+ version: "22.3.0",
794
+ type: RequiredDirective,
795
+ isStandalone: true,
796
+ selector: "[formControlName][rxapRequired],[formControl][rxapRequired]",
797
+ ngImport: i0
798
+ });
799
+ }
800
+ };
801
+ i0.ɵɵngDeclareClassMetadata({
802
+ minVersion: "12.0.0",
803
+ version: "22.3.0",
804
+ ngImport: i0,
805
+ type: RequiredDirective,
806
+ decorators: [{
807
+ type: Directive,
808
+ args: [{
809
+ selector: "[formControlName][rxapRequired],[formControl][rxapRequired]",
810
+ standalone: true
811
+ }]
812
+ }]
813
+ });
575
814
  export { ChipInputAdapterDirective, ChipListIteratorDirective, CompareWithDirective, ControlErrorDirective, ControlErrorsDirective, ExtractHideShowMixin, FormControlsComponent, FormFieldHideShowDirective, InputClearButtonDirective, RequiredDirective };
576
- //# sourceMappingURL=rxap-material-form-system.mjs.map
815
+
816
+ //# sourceMappingURL=rxap-material-form-system.mjs.map