@rxap/material-form-system 16.0.0-dev.0 → 16.0.0-dev.2
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/esm2022/index.mjs +1 -3
- package/esm2022/lib/chip-input-adapter.directive.mjs +9 -21
- package/esm2022/lib/chip-list-iterator.directive.mjs +5 -17
- package/esm2022/lib/compare-with.directive.mjs +7 -19
- package/esm2022/lib/control-error.directive.mjs +7 -19
- package/esm2022/lib/control-errors.directive.mjs +7 -19
- package/esm2022/lib/form-controls/form-controls.component.mjs +27 -15
- package/esm2022/lib/form-field-hide-show.directive.mjs +8 -20
- package/esm2022/lib/input-clear-button.directive.mjs +8 -20
- package/esm2022/lib/required.directive.mjs +8 -20
- package/fesm2022/rxap-material-form-system.mjs +119 -256
- package/fesm2022/rxap-material-form-system.mjs.map +1 -1
- package/index.d.ts +0 -2
- package/lib/chip-input-adapter.directive.d.ts +2 -7
- package/lib/chip-list-iterator.directive.d.ts +2 -7
- package/lib/compare-with.directive.d.ts +2 -7
- package/lib/control-error.directive.d.ts +2 -7
- package/lib/control-errors.directive.d.ts +2 -7
- package/lib/form-controls/form-controls.component.d.ts +2 -2
- package/lib/form-field-hide-show.directive.d.ts +2 -7
- package/lib/input-clear-button.directive.d.ts +2 -7
- package/lib/required.directive.d.ts +2 -7
- package/package.json +10 -10
- package/esm2022/lib/form-controls/form-controls.component.module.mjs +0 -41
- package/esm2022/lib/material-form-system.module.mjs +0 -34
- package/lib/form-controls/form-controls.component.module.d.ts +0 -13
- package/lib/material-form-system.module.d.ts +0 -11
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { __decorate, __metadata } from 'tslib';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { TemplateRef, ViewContainerRef, ChangeDetectorRef, Directive, Inject, Input,
|
|
4
|
-
import * as i1 from '@angular/material/
|
|
5
|
-
import {
|
|
6
|
-
import * as
|
|
7
|
-
import { controlErrorChanges$, RxapFormControl, FormDirective
|
|
3
|
+
import { TemplateRef, ViewContainerRef, ChangeDetectorRef, Directive, Inject, Input, HostBinding, HostListener, isDevMode, Renderer2, ElementRef, EventEmitter, Component, ChangeDetectionStrategy, Optional, Output } from '@angular/core';
|
|
4
|
+
import * as i1 from '@angular/material/form-field';
|
|
5
|
+
import { MAT_FORM_FIELD, MatFormField } from '@angular/material/form-field';
|
|
6
|
+
import * as i5 from '@rxap/forms';
|
|
7
|
+
import { controlErrorChanges$, RxapFormControl, FormDirective } from '@rxap/forms';
|
|
8
8
|
import { tap, startWith, catchError, take, filter } from 'rxjs/operators';
|
|
9
9
|
import { Required, getFromObject, equals, coerceBoolean, clone, unique } from '@rxap/utilities';
|
|
10
|
+
import * as i1$1 from '@angular/material/select';
|
|
11
|
+
import { MatSelect } from '@angular/material/select';
|
|
10
12
|
import { Subscription, of } from 'rxjs';
|
|
11
13
|
import { RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS, RXAP_FORM_SYSTEM_HIDE_METADATA, RXAP_FORM_SYSTEM_SHOW_METADATA, ExtractFormDefinitionMixin } from '@rxap/form-system';
|
|
12
14
|
import { Mixin } from '@rxap/mixin';
|
|
13
15
|
import { getMetadata } from '@rxap/utilities/reflect-metadata';
|
|
14
|
-
import * as
|
|
15
|
-
import { MatLegacySelect } from '@angular/material/legacy-select';
|
|
16
|
-
import * as i8 from '@angular/router';
|
|
16
|
+
import * as i7 from '@angular/router';
|
|
17
17
|
import { Router } from '@angular/router';
|
|
18
|
-
import * as
|
|
19
|
-
import {
|
|
20
|
-
import '@angular/
|
|
21
|
-
import
|
|
22
|
-
import {
|
|
23
|
-
import * as i2 from '@angular/flex-layout/flex';
|
|
18
|
+
import * as i6 from '@angular/material/snack-bar';
|
|
19
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
20
|
+
import * as i4 from '@angular/material/progress-spinner';
|
|
21
|
+
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
22
|
+
import { NgClass, NgIf, AsyncPipe } from '@angular/common';
|
|
24
23
|
import * as i3 from '@angular/flex-layout/extended';
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import {
|
|
24
|
+
import { ExtendedModule } from '@angular/flex-layout/extended';
|
|
25
|
+
import * as i2 from '@angular/material/button';
|
|
26
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
27
|
+
import * as i1$2 from '@angular/flex-layout/flex';
|
|
28
|
+
import { FlexModule } from '@angular/flex-layout/flex';
|
|
29
|
+
import '@angular/localize/init';
|
|
30
30
|
import { ENTER, COMMA } from '@angular/cdk/keycodes';
|
|
31
31
|
import * as i2$1 from '@angular/forms';
|
|
32
|
-
import * as i1$3 from '@angular/material/
|
|
32
|
+
import * as i1$3 from '@angular/material/chips';
|
|
33
33
|
import { log } from '@rxap/utilities/rxjs';
|
|
34
34
|
|
|
35
35
|
class ControlErrorDirective {
|
|
@@ -75,8 +75,8 @@ class ControlErrorDirective {
|
|
|
75
75
|
ngOnDestroy() {
|
|
76
76
|
this._subscription?.unsubscribe();
|
|
77
77
|
}
|
|
78
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ControlErrorDirective, deps: [{ token:
|
|
79
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: ControlErrorDirective, selector: "[rxapControlError]", inputs: { key: ["rxapControlErrorKey", "key"] }, ngImport: i0 }); }
|
|
78
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ControlErrorDirective, deps: [{ token: MAT_FORM_FIELD }, { token: TemplateRef }, { token: ViewContainerRef }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
79
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: ControlErrorDirective, isStandalone: true, selector: "[rxapControlError]", inputs: { key: ["rxapControlErrorKey", "key"] }, ngImport: i0 }); }
|
|
80
80
|
}
|
|
81
81
|
__decorate([
|
|
82
82
|
Required,
|
|
@@ -87,10 +87,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
87
87
|
args: [{
|
|
88
88
|
// tslint:disable-next-line:directive-selector
|
|
89
89
|
selector: '[rxapControlError]',
|
|
90
|
+
standalone: true
|
|
90
91
|
}]
|
|
91
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
92
|
+
}], ctorParameters: function () { return [{ type: i1.MatFormField, decorators: [{
|
|
92
93
|
type: Inject,
|
|
93
|
-
args: [
|
|
94
|
+
args: [MAT_FORM_FIELD]
|
|
94
95
|
}] }, { type: i0.TemplateRef, decorators: [{
|
|
95
96
|
type: Inject,
|
|
96
97
|
args: [TemplateRef]
|
|
@@ -104,18 +105,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
104
105
|
type: Input,
|
|
105
106
|
args: ['rxapControlErrorKey']
|
|
106
107
|
}] } });
|
|
107
|
-
class ControlErrorDirectiveModule {
|
|
108
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ControlErrorDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
109
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: ControlErrorDirectiveModule, declarations: [ControlErrorDirective], exports: [ControlErrorDirective] }); }
|
|
110
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ControlErrorDirectiveModule }); }
|
|
111
|
-
}
|
|
112
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ControlErrorDirectiveModule, decorators: [{
|
|
113
|
-
type: NgModule,
|
|
114
|
-
args: [{
|
|
115
|
-
declarations: [ControlErrorDirective],
|
|
116
|
-
exports: [ControlErrorDirective],
|
|
117
|
-
}]
|
|
118
|
-
}] });
|
|
119
108
|
|
|
120
109
|
class ControlErrorsDirective {
|
|
121
110
|
static ngTemplateContextGuard(dir, ctx) {
|
|
@@ -155,18 +144,19 @@ class ControlErrorsDirective {
|
|
|
155
144
|
ngOnDestroy() {
|
|
156
145
|
this._subscription?.unsubscribe();
|
|
157
146
|
}
|
|
158
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ControlErrorsDirective, deps: [{ token:
|
|
159
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: ControlErrorsDirective, selector: "[rxapControlErrors]", ngImport: i0 }); }
|
|
147
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ControlErrorsDirective, deps: [{ token: MAT_FORM_FIELD }, { token: TemplateRef }, { token: ViewContainerRef }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
148
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: ControlErrorsDirective, isStandalone: true, selector: "[rxapControlErrors]", ngImport: i0 }); }
|
|
160
149
|
}
|
|
161
150
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ControlErrorsDirective, decorators: [{
|
|
162
151
|
type: Directive,
|
|
163
152
|
args: [{
|
|
164
153
|
// tslint:disable-next-line:directive-selector
|
|
165
154
|
selector: '[rxapControlErrors]',
|
|
155
|
+
standalone: true
|
|
166
156
|
}]
|
|
167
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
157
|
+
}], ctorParameters: function () { return [{ type: i1.MatFormField, decorators: [{
|
|
168
158
|
type: Inject,
|
|
169
|
-
args: [
|
|
159
|
+
args: [MAT_FORM_FIELD]
|
|
170
160
|
}] }, { type: i0.TemplateRef, decorators: [{
|
|
171
161
|
type: Inject,
|
|
172
162
|
args: [TemplateRef]
|
|
@@ -177,18 +167,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
177
167
|
type: Inject,
|
|
178
168
|
args: [ChangeDetectorRef]
|
|
179
169
|
}] }]; } });
|
|
180
|
-
class ControlErrorsDirectiveModule {
|
|
181
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ControlErrorsDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
182
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: ControlErrorsDirectiveModule, declarations: [ControlErrorsDirective], exports: [ControlErrorsDirective] }); }
|
|
183
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ControlErrorsDirectiveModule }); }
|
|
184
|
-
}
|
|
185
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ControlErrorsDirectiveModule, decorators: [{
|
|
186
|
-
type: NgModule,
|
|
187
|
-
args: [{
|
|
188
|
-
declarations: [ControlErrorsDirective],
|
|
189
|
-
exports: [ControlErrorsDirective],
|
|
190
|
-
}]
|
|
191
|
-
}] });
|
|
192
170
|
|
|
193
171
|
class InputClearButtonDirective {
|
|
194
172
|
get control() {
|
|
@@ -210,17 +188,18 @@ class InputClearButtonDirective {
|
|
|
210
188
|
this.control.value = null;
|
|
211
189
|
}
|
|
212
190
|
}
|
|
213
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: InputClearButtonDirective, deps: [{ token:
|
|
214
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: InputClearButtonDirective, selector: "[rxapInputClearButton]", host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.type", "attr.tabindex": "this.tabIndex", "disabled": "this.isDisabled" } }, ngImport: i0 }); }
|
|
191
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: InputClearButtonDirective, deps: [{ token: MAT_FORM_FIELD }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
192
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: InputClearButtonDirective, isStandalone: true, selector: "[rxapInputClearButton]", host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.type", "attr.tabindex": "this.tabIndex", "disabled": "this.isDisabled" } }, ngImport: i0 }); }
|
|
215
193
|
}
|
|
216
194
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: InputClearButtonDirective, decorators: [{
|
|
217
195
|
type: Directive,
|
|
218
196
|
args: [{
|
|
219
|
-
selector: '[rxapInputClearButton]'
|
|
197
|
+
selector: '[rxapInputClearButton]',
|
|
198
|
+
standalone: true
|
|
220
199
|
}]
|
|
221
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
200
|
+
}], ctorParameters: function () { return [{ type: i1.MatFormField, decorators: [{
|
|
222
201
|
type: Inject,
|
|
223
|
-
args: [
|
|
202
|
+
args: [MAT_FORM_FIELD]
|
|
224
203
|
}] }]; }, propDecorators: { type: [{
|
|
225
204
|
type: HostBinding,
|
|
226
205
|
args: ['attr.type']
|
|
@@ -234,18 +213,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
234
213
|
type: HostListener,
|
|
235
214
|
args: ['click']
|
|
236
215
|
}] } });
|
|
237
|
-
class InputClearButtonDirectiveModule {
|
|
238
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: InputClearButtonDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
239
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: InputClearButtonDirectiveModule, declarations: [InputClearButtonDirective], exports: [InputClearButtonDirective] }); }
|
|
240
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: InputClearButtonDirectiveModule }); }
|
|
241
|
-
}
|
|
242
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: InputClearButtonDirectiveModule, decorators: [{
|
|
243
|
-
type: NgModule,
|
|
244
|
-
args: [{
|
|
245
|
-
declarations: [InputClearButtonDirective],
|
|
246
|
-
exports: [InputClearButtonDirective]
|
|
247
|
-
}]
|
|
248
|
-
}] });
|
|
249
216
|
|
|
250
217
|
class RequiredDirective {
|
|
251
218
|
constructor(formField) {
|
|
@@ -263,30 +230,68 @@ class RequiredDirective {
|
|
|
263
230
|
throw new Error('The form field has not a control associated!');
|
|
264
231
|
}
|
|
265
232
|
}
|
|
266
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: RequiredDirective, deps: [{ token:
|
|
267
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: RequiredDirective, selector: "[formControlName][rxapRequired]", ngImport: i0 }); }
|
|
233
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: RequiredDirective, deps: [{ token: MAT_FORM_FIELD }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
234
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: RequiredDirective, isStandalone: true, selector: "[formControlName][rxapRequired]", ngImport: i0 }); }
|
|
268
235
|
}
|
|
269
236
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: RequiredDirective, decorators: [{
|
|
270
237
|
type: Directive,
|
|
271
238
|
args: [{
|
|
272
|
-
selector: '[formControlName][rxapRequired]'
|
|
239
|
+
selector: '[formControlName][rxapRequired]',
|
|
240
|
+
standalone: true
|
|
273
241
|
}]
|
|
274
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
242
|
+
}], ctorParameters: function () { return [{ type: i1.MatFormField, decorators: [{
|
|
275
243
|
type: Inject,
|
|
276
|
-
args: [
|
|
244
|
+
args: [MAT_FORM_FIELD]
|
|
277
245
|
}] }]; } });
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
246
|
+
|
|
247
|
+
class CompareWithDirective {
|
|
248
|
+
constructor(matSelect) {
|
|
249
|
+
this.matSelect = matSelect;
|
|
250
|
+
}
|
|
251
|
+
ngOnInit() {
|
|
252
|
+
this.matSelect.compareWith = this.compareWith.bind(this);
|
|
253
|
+
}
|
|
254
|
+
compareWith(o1, o2) {
|
|
255
|
+
if (this.objectPath) {
|
|
256
|
+
if (typeof o1 !== 'object' || typeof o2 !== 'object') {
|
|
257
|
+
if (isDevMode()) {
|
|
258
|
+
console.warn('At least one of the select options value is not an object');
|
|
259
|
+
}
|
|
260
|
+
return false;
|
|
261
|
+
}
|
|
262
|
+
if (o1 === null || o1 === undefined || o2 === null || o2 === undefined) {
|
|
263
|
+
if (isDevMode()) {
|
|
264
|
+
console.warn('At least one of the select options value is undefined or null');
|
|
265
|
+
}
|
|
266
|
+
return false;
|
|
267
|
+
}
|
|
268
|
+
const o1Value = getFromObject(o1, this.objectPath);
|
|
269
|
+
const o2Value = getFromObject(o2, this.objectPath);
|
|
270
|
+
if (o1Value === undefined || o2Value === undefined) {
|
|
271
|
+
return false;
|
|
272
|
+
}
|
|
273
|
+
return o1Value === o2Value;
|
|
274
|
+
}
|
|
275
|
+
else {
|
|
276
|
+
return equals(o1, o2);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: CompareWithDirective, deps: [{ token: MatSelect }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
280
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: CompareWithDirective, isStandalone: true, selector: "mat-select[rxapCompareWith]", inputs: { objectPath: ["rxapCompareWith", "objectPath"] }, ngImport: i0 }); }
|
|
282
281
|
}
|
|
283
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type:
|
|
284
|
-
type:
|
|
282
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: CompareWithDirective, decorators: [{
|
|
283
|
+
type: Directive,
|
|
285
284
|
args: [{
|
|
286
|
-
|
|
287
|
-
|
|
285
|
+
selector: 'mat-select[rxapCompareWith]',
|
|
286
|
+
standalone: true
|
|
288
287
|
}]
|
|
289
|
-
}]
|
|
288
|
+
}], ctorParameters: function () { return [{ type: i1$1.MatSelect, decorators: [{
|
|
289
|
+
type: Inject,
|
|
290
|
+
args: [MatSelect]
|
|
291
|
+
}] }]; }, propDecorators: { objectPath: [{
|
|
292
|
+
type: Input,
|
|
293
|
+
args: ['rxapCompareWith']
|
|
294
|
+
}] } });
|
|
290
295
|
|
|
291
296
|
class ExtractHideShowMixin {
|
|
292
297
|
extractOptions(formDefinition = this.formDefinition, controlId = this.control?.controlId ?? this.controlId) {
|
|
@@ -390,23 +395,24 @@ let FormFieldHideShowDirective = class FormFieldHideShowDirective {
|
|
|
390
395
|
reset() {
|
|
391
396
|
this.renderer.removeStyle(this.elementRef.nativeElement, 'display');
|
|
392
397
|
}
|
|
393
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormFieldHideShowDirective, deps: [{ token:
|
|
394
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormFieldHideShowDirective, selector: "mat-form-field[rxapHideShow]", ngImport: i0 }); }
|
|
398
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormFieldHideShowDirective, deps: [{ token: MAT_FORM_FIELD }, { token: Renderer2 }, { token: ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
399
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormFieldHideShowDirective, isStandalone: true, selector: "mat-form-field[rxapHideShow]", ngImport: i0 }); }
|
|
395
400
|
};
|
|
396
401
|
FormFieldHideShowDirective = __decorate([
|
|
397
402
|
Mixin(ExtractHideShowMixin, ExtractFormDefinitionMixin),
|
|
398
|
-
__metadata("design:paramtypes", [
|
|
403
|
+
__metadata("design:paramtypes", [MatFormField,
|
|
399
404
|
Renderer2,
|
|
400
405
|
ElementRef])
|
|
401
406
|
], FormFieldHideShowDirective);
|
|
402
407
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormFieldHideShowDirective, decorators: [{
|
|
403
408
|
type: Directive,
|
|
404
409
|
args: [{
|
|
405
|
-
selector: 'mat-form-field[rxapHideShow]'
|
|
410
|
+
selector: 'mat-form-field[rxapHideShow]',
|
|
411
|
+
standalone: true
|
|
406
412
|
}]
|
|
407
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
413
|
+
}], ctorParameters: function () { return [{ type: i1.MatFormField, decorators: [{
|
|
408
414
|
type: Inject,
|
|
409
|
-
args: [
|
|
415
|
+
args: [MAT_FORM_FIELD]
|
|
410
416
|
}] }, { type: i0.Renderer2, decorators: [{
|
|
411
417
|
type: Inject,
|
|
412
418
|
args: [Renderer2]
|
|
@@ -414,104 +420,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
414
420
|
type: Inject,
|
|
415
421
|
args: [ElementRef]
|
|
416
422
|
}] }]; } });
|
|
417
|
-
class FormFieldHideShowDirectiveModule {
|
|
418
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormFieldHideShowDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
419
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: FormFieldHideShowDirectiveModule, declarations: [FormFieldHideShowDirective], exports: [FormFieldHideShowDirective] }); }
|
|
420
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormFieldHideShowDirectiveModule }); }
|
|
421
|
-
}
|
|
422
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormFieldHideShowDirectiveModule, decorators: [{
|
|
423
|
-
type: NgModule,
|
|
424
|
-
args: [{
|
|
425
|
-
declarations: [FormFieldHideShowDirective],
|
|
426
|
-
exports: [FormFieldHideShowDirective]
|
|
427
|
-
}]
|
|
428
|
-
}] });
|
|
429
|
-
|
|
430
|
-
class MaterialFormSystemModule {
|
|
431
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MaterialFormSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
432
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: MaterialFormSystemModule, exports: [ControlErrorDirectiveModule,
|
|
433
|
-
ControlErrorsDirectiveModule,
|
|
434
|
-
InputClearButtonDirectiveModule,
|
|
435
|
-
RequiredDirectiveModule,
|
|
436
|
-
FormFieldHideShowDirectiveModule] }); }
|
|
437
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MaterialFormSystemModule, imports: [ControlErrorDirectiveModule,
|
|
438
|
-
ControlErrorsDirectiveModule,
|
|
439
|
-
InputClearButtonDirectiveModule,
|
|
440
|
-
RequiredDirectiveModule,
|
|
441
|
-
FormFieldHideShowDirectiveModule] }); }
|
|
442
|
-
}
|
|
443
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MaterialFormSystemModule, decorators: [{
|
|
444
|
-
type: NgModule,
|
|
445
|
-
args: [{
|
|
446
|
-
exports: [
|
|
447
|
-
ControlErrorDirectiveModule,
|
|
448
|
-
ControlErrorsDirectiveModule,
|
|
449
|
-
InputClearButtonDirectiveModule,
|
|
450
|
-
RequiredDirectiveModule,
|
|
451
|
-
FormFieldHideShowDirectiveModule
|
|
452
|
-
]
|
|
453
|
-
}]
|
|
454
|
-
}] });
|
|
455
|
-
|
|
456
|
-
class CompareWithDirective {
|
|
457
|
-
constructor(matSelect) {
|
|
458
|
-
this.matSelect = matSelect;
|
|
459
|
-
}
|
|
460
|
-
ngOnInit() {
|
|
461
|
-
this.matSelect.compareWith = this.compareWith.bind(this);
|
|
462
|
-
}
|
|
463
|
-
compareWith(o1, o2) {
|
|
464
|
-
if (this.objectPath) {
|
|
465
|
-
if (typeof o1 !== 'object' || typeof o2 !== 'object') {
|
|
466
|
-
if (isDevMode()) {
|
|
467
|
-
console.warn('At least one of the select options value is not an object');
|
|
468
|
-
}
|
|
469
|
-
return false;
|
|
470
|
-
}
|
|
471
|
-
if (o1 === null || o1 === undefined || o2 === null || o2 === undefined) {
|
|
472
|
-
if (isDevMode()) {
|
|
473
|
-
console.warn('At least one of the select options value is undefined or null');
|
|
474
|
-
}
|
|
475
|
-
return false;
|
|
476
|
-
}
|
|
477
|
-
const o1Value = getFromObject(o1, this.objectPath);
|
|
478
|
-
const o2Value = getFromObject(o2, this.objectPath);
|
|
479
|
-
if (o1Value === undefined || o2Value === undefined) {
|
|
480
|
-
return false;
|
|
481
|
-
}
|
|
482
|
-
return o1Value === o2Value;
|
|
483
|
-
}
|
|
484
|
-
else {
|
|
485
|
-
return equals(o1, o2);
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: CompareWithDirective, deps: [{ token: MatLegacySelect }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
489
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: CompareWithDirective, selector: "mat-select[rxapCompareWith]", inputs: { objectPath: ["rxapCompareWith", "objectPath"] }, ngImport: i0 }); }
|
|
490
|
-
}
|
|
491
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: CompareWithDirective, decorators: [{
|
|
492
|
-
type: Directive,
|
|
493
|
-
args: [{
|
|
494
|
-
selector: 'mat-select[rxapCompareWith]',
|
|
495
|
-
}]
|
|
496
|
-
}], ctorParameters: function () { return [{ type: i1$1.MatLegacySelect, decorators: [{
|
|
497
|
-
type: Inject,
|
|
498
|
-
args: [MatLegacySelect]
|
|
499
|
-
}] }]; }, propDecorators: { objectPath: [{
|
|
500
|
-
type: Input,
|
|
501
|
-
args: ['rxapCompareWith']
|
|
502
|
-
}] } });
|
|
503
|
-
class CompareWithDirectiveModule {
|
|
504
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: CompareWithDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
505
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: CompareWithDirectiveModule, declarations: [CompareWithDirective], exports: [CompareWithDirective] }); }
|
|
506
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: CompareWithDirectiveModule }); }
|
|
507
|
-
}
|
|
508
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: CompareWithDirectiveModule, decorators: [{
|
|
509
|
-
type: NgModule,
|
|
510
|
-
args: [{
|
|
511
|
-
declarations: [CompareWithDirective],
|
|
512
|
-
exports: [CompareWithDirective],
|
|
513
|
-
}]
|
|
514
|
-
}] });
|
|
515
423
|
|
|
516
424
|
class FormControlsComponent {
|
|
517
425
|
set allowResubmit(value) {
|
|
@@ -590,22 +498,30 @@ class FormControlsComponent {
|
|
|
590
498
|
logCurrentFormState() {
|
|
591
499
|
console.log(clone(this.formDirective.form.value));
|
|
592
500
|
}
|
|
593
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormControlsComponent, deps: [{ token: FormDirective }, { token: ChangeDetectorRef }, { token:
|
|
594
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: FormControlsComponent, selector: "rxap-form-controls", inputs: { allowResubmit: "allowResubmit", navigateAfterSubmit: "navigateAfterSubmit" }, outputs: { close: "close", submitted: "submitted" }, host: { classAttribute: "mfd-form-controls" }, ngImport: i0, template: "<div fxLayout=\"row\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"32px\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"end center\" fxLayoutGap=\"32px\" style=\"width: 100%\">\n <button (click)=\"reset()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n fxFlex=\"nogrow\"\n mat-stroked-button>\n <ng-container i18n>Reset</ng-container>\n </button>\n <button (click)=\"cancel()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"warn\" fxFlex=\"nogrow\"\n mat-stroked-button>\n <ng-container i18n>Cancel</ng-container>\n </button>\n <button (click)=\"submit(!allowResubmit)\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\">\n <ng-container i18n>Submit</ng-container>\n </span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"allowResubmit\" (click)=\"submit(true)\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n [disabled]=\"submitting$ | async\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\">\n <ng-container i18n>Submit and Close</ng-container>\n </span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"isDevMode\" type=\"button\" mat-button fxFlex=\"nogrow\" (click)=\"logCurrentFormState()\">Current Form State</button>\n </div>\n</div>\n", styles: ["button{overflow:hidden}button.invalid{border:6px solid darkred}\n"], dependencies: [{ kind: "
|
|
501
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormControlsComponent, deps: [{ token: FormDirective }, { token: ChangeDetectorRef }, { token: MatSnackBar }, { token: Router, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
502
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: FormControlsComponent, isStandalone: true, selector: "rxap-form-controls", inputs: { allowResubmit: "allowResubmit", navigateAfterSubmit: "navigateAfterSubmit" }, outputs: { close: "close", submitted: "submitted" }, host: { classAttribute: "mfd-form-controls" }, ngImport: i0, template: "<div fxLayout=\"row\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"32px\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"end center\" fxLayoutGap=\"32px\" style=\"width: 100%\">\n <button (click)=\"reset()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n fxFlex=\"nogrow\"\n mat-stroked-button>\n <ng-container i18n>Reset</ng-container>\n </button>\n <button (click)=\"cancel()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"warn\" fxFlex=\"nogrow\"\n mat-stroked-button>\n <ng-container i18n>Cancel</ng-container>\n </button>\n <button (click)=\"submit(!allowResubmit)\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\">\n <ng-container i18n>Submit</ng-container>\n </span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"allowResubmit\" (click)=\"submit(true)\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n [disabled]=\"submitting$ | async\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\">\n <ng-container i18n>Submit and Close</ng-container>\n </span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"isDevMode\" type=\"button\" mat-button fxFlex=\"nogrow\" (click)=\"logCurrentFormState()\">Current Form State</button>\n </div>\n</div>\n", styles: ["button{overflow:hidden}button.invalid{border:6px solid darkred}\n"], dependencies: [{ kind: "ngmodule", type: FlexModule }, { kind: "directive", type: i1$2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i1$2.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i1$2.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i1$2.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: ExtendedModule }, { kind: "directive", type: i3.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }, { kind: "directive", type: i3.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
595
503
|
}
|
|
596
504
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormControlsComponent, decorators: [{
|
|
597
505
|
type: Component,
|
|
598
|
-
args: [{ selector: 'rxap-form-controls', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'mfd-form-controls' },
|
|
599
|
-
|
|
506
|
+
args: [{ selector: 'rxap-form-controls', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'mfd-form-controls' }, standalone: true, imports: [
|
|
507
|
+
FlexModule,
|
|
508
|
+
MatButtonModule,
|
|
509
|
+
ExtendedModule,
|
|
510
|
+
NgClass,
|
|
511
|
+
MatProgressSpinnerModule,
|
|
512
|
+
NgIf,
|
|
513
|
+
AsyncPipe
|
|
514
|
+
], template: "<div fxLayout=\"row\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"32px\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"end center\" fxLayoutGap=\"32px\" style=\"width: 100%\">\n <button (click)=\"reset()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n fxFlex=\"nogrow\"\n mat-stroked-button>\n <ng-container i18n>Reset</ng-container>\n </button>\n <button (click)=\"cancel()\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"warn\" fxFlex=\"nogrow\"\n mat-stroked-button>\n <ng-container i18n>Cancel</ng-container>\n </button>\n <button (click)=\"submit(!allowResubmit)\"\n [disabled]=\"submitting$ | async\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\">\n <ng-container i18n>Submit</ng-container>\n </span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"allowResubmit\" (click)=\"submit(true)\"\n type=\"button\"\n color=\"primary\"\n fxFlex=\"nogrow\"\n [ngClass]=\"{ invalid: invalid }\"\n [disabled]=\"submitting$ | async\"\n mat-raised-button>\n <span fxLayout=\"row\" fxLayoutGap=\"4px\" fxLayoutAlign=\"start center\">\n <span fxFlex=\"nogrow\">\n <ng-container i18n>Submit and Close</ng-container>\n </span>\n <mat-spinner [fxShow]=\"submitting$ | async\" fxFlex=\"nogrow\" mode=\"indeterminate\" [diameter]=\"15\" color=\"accent\"></mat-spinner>\n </span>\n </button>\n <button *ngIf=\"isDevMode\" type=\"button\" mat-button fxFlex=\"nogrow\" (click)=\"logCurrentFormState()\">Current Form State</button>\n </div>\n</div>\n", styles: ["button{overflow:hidden}button.invalid{border:6px solid darkred}\n"] }]
|
|
515
|
+
}], ctorParameters: function () { return [{ type: i5.FormDirective, decorators: [{
|
|
600
516
|
type: Inject,
|
|
601
517
|
args: [FormDirective]
|
|
602
518
|
}] }, { type: i0.ChangeDetectorRef, decorators: [{
|
|
603
519
|
type: Inject,
|
|
604
520
|
args: [ChangeDetectorRef]
|
|
605
|
-
}] }, { type:
|
|
521
|
+
}] }, { type: i6.MatSnackBar, decorators: [{
|
|
606
522
|
type: Inject,
|
|
607
|
-
args: [
|
|
608
|
-
}] }, { type:
|
|
523
|
+
args: [MatSnackBar]
|
|
524
|
+
}] }, { type: i7.Router, decorators: [{
|
|
609
525
|
type: Optional
|
|
610
526
|
}, {
|
|
611
527
|
type: Inject,
|
|
@@ -620,37 +536,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
620
536
|
type: Output
|
|
621
537
|
}] } });
|
|
622
538
|
|
|
623
|
-
class FormControlsComponentModule {
|
|
624
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormControlsComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
625
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: FormControlsComponentModule, declarations: [FormControlsComponent], imports: [MatLegacyProgressSpinnerModule,
|
|
626
|
-
FlexLayoutModule,
|
|
627
|
-
MatLegacyButtonModule,
|
|
628
|
-
CommonModule,
|
|
629
|
-
RxapFormsModule,
|
|
630
|
-
MatLegacySnackBarModule], exports: [FormControlsComponent] }); }
|
|
631
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormControlsComponentModule, imports: [MatLegacyProgressSpinnerModule,
|
|
632
|
-
FlexLayoutModule,
|
|
633
|
-
MatLegacyButtonModule,
|
|
634
|
-
CommonModule,
|
|
635
|
-
RxapFormsModule,
|
|
636
|
-
MatLegacySnackBarModule] }); }
|
|
637
|
-
}
|
|
638
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormControlsComponentModule, decorators: [{
|
|
639
|
-
type: NgModule,
|
|
640
|
-
args: [{
|
|
641
|
-
declarations: [FormControlsComponent],
|
|
642
|
-
imports: [
|
|
643
|
-
MatLegacyProgressSpinnerModule,
|
|
644
|
-
FlexLayoutModule,
|
|
645
|
-
MatLegacyButtonModule,
|
|
646
|
-
CommonModule,
|
|
647
|
-
RxapFormsModule,
|
|
648
|
-
MatLegacySnackBarModule,
|
|
649
|
-
],
|
|
650
|
-
exports: [FormControlsComponent]
|
|
651
|
-
}]
|
|
652
|
-
}] });
|
|
653
|
-
|
|
654
539
|
class ChipInputAdapterDirective {
|
|
655
540
|
constructor(matChipInput, ngControl) {
|
|
656
541
|
this.matChipInput = matChipInput;
|
|
@@ -670,27 +555,16 @@ class ChipInputAdapterDirective {
|
|
|
670
555
|
}))
|
|
671
556
|
.subscribe();
|
|
672
557
|
}
|
|
673
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ChipInputAdapterDirective, deps: [{ token: i1$3.
|
|
674
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: ChipInputAdapterDirective, selector: "[matChipInputFor][rxapChipInputAdapter]", ngImport: i0 }); }
|
|
558
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ChipInputAdapterDirective, deps: [{ token: i1$3.MatChipInput }, { token: i2$1.NgControl }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
559
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: ChipInputAdapterDirective, isStandalone: true, selector: "[matChipInputFor][rxapChipInputAdapter]", ngImport: i0 }); }
|
|
675
560
|
}
|
|
676
561
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ChipInputAdapterDirective, decorators: [{
|
|
677
562
|
type: Directive,
|
|
678
563
|
args: [{
|
|
679
|
-
selector: '[matChipInputFor][rxapChipInputAdapter]'
|
|
680
|
-
|
|
681
|
-
}], ctorParameters: function () { return [{ type: i1$3.MatLegacyChipInput }, { type: i2$1.NgControl }]; } });
|
|
682
|
-
class ChipInputAdapterDirectiveModule {
|
|
683
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ChipInputAdapterDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
684
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: ChipInputAdapterDirectiveModule, declarations: [ChipInputAdapterDirective], exports: [ChipInputAdapterDirective] }); }
|
|
685
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ChipInputAdapterDirectiveModule }); }
|
|
686
|
-
}
|
|
687
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ChipInputAdapterDirectiveModule, decorators: [{
|
|
688
|
-
type: NgModule,
|
|
689
|
-
args: [{
|
|
690
|
-
exports: [ChipInputAdapterDirective],
|
|
691
|
-
declarations: [ChipInputAdapterDirective]
|
|
564
|
+
selector: '[matChipInputFor][rxapChipInputAdapter]',
|
|
565
|
+
standalone: true
|
|
692
566
|
}]
|
|
693
|
-
}] });
|
|
567
|
+
}], ctorParameters: function () { return [{ type: i1$3.MatChipInput }, { type: i2$1.NgControl }]; } });
|
|
694
568
|
|
|
695
569
|
function getTypeName(type) {
|
|
696
570
|
return type['name'] || typeof type;
|
|
@@ -772,30 +646,19 @@ class ChipListIteratorDirective {
|
|
|
772
646
|
view.context.$implicit = record.item;
|
|
773
647
|
}
|
|
774
648
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ChipListIteratorDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: i2$1.NgControl }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
775
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: ChipListIteratorDirective, selector: "[rxapChipListIterator]", ngImport: i0 }); }
|
|
649
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: ChipListIteratorDirective, isStandalone: true, selector: "[rxapChipListIterator]", ngImport: i0 }); }
|
|
776
650
|
}
|
|
777
651
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ChipListIteratorDirective, decorators: [{
|
|
778
652
|
type: Directive,
|
|
779
653
|
args: [{
|
|
780
|
-
selector: '[rxapChipListIterator]'
|
|
654
|
+
selector: '[rxapChipListIterator]',
|
|
655
|
+
standalone: true
|
|
781
656
|
}]
|
|
782
657
|
}], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: i2$1.NgControl }, { type: i0.IterableDiffers }]; } });
|
|
783
|
-
class ChipListIteratorDirectiveModule {
|
|
784
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ChipListIteratorDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
785
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: ChipListIteratorDirectiveModule, declarations: [ChipListIteratorDirective], exports: [ChipListIteratorDirective] }); }
|
|
786
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ChipListIteratorDirectiveModule }); }
|
|
787
|
-
}
|
|
788
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ChipListIteratorDirectiveModule, decorators: [{
|
|
789
|
-
type: NgModule,
|
|
790
|
-
args: [{
|
|
791
|
-
exports: [ChipListIteratorDirective],
|
|
792
|
-
declarations: [ChipListIteratorDirective]
|
|
793
|
-
}]
|
|
794
|
-
}] });
|
|
795
658
|
|
|
796
659
|
/**
|
|
797
660
|
* Generated bundle index. Do not edit.
|
|
798
661
|
*/
|
|
799
662
|
|
|
800
|
-
export { ChipInputAdapterDirective,
|
|
663
|
+
export { ChipInputAdapterDirective, ChipListIteratorDirective, CompareWithDirective, ControlErrorDirective, ControlErrorsDirective, ExtractHideShowMixin, FormControlsComponent, FormFieldHideShowDirective, InputClearButtonDirective, RequiredDirective };
|
|
801
664
|
//# sourceMappingURL=rxap-material-form-system.mjs.map
|