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