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