@rxap/forms 14.1.0 → 16.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/esm2022/lib/directives/form-control-error.directive.mjs +60 -0
- package/esm2022/lib/directives/form-control-mark-dirty.directive.mjs +32 -0
- package/esm2022/lib/directives/form-control-mark-pristine.directive.mjs +32 -0
- package/esm2022/lib/directives/form-control-mark-touched.directive.mjs +25 -0
- package/esm2022/lib/directives/form-control-mark-untouched.directive.mjs +32 -0
- package/esm2022/lib/directives/form-control-name.directive.mjs +65 -0
- package/esm2022/lib/directives/form-group-name.directive.mjs +62 -0
- package/esm2022/lib/directives/form-loaded.directive.mjs +42 -0
- package/esm2022/lib/directives/form-loading-error.directive.mjs +42 -0
- package/esm2022/lib/directives/form-loading.directive.mjs +42 -0
- package/esm2022/lib/directives/form-submit-failed.directive.mjs +42 -0
- package/esm2022/lib/directives/form-submit-invalid.directive.mjs +40 -0
- package/esm2022/lib/directives/form-submit-successful.directive.mjs +40 -0
- package/esm2022/lib/directives/form-submit.directive.mjs +79 -0
- package/esm2022/lib/directives/form-submitting.directive.mjs +42 -0
- package/esm2022/lib/directives/form.directive.mjs +552 -0
- package/esm2022/lib/directives/forms.module.mjs +101 -0
- package/esm2022/lib/directives/parent-control-container.directive.mjs +26 -0
- package/esm2022/lib/form-array.mjs +252 -0
- package/esm2022/lib/form-control.mjs +169 -0
- package/esm2022/lib/form-group.mjs +201 -0
- package/esm2022/lib/model.mjs +2 -0
- package/esm2022/lib/types.mjs +2 -0
- package/{esm2020 → esm2022}/lib/validators/is-complex.mjs +1 -1
- package/{fesm2020 → fesm2022}/rxap-forms.mjs +244 -238
- package/fesm2022/rxap-forms.mjs.map +1 -0
- package/lib/directives/form-control-error.directive.d.ts +1 -1
- package/lib/directives/form-control-mark-dirty.directive.d.ts +1 -1
- package/lib/directives/form-control-mark-pristine.directive.d.ts +1 -1
- package/lib/directives/form-control-mark-touched.directive.d.ts +1 -1
- package/lib/directives/form-control-mark-untouched.directive.d.ts +1 -1
- package/lib/directives/form-control-name.directive.d.ts +1 -1
- package/lib/directives/form-group-name.directive.d.ts +1 -1
- package/lib/directives/form-loaded.directive.d.ts +1 -1
- package/lib/directives/form-loading-error.directive.d.ts +1 -1
- package/lib/directives/form-loading.directive.d.ts +1 -1
- package/lib/directives/form-submit-failed.directive.d.ts +1 -1
- package/lib/directives/form-submit-invalid.directive.d.ts +1 -1
- package/lib/directives/form-submit-successful.directive.d.ts +1 -1
- package/lib/directives/form-submit.directive.d.ts +1 -1
- package/lib/directives/form-submitting.directive.d.ts +1 -1
- package/lib/directives/form.directive.d.ts +2 -2
- package/lib/directives/parent-control-container.directive.d.ts +1 -1
- package/lib/form-group.d.ts +2 -2
- package/lib/model.d.ts +9 -9
- package/lib/types.d.ts +17 -17
- package/package.json +20 -25
- package/esm2020/lib/directives/form-control-error.directive.mjs +0 -59
- package/esm2020/lib/directives/form-control-mark-dirty.directive.mjs +0 -31
- package/esm2020/lib/directives/form-control-mark-pristine.directive.mjs +0 -31
- package/esm2020/lib/directives/form-control-mark-touched.directive.mjs +0 -24
- package/esm2020/lib/directives/form-control-mark-untouched.directive.mjs +0 -31
- package/esm2020/lib/directives/form-control-name.directive.mjs +0 -64
- package/esm2020/lib/directives/form-group-name.directive.mjs +0 -61
- package/esm2020/lib/directives/form-loaded.directive.mjs +0 -41
- package/esm2020/lib/directives/form-loading-error.directive.mjs +0 -41
- package/esm2020/lib/directives/form-loading.directive.mjs +0 -41
- package/esm2020/lib/directives/form-submit-failed.directive.mjs +0 -41
- package/esm2020/lib/directives/form-submit-invalid.directive.mjs +0 -39
- package/esm2020/lib/directives/form-submit-successful.directive.mjs +0 -39
- package/esm2020/lib/directives/form-submit.directive.mjs +0 -78
- package/esm2020/lib/directives/form-submitting.directive.mjs +0 -41
- package/esm2020/lib/directives/form.directive.mjs +0 -551
- package/esm2020/lib/directives/forms.module.mjs +0 -100
- package/esm2020/lib/directives/parent-control-container.directive.mjs +0 -25
- package/esm2020/lib/form-array.mjs +0 -252
- package/esm2020/lib/form-control.mjs +0 -169
- package/esm2020/lib/form-group.mjs +0 -195
- package/esm2020/lib/model.mjs +0 -2
- package/esm2020/lib/types.mjs +0 -2
- package/fesm2015/rxap-forms.mjs +0 -2814
- package/fesm2015/rxap-forms.mjs.map +0 -1
- package/fesm2020/rxap-forms.mjs.map +0 -1
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/control-actions.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/control-value-accessor.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/decorators/control-async-validator.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/decorators/control-change.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/decorators/control-set-value.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/decorators/control-validator.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/decorators/form.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/decorators/metadata-keys.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/decorators/use-form-array.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/decorators/use-form-control.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/decorators/use-form-group.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/directives/models.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/directives/tokens.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/form-builder.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/tokens.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/validators/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/validators/is-array.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/validators/is-boolean.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/validators/is-date.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/validators/is-email.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/validators/is-enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/validators/is-int.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/validators/is-ip.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/validators/is-number.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/validators/is-object.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/validators/is-phone-number.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/validators/is-port.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/validators/is-string.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/validators/is-url.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/validators/is-uuid.mjs +0 -0
- /package/{esm2020 → esm2022}/rxap-forms.mjs +0 -0
|
@@ -91,28 +91,6 @@ function selectControlValue$(control, mapFn) {
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
class RxapFormArray extends UntypedFormArray {
|
|
94
|
-
constructor(controls, options) {
|
|
95
|
-
super(controls, options);
|
|
96
|
-
this.controls = controls;
|
|
97
|
-
this._readonly = false;
|
|
98
|
-
this.value$ = controlValueChanges$(this);
|
|
99
|
-
this.disabled$ = controlDisabled$(this);
|
|
100
|
-
this.enabled$ = controlEnabled$(this);
|
|
101
|
-
this.status$ = controlStatusChanges$(this);
|
|
102
|
-
this.errors$ = controlErrorChanges$(this);
|
|
103
|
-
this.touchChanges = new Subject();
|
|
104
|
-
this.touch$ = this.touchChanges
|
|
105
|
-
.asObservable()
|
|
106
|
-
.pipe(distinctUntilChanged());
|
|
107
|
-
this.dirtyChanges = new Subject();
|
|
108
|
-
this.dirty$ = this.dirtyChanges
|
|
109
|
-
.asObservable()
|
|
110
|
-
.pipe(distinctUntilChanged());
|
|
111
|
-
this.controlId = options.controlId;
|
|
112
|
-
this._builder = options.builder;
|
|
113
|
-
this._controlInsertedFn = options.controlInsertedFn;
|
|
114
|
-
this._controlRemovedFn = options.controlRemovedFn;
|
|
115
|
-
}
|
|
116
94
|
get readonly() {
|
|
117
95
|
return this.parent?.readonly ?? this._readonly;
|
|
118
96
|
}
|
|
@@ -149,6 +127,28 @@ class RxapFormArray extends UntypedFormArray {
|
|
|
149
127
|
}
|
|
150
128
|
return this.controlId;
|
|
151
129
|
}
|
|
130
|
+
constructor(controls, options) {
|
|
131
|
+
super(controls, options);
|
|
132
|
+
this.controls = controls;
|
|
133
|
+
this._readonly = false;
|
|
134
|
+
this.value$ = controlValueChanges$(this);
|
|
135
|
+
this.disabled$ = controlDisabled$(this);
|
|
136
|
+
this.enabled$ = controlEnabled$(this);
|
|
137
|
+
this.status$ = controlStatusChanges$(this);
|
|
138
|
+
this.errors$ = controlErrorChanges$(this);
|
|
139
|
+
this.touchChanges = new Subject();
|
|
140
|
+
this.touch$ = this.touchChanges
|
|
141
|
+
.asObservable()
|
|
142
|
+
.pipe(distinctUntilChanged());
|
|
143
|
+
this.dirtyChanges = new Subject();
|
|
144
|
+
this.dirty$ = this.dirtyChanges
|
|
145
|
+
.asObservable()
|
|
146
|
+
.pipe(distinctUntilChanged());
|
|
147
|
+
this.controlId = options.controlId;
|
|
148
|
+
this._builder = options.builder;
|
|
149
|
+
this._controlInsertedFn = options.controlInsertedFn;
|
|
150
|
+
this._controlRemovedFn = options.controlRemovedFn;
|
|
151
|
+
}
|
|
152
152
|
select(mapFn) {
|
|
153
153
|
return this.value$.pipe(map(mapFn), distinctUntilChanged());
|
|
154
154
|
}
|
|
@@ -349,21 +349,6 @@ var MetadataKeys;
|
|
|
349
349
|
})(MetadataKeys || (MetadataKeys = {}));
|
|
350
350
|
|
|
351
351
|
class RxapFormGroup extends UntypedFormGroup {
|
|
352
|
-
constructor(controls, options) {
|
|
353
|
-
super(controls, options);
|
|
354
|
-
this.controls = controls;
|
|
355
|
-
this._readonly = false;
|
|
356
|
-
this.touchChanges = new Subject();
|
|
357
|
-
this.dirtyChanges = new Subject();
|
|
358
|
-
this.touch$ = this.touchChanges.asObservable().pipe(distinctUntilChanged());
|
|
359
|
-
this.dirty$ = this.dirtyChanges.asObservable().pipe(distinctUntilChanged());
|
|
360
|
-
this.value$ = controlValueChanges$(this);
|
|
361
|
-
this.disabled$ = controlDisabled$(this);
|
|
362
|
-
this.enabled$ = controlEnabled$(this);
|
|
363
|
-
this.status$ = controlStatusChanges$(this);
|
|
364
|
-
this.errors$ = controlErrorChanges$(this);
|
|
365
|
-
this.controlId = options.controlId;
|
|
366
|
-
}
|
|
367
352
|
/**
|
|
368
353
|
* @internal
|
|
369
354
|
*/
|
|
@@ -406,6 +391,21 @@ class RxapFormGroup extends UntypedFormGroup {
|
|
|
406
391
|
}
|
|
407
392
|
return this.controlId;
|
|
408
393
|
}
|
|
394
|
+
constructor(controls, options) {
|
|
395
|
+
super(controls, options);
|
|
396
|
+
this.controls = controls;
|
|
397
|
+
this._readonly = false;
|
|
398
|
+
this.touchChanges = new Subject();
|
|
399
|
+
this.dirtyChanges = new Subject();
|
|
400
|
+
this.touch$ = this.touchChanges.asObservable().pipe(distinctUntilChanged());
|
|
401
|
+
this.dirty$ = this.dirtyChanges.asObservable().pipe(distinctUntilChanged());
|
|
402
|
+
this.value$ = controlValueChanges$(this);
|
|
403
|
+
this.disabled$ = controlDisabled$(this);
|
|
404
|
+
this.enabled$ = controlEnabled$(this);
|
|
405
|
+
this.status$ = controlStatusChanges$(this);
|
|
406
|
+
this.errors$ = controlErrorChanges$(this);
|
|
407
|
+
this.controlId = options.controlId;
|
|
408
|
+
}
|
|
409
409
|
select(mapFn) {
|
|
410
410
|
return selectControlValue$(this, mapFn);
|
|
411
411
|
}
|
|
@@ -432,7 +432,9 @@ class RxapFormGroup extends UntypedFormGroup {
|
|
|
432
432
|
}
|
|
433
433
|
setValue(valueOrObservable, options) {
|
|
434
434
|
if (isObservable(valueOrObservable)) {
|
|
435
|
-
return valueOrObservable.subscribe((value) =>
|
|
435
|
+
return valueOrObservable.subscribe((value) =>
|
|
436
|
+
// TODO : refactor RxapFormGroup to typed FormGroup
|
|
437
|
+
super.setValue(value, options));
|
|
436
438
|
}
|
|
437
439
|
super.setValue(valueOrObservable, options);
|
|
438
440
|
}
|
|
@@ -444,15 +446,19 @@ class RxapFormGroup extends UntypedFormGroup {
|
|
|
444
446
|
if (value == null /* both `null` and `undefined` */)
|
|
445
447
|
return;
|
|
446
448
|
Object.keys(value).forEach(name => {
|
|
447
|
-
|
|
448
|
-
|
|
449
|
+
// TODO : resolve type issue
|
|
450
|
+
const controls = this.controls;
|
|
451
|
+
if (controls[name]) {
|
|
452
|
+
controls[name].patchValue(value[name], { ...(options ?? {}), onlySelf: true });
|
|
449
453
|
}
|
|
450
454
|
});
|
|
451
455
|
this.updateValueAndValidity(options);
|
|
452
456
|
}
|
|
453
457
|
patchValue(valueOrObservable, options) {
|
|
454
458
|
if (isObservable(valueOrObservable)) {
|
|
455
|
-
return valueOrObservable.subscribe((value) =>
|
|
459
|
+
return valueOrObservable.subscribe((value) =>
|
|
460
|
+
// TODO : refactor RxapFormGroup to typed FormGroup
|
|
461
|
+
super.patchValue(value, options));
|
|
456
462
|
}
|
|
457
463
|
this._patchValue(valueOrObservable, options);
|
|
458
464
|
}
|
|
@@ -539,28 +545,6 @@ class RxapFormGroup extends UntypedFormGroup {
|
|
|
539
545
|
}
|
|
540
546
|
|
|
541
547
|
class RxapFormControl extends UntypedFormControl {
|
|
542
|
-
constructor(formState, options) {
|
|
543
|
-
super(formState, options);
|
|
544
|
-
this._readonly = false;
|
|
545
|
-
this.touchChanges = new Subject();
|
|
546
|
-
this.dirtyChanges = new Subject();
|
|
547
|
-
this.touch$ = this.touchChanges
|
|
548
|
-
.asObservable()
|
|
549
|
-
.pipe(distinctUntilChanged());
|
|
550
|
-
this.dirty$ = this.dirtyChanges
|
|
551
|
-
.asObservable()
|
|
552
|
-
.pipe(distinctUntilChanged());
|
|
553
|
-
this.value$ = controlValueChanges$(this);
|
|
554
|
-
this.disabled$ = controlDisabled$(this);
|
|
555
|
-
this.enabled$ = controlEnabled$(this);
|
|
556
|
-
this.status$ = controlStatusChanges$(this);
|
|
557
|
-
this.errors$ = controlErrorChanges$(this);
|
|
558
|
-
this._onSetValue = [];
|
|
559
|
-
this.stateChanges = new Subject();
|
|
560
|
-
this.readonly$ = controlReadonly$(this);
|
|
561
|
-
this.controlId = options.controlId;
|
|
562
|
-
this.initialState = formState;
|
|
563
|
-
}
|
|
564
548
|
/**
|
|
565
549
|
* @internal
|
|
566
550
|
*/
|
|
@@ -597,6 +581,28 @@ class RxapFormControl extends UntypedFormControl {
|
|
|
597
581
|
}
|
|
598
582
|
return this.controlId;
|
|
599
583
|
}
|
|
584
|
+
constructor(formState, options) {
|
|
585
|
+
super(formState, options);
|
|
586
|
+
this._readonly = false;
|
|
587
|
+
this.touchChanges = new Subject();
|
|
588
|
+
this.dirtyChanges = new Subject();
|
|
589
|
+
this.touch$ = this.touchChanges
|
|
590
|
+
.asObservable()
|
|
591
|
+
.pipe(distinctUntilChanged());
|
|
592
|
+
this.dirty$ = this.dirtyChanges
|
|
593
|
+
.asObservable()
|
|
594
|
+
.pipe(distinctUntilChanged());
|
|
595
|
+
this.value$ = controlValueChanges$(this);
|
|
596
|
+
this.disabled$ = controlDisabled$(this);
|
|
597
|
+
this.enabled$ = controlEnabled$(this);
|
|
598
|
+
this.status$ = controlStatusChanges$(this);
|
|
599
|
+
this.errors$ = controlErrorChanges$(this);
|
|
600
|
+
this._onSetValue = [];
|
|
601
|
+
this.stateChanges = new Subject();
|
|
602
|
+
this.readonly$ = controlReadonly$(this);
|
|
603
|
+
this.controlId = options.controlId;
|
|
604
|
+
this.initialState = formState;
|
|
605
|
+
}
|
|
600
606
|
setValue(valueOrObservable, options) {
|
|
601
607
|
if (isObservable(valueOrObservable)) {
|
|
602
608
|
return valueOrObservable.subscribe((value) => {
|
|
@@ -1156,6 +1162,30 @@ const RXAP_FORM_LOAD_FAILED_METHOD = new InjectionToken('rxap/form/load-failed-m
|
|
|
1156
1162
|
const RXAP_FORM_LOAD_SUCCESSFUL_METHOD = new InjectionToken('rxap/form/load-successful-method');
|
|
1157
1163
|
|
|
1158
1164
|
class FormDirective extends FormGroupDirective {
|
|
1165
|
+
get submitting() {
|
|
1166
|
+
return this.submitting$.value;
|
|
1167
|
+
}
|
|
1168
|
+
get submitError() {
|
|
1169
|
+
return this.submitError$.value;
|
|
1170
|
+
}
|
|
1171
|
+
get loading() {
|
|
1172
|
+
return this.loading$.value;
|
|
1173
|
+
}
|
|
1174
|
+
get loaded() {
|
|
1175
|
+
return this.loaded$.value;
|
|
1176
|
+
}
|
|
1177
|
+
get loadingError() {
|
|
1178
|
+
return this.loadingError$.value;
|
|
1179
|
+
}
|
|
1180
|
+
set useFormDefinition(value) {
|
|
1181
|
+
if (value) {
|
|
1182
|
+
this._formDefinition = value;
|
|
1183
|
+
this.form = value.rxapFormGroup;
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
get formDefinition() {
|
|
1187
|
+
return this._formDefinition;
|
|
1188
|
+
}
|
|
1159
1189
|
constructor(cdr, formDefinition = null,
|
|
1160
1190
|
// skip self, bc the token is set to null
|
|
1161
1191
|
submitMethod = null,
|
|
@@ -1210,30 +1240,6 @@ class FormDirective extends FormGroupDirective {
|
|
|
1210
1240
|
this.loadingIndicatorService?.attachLoading(this.loading$);
|
|
1211
1241
|
this.loadingIndicatorService?.attachLoading(this.submitting$);
|
|
1212
1242
|
}
|
|
1213
|
-
get submitting() {
|
|
1214
|
-
return this.submitting$.value;
|
|
1215
|
-
}
|
|
1216
|
-
get submitError() {
|
|
1217
|
-
return this.submitError$.value;
|
|
1218
|
-
}
|
|
1219
|
-
get loading() {
|
|
1220
|
-
return this.loading$.value;
|
|
1221
|
-
}
|
|
1222
|
-
get loaded() {
|
|
1223
|
-
return this.loaded$.value;
|
|
1224
|
-
}
|
|
1225
|
-
get loadingError() {
|
|
1226
|
-
return this.loadingError$.value;
|
|
1227
|
-
}
|
|
1228
|
-
set useFormDefinition(value) {
|
|
1229
|
-
if (value) {
|
|
1230
|
-
this._formDefinition = value;
|
|
1231
|
-
this.form = value.rxapFormGroup;
|
|
1232
|
-
}
|
|
1233
|
-
}
|
|
1234
|
-
get formDefinition() {
|
|
1235
|
-
return this._formDefinition;
|
|
1236
|
-
}
|
|
1237
1243
|
ngOnChanges(changes) {
|
|
1238
1244
|
super.ngOnChanges(changes);
|
|
1239
1245
|
const formChange = changes.form;
|
|
@@ -1501,56 +1507,56 @@ class FormDirective extends FormGroupDirective {
|
|
|
1501
1507
|
this._formDefinition.ngOnDestroy();
|
|
1502
1508
|
}
|
|
1503
1509
|
}
|
|
1510
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormDirective, deps: [{ token: ChangeDetectorRef }, { token: RXAP_FORM_DEFINITION, optional: true }, { token: RXAP_FORM_SUBMIT_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_LOAD_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_LOAD_FAILED_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_LOAD_SUCCESSFUL_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_SUBMIT_FAILED_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_DEFINITION_BUILDER, optional: true, skipSelf: true }, { token: LoadingIndicatorService, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1511
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormDirective, selector: "form[rxapForm]:not([formGroup]):not([ngForm]),rxap-form,form[rxapForm]", inputs: { initial: "initial", useFormDefinition: ["rxapForm", "useFormDefinition"], submitMethod: "submitMethod" }, outputs: { ngSubmit: "ngSubmit", rxapSubmit: "rxapSubmit", invalidSubmit: "invalidSubmit", submitSuccessful$: "submitSuccessful" }, host: { listeners: { "reset": "onReset()" }, properties: { "class.rxap-submitting": "this.submitting", "class.rxap-submit-error": "this.submitError", "class.rxap-loading": "this.loading", "class.rxap-loaded": "this.loaded", "class.rxap-loading-error": "this.loadingError" } }, providers: [
|
|
1512
|
+
{
|
|
1513
|
+
provide: ControlContainer,
|
|
1514
|
+
// ignore coverage
|
|
1515
|
+
useExisting: forwardRef(() => FormDirective)
|
|
1516
|
+
},
|
|
1517
|
+
// region form provider clear
|
|
1518
|
+
// form provider that are directly associated with the current form
|
|
1519
|
+
// are cleared to prevent that inner forms can access this providers
|
|
1520
|
+
// Example: The parent form has a submit method provider and the inner should
|
|
1521
|
+
// not have a submit method provider. If the parent submit method provider is
|
|
1522
|
+
// not cleared then the inner form uses the parent submit method provider on
|
|
1523
|
+
// submit
|
|
1524
|
+
{
|
|
1525
|
+
provide: RXAP_FORM_SUBMIT_METHOD,
|
|
1526
|
+
useValue: null,
|
|
1527
|
+
},
|
|
1528
|
+
{
|
|
1529
|
+
provide: RXAP_FORM_LOAD_METHOD,
|
|
1530
|
+
useValue: null,
|
|
1531
|
+
},
|
|
1532
|
+
{
|
|
1533
|
+
provide: RXAP_FORM_LOAD_FAILED_METHOD,
|
|
1534
|
+
useValue: null,
|
|
1535
|
+
},
|
|
1536
|
+
{
|
|
1537
|
+
provide: RXAP_FORM_LOAD_SUCCESSFUL_METHOD,
|
|
1538
|
+
useValue: null,
|
|
1539
|
+
},
|
|
1540
|
+
{
|
|
1541
|
+
provide: RXAP_FORM_SUBMIT_FAILED_METHOD,
|
|
1542
|
+
useValue: null,
|
|
1543
|
+
},
|
|
1544
|
+
{
|
|
1545
|
+
provide: RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD,
|
|
1546
|
+
useValue: null,
|
|
1547
|
+
},
|
|
1548
|
+
{
|
|
1549
|
+
provide: RXAP_FORM_DEFINITION_BUILDER,
|
|
1550
|
+
useValue: null,
|
|
1551
|
+
},
|
|
1552
|
+
// endregion
|
|
1553
|
+
], exportAs: ["rxapForm"], usesInheritance: true, usesOnChanges: true, ngImport: i0 }); }
|
|
1504
1554
|
}
|
|
1505
|
-
FormDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FormDirective, deps: [{ token: ChangeDetectorRef }, { token: RXAP_FORM_DEFINITION, optional: true }, { token: RXAP_FORM_SUBMIT_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_LOAD_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_LOAD_FAILED_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_LOAD_SUCCESSFUL_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_SUBMIT_FAILED_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_DEFINITION_BUILDER, optional: true, skipSelf: true }, { token: LoadingIndicatorService, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1506
|
-
FormDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: FormDirective, selector: "form[rxapForm]:not([formGroup]):not([ngForm]),rxap-form,form[rxapForm]", inputs: { initial: "initial", useFormDefinition: ["rxapForm", "useFormDefinition"], submitMethod: "submitMethod" }, outputs: { ngSubmit: "ngSubmit", rxapSubmit: "rxapSubmit", invalidSubmit: "invalidSubmit", submitSuccessful$: "submitSuccessful" }, host: { listeners: { "reset": "onReset()" }, properties: { "class.rxap-submitting": "this.submitting", "class.rxap-submit-error": "this.submitError", "class.rxap-loading": "this.loading", "class.rxap-loaded": "this.loaded", "class.rxap-loading-error": "this.loadingError" } }, providers: [
|
|
1507
|
-
{
|
|
1508
|
-
provide: ControlContainer,
|
|
1509
|
-
// ignore coverage
|
|
1510
|
-
useExisting: forwardRef(() => FormDirective)
|
|
1511
|
-
},
|
|
1512
|
-
// region form provider clear
|
|
1513
|
-
// form provider that are directly associated with the current form
|
|
1514
|
-
// are cleared to prevent that inner forms can access this providers
|
|
1515
|
-
// Example: The parent form has a submit method provider and the inner should
|
|
1516
|
-
// not have a submit method provider. If the parent submit method provider is
|
|
1517
|
-
// not cleared then the inner form uses the parent submit method provider on
|
|
1518
|
-
// submit
|
|
1519
|
-
{
|
|
1520
|
-
provide: RXAP_FORM_SUBMIT_METHOD,
|
|
1521
|
-
useValue: null,
|
|
1522
|
-
},
|
|
1523
|
-
{
|
|
1524
|
-
provide: RXAP_FORM_LOAD_METHOD,
|
|
1525
|
-
useValue: null,
|
|
1526
|
-
},
|
|
1527
|
-
{
|
|
1528
|
-
provide: RXAP_FORM_LOAD_FAILED_METHOD,
|
|
1529
|
-
useValue: null,
|
|
1530
|
-
},
|
|
1531
|
-
{
|
|
1532
|
-
provide: RXAP_FORM_LOAD_SUCCESSFUL_METHOD,
|
|
1533
|
-
useValue: null,
|
|
1534
|
-
},
|
|
1535
|
-
{
|
|
1536
|
-
provide: RXAP_FORM_SUBMIT_FAILED_METHOD,
|
|
1537
|
-
useValue: null,
|
|
1538
|
-
},
|
|
1539
|
-
{
|
|
1540
|
-
provide: RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD,
|
|
1541
|
-
useValue: null,
|
|
1542
|
-
},
|
|
1543
|
-
{
|
|
1544
|
-
provide: RXAP_FORM_DEFINITION_BUILDER,
|
|
1545
|
-
useValue: null,
|
|
1546
|
-
},
|
|
1547
|
-
// endregion
|
|
1548
|
-
], exportAs: ["rxapForm"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1549
1555
|
__decorate([
|
|
1550
1556
|
Required,
|
|
1551
1557
|
__metadata("design:type", Object)
|
|
1552
1558
|
], FormDirective.prototype, "_formDefinition", void 0);
|
|
1553
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1559
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormDirective, decorators: [{
|
|
1554
1560
|
type: Directive,
|
|
1555
1561
|
args: [{
|
|
1556
1562
|
selector: 'form[rxapForm]:not([formGroup]):not([ngForm]),rxap-form,form[rxapForm]',
|
|
@@ -1711,10 +1717,10 @@ class FormSubmitFailedDirective {
|
|
|
1711
1717
|
ngOnDestroy() {
|
|
1712
1718
|
this.subscription?.unsubscribe();
|
|
1713
1719
|
}
|
|
1720
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormSubmitFailedDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1721
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormSubmitFailedDirective, selector: "[rxapFormSubmitFailed]", ngImport: i0 }); }
|
|
1714
1722
|
}
|
|
1715
|
-
|
|
1716
|
-
FormSubmitFailedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: FormSubmitFailedDirective, selector: "[rxapFormSubmitFailed]", ngImport: i0 });
|
|
1717
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FormSubmitFailedDirective, decorators: [{
|
|
1723
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormSubmitFailedDirective, decorators: [{
|
|
1718
1724
|
type: Directive,
|
|
1719
1725
|
args: [{
|
|
1720
1726
|
selector: '[rxapFormSubmitFailed]'
|
|
@@ -1747,10 +1753,10 @@ class FormLoadingDirective {
|
|
|
1747
1753
|
ngOnDestroy() {
|
|
1748
1754
|
this.subscription?.unsubscribe();
|
|
1749
1755
|
}
|
|
1756
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormLoadingDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1757
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormLoadingDirective, selector: "[rxapFormLoading]", ngImport: i0 }); }
|
|
1750
1758
|
}
|
|
1751
|
-
|
|
1752
|
-
FormLoadingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: FormLoadingDirective, selector: "[rxapFormLoading]", ngImport: i0 });
|
|
1753
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FormLoadingDirective, decorators: [{
|
|
1759
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormLoadingDirective, decorators: [{
|
|
1754
1760
|
type: Directive,
|
|
1755
1761
|
args: [{
|
|
1756
1762
|
selector: '[rxapFormLoading]'
|
|
@@ -1783,10 +1789,10 @@ class FormSubmittingDirective {
|
|
|
1783
1789
|
ngOnDestroy() {
|
|
1784
1790
|
this.subscription?.unsubscribe();
|
|
1785
1791
|
}
|
|
1792
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormSubmittingDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1793
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormSubmittingDirective, selector: "[rxapFormSubmitting]", ngImport: i0 }); }
|
|
1786
1794
|
}
|
|
1787
|
-
|
|
1788
|
-
FormSubmittingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: FormSubmittingDirective, selector: "[rxapFormSubmitting]", ngImport: i0 });
|
|
1789
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FormSubmittingDirective, decorators: [{
|
|
1795
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormSubmittingDirective, decorators: [{
|
|
1790
1796
|
type: Directive,
|
|
1791
1797
|
args: [{
|
|
1792
1798
|
selector: '[rxapFormSubmitting]'
|
|
@@ -1819,10 +1825,10 @@ class FormLoadedDirective {
|
|
|
1819
1825
|
ngOnDestroy() {
|
|
1820
1826
|
this.subscription?.unsubscribe();
|
|
1821
1827
|
}
|
|
1828
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormLoadedDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1829
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormLoadedDirective, selector: "[rxapFormLoaded]", ngImport: i0 }); }
|
|
1822
1830
|
}
|
|
1823
|
-
|
|
1824
|
-
FormLoadedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: FormLoadedDirective, selector: "[rxapFormLoaded]", ngImport: i0 });
|
|
1825
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FormLoadedDirective, decorators: [{
|
|
1831
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormLoadedDirective, decorators: [{
|
|
1826
1832
|
type: Directive,
|
|
1827
1833
|
args: [{
|
|
1828
1834
|
selector: '[rxapFormLoaded]'
|
|
@@ -1855,10 +1861,10 @@ class FormLoadingErrorDirective {
|
|
|
1855
1861
|
ngOnDestroy() {
|
|
1856
1862
|
this.subscription?.unsubscribe();
|
|
1857
1863
|
}
|
|
1864
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormLoadingErrorDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1865
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormLoadingErrorDirective, selector: "[rxapFormLoadingError]", ngImport: i0 }); }
|
|
1858
1866
|
}
|
|
1859
|
-
|
|
1860
|
-
FormLoadingErrorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: FormLoadingErrorDirective, selector: "[rxapFormLoadingError]", ngImport: i0 });
|
|
1861
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FormLoadingErrorDirective, decorators: [{
|
|
1867
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormLoadingErrorDirective, decorators: [{
|
|
1862
1868
|
type: Directive,
|
|
1863
1869
|
args: [{
|
|
1864
1870
|
selector: '[rxapFormLoadingError]'
|
|
@@ -1898,9 +1904,9 @@ class FormControlErrorDirective {
|
|
|
1898
1904
|
ngOnDestroy() {
|
|
1899
1905
|
this.subscription?.unsubscribe();
|
|
1900
1906
|
}
|
|
1907
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormControlErrorDirective, deps: [{ token: i0.TemplateRef }, { token: i1.ControlContainer, host: true, skipSelf: true }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1908
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormControlErrorDirective, selector: "[rxapFormControlError]", inputs: { name: ["rxapFormControlErrorFrom", "name"], errorKey: ["rxapFormControlErrorIf", "errorKey"] }, ngImport: i0 }); }
|
|
1901
1909
|
}
|
|
1902
|
-
FormControlErrorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FormControlErrorDirective, deps: [{ token: i0.TemplateRef }, { token: i1.ControlContainer, host: true, skipSelf: true }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1903
|
-
FormControlErrorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: FormControlErrorDirective, selector: "[rxapFormControlError]", inputs: { name: ["rxapFormControlErrorFrom", "name"], errorKey: ["rxapFormControlErrorIf", "errorKey"] }, ngImport: i0 });
|
|
1904
1910
|
__decorate([
|
|
1905
1911
|
Required,
|
|
1906
1912
|
__metadata("design:type", String)
|
|
@@ -1909,7 +1915,7 @@ __decorate([
|
|
|
1909
1915
|
Required,
|
|
1910
1916
|
__metadata("design:type", String)
|
|
1911
1917
|
], FormControlErrorDirective.prototype, "errorKey", void 0);
|
|
1912
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1918
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormControlErrorDirective, decorators: [{
|
|
1913
1919
|
type: Directive,
|
|
1914
1920
|
args: [{
|
|
1915
1921
|
selector: '[rxapFormControlError]'
|
|
@@ -1939,10 +1945,10 @@ class FormControlMarkDirtyDirective {
|
|
|
1939
1945
|
control?.markAsDirty();
|
|
1940
1946
|
}
|
|
1941
1947
|
}
|
|
1948
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormControlMarkDirtyDirective, deps: [{ token: i1.ControlContainer }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1949
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormControlMarkDirtyDirective, selector: "[rxapFormControlMarkDirty]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 }); }
|
|
1942
1950
|
}
|
|
1943
|
-
|
|
1944
|
-
FormControlMarkDirtyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: FormControlMarkDirtyDirective, selector: "[rxapFormControlMarkDirty]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
|
|
1945
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FormControlMarkDirtyDirective, decorators: [{
|
|
1951
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormControlMarkDirtyDirective, decorators: [{
|
|
1946
1952
|
type: Directive,
|
|
1947
1953
|
args: [{
|
|
1948
1954
|
selector: '[rxapFormControlMarkDirty]'
|
|
@@ -1959,10 +1965,10 @@ class FormControlMarkTouchedDirective {
|
|
|
1959
1965
|
onClick() {
|
|
1960
1966
|
this.parent.control?.markAllAsTouched();
|
|
1961
1967
|
}
|
|
1968
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormControlMarkTouchedDirective, deps: [{ token: i1.ControlContainer }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1969
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormControlMarkTouchedDirective, selector: "[rxapFormControlMarkTouched]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 }); }
|
|
1962
1970
|
}
|
|
1963
|
-
|
|
1964
|
-
FormControlMarkTouchedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: FormControlMarkTouchedDirective, selector: "[rxapFormControlMarkTouched]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
|
|
1965
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FormControlMarkTouchedDirective, decorators: [{
|
|
1971
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormControlMarkTouchedDirective, decorators: [{
|
|
1966
1972
|
type: Directive,
|
|
1967
1973
|
args: [{
|
|
1968
1974
|
selector: '[rxapFormControlMarkTouched]'
|
|
@@ -1985,10 +1991,10 @@ class FormControlMarkUntouchedDirective {
|
|
|
1985
1991
|
control?.markAsUntouched();
|
|
1986
1992
|
}
|
|
1987
1993
|
}
|
|
1994
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormControlMarkUntouchedDirective, deps: [{ token: i1.ControlContainer }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1995
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormControlMarkUntouchedDirective, selector: "[rxapFormControlMarkUntouched]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 }); }
|
|
1988
1996
|
}
|
|
1989
|
-
|
|
1990
|
-
FormControlMarkUntouchedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: FormControlMarkUntouchedDirective, selector: "[rxapFormControlMarkUntouched]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
|
|
1991
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FormControlMarkUntouchedDirective, decorators: [{
|
|
1997
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormControlMarkUntouchedDirective, decorators: [{
|
|
1992
1998
|
type: Directive,
|
|
1993
1999
|
args: [{
|
|
1994
2000
|
selector: '[rxapFormControlMarkUntouched]'
|
|
@@ -2011,10 +2017,10 @@ class FormControlMarkPristineDirective {
|
|
|
2011
2017
|
control?.markAsPristine();
|
|
2012
2018
|
}
|
|
2013
2019
|
}
|
|
2020
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormControlMarkPristineDirective, deps: [{ token: i1.ControlContainer }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2021
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormControlMarkPristineDirective, selector: "[rxapFormControlMarkPristine]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 }); }
|
|
2014
2022
|
}
|
|
2015
|
-
|
|
2016
|
-
FormControlMarkPristineDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: FormControlMarkPristineDirective, selector: "[rxapFormControlMarkPristine]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
|
|
2017
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FormControlMarkPristineDirective, decorators: [{
|
|
2023
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormControlMarkPristineDirective, decorators: [{
|
|
2018
2024
|
type: Directive,
|
|
2019
2025
|
args: [{
|
|
2020
2026
|
selector: '[rxapFormControlMarkPristine]'
|
|
@@ -2025,6 +2031,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
|
|
|
2025
2031
|
}] } });
|
|
2026
2032
|
|
|
2027
2033
|
class FormSubmitDirective extends ConfirmClick {
|
|
2034
|
+
set resetAfterSubmit(value) {
|
|
2035
|
+
this._resetAfterSubmit = coerceBoolean(value);
|
|
2036
|
+
}
|
|
2028
2037
|
constructor(formDirective, router = null) {
|
|
2029
2038
|
super();
|
|
2030
2039
|
this.formDirective = formDirective;
|
|
@@ -2033,9 +2042,6 @@ class FormSubmitDirective extends ConfirmClick {
|
|
|
2033
2042
|
this.afterSubmit = new EventEmitter();
|
|
2034
2043
|
this._resetAfterSubmit = false;
|
|
2035
2044
|
}
|
|
2036
|
-
set resetAfterSubmit(value) {
|
|
2037
|
-
this._resetAfterSubmit = coerceBoolean(value);
|
|
2038
|
-
}
|
|
2039
2045
|
execute() {
|
|
2040
2046
|
this.formDirective.form.markAllAsDirty();
|
|
2041
2047
|
this.formDirective.form.markAllAsTouched();
|
|
@@ -2059,10 +2065,10 @@ class FormSubmitDirective extends ConfirmClick {
|
|
|
2059
2065
|
ngOnDestroy() {
|
|
2060
2066
|
this.subscription?.unsubscribe();
|
|
2061
2067
|
}
|
|
2068
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormSubmitDirective, deps: [{ token: FormDirective }, { token: Router, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2069
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormSubmitDirective, selector: "[rxapFormSubmit]", inputs: { type: "type", resetAfterSubmit: "resetAfterSubmit", navigateAfterSubmit: "navigateAfterSubmit" }, outputs: { afterSubmit: "afterSubmit" }, host: { listeners: { "click": "onClick()", "confirmed": "onConfirm()" }, properties: { "type": "this.type" } }, usesInheritance: true, ngImport: i0 }); }
|
|
2062
2070
|
}
|
|
2063
|
-
|
|
2064
|
-
FormSubmitDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: FormSubmitDirective, selector: "[rxapFormSubmit]", inputs: { type: "type", resetAfterSubmit: "resetAfterSubmit", navigateAfterSubmit: "navigateAfterSubmit" }, outputs: { afterSubmit: "afterSubmit" }, host: { listeners: { "click": "onClick()", "confirmed": "onConfirm()" }, properties: { "type": "this.type" } }, usesInheritance: true, ngImport: i0 });
|
|
2065
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FormSubmitDirective, decorators: [{
|
|
2071
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormSubmitDirective, decorators: [{
|
|
2066
2072
|
type: Directive,
|
|
2067
2073
|
args: [{
|
|
2068
2074
|
selector: '[rxapFormSubmit]',
|
|
@@ -2100,22 +2106,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
|
|
|
2100
2106
|
* @deprecated use the ParentControlContainerDirective
|
|
2101
2107
|
*/
|
|
2102
2108
|
class FormGroupNameDirective extends FormGroupName {
|
|
2103
|
-
constructor(parent, validators, asyncValidators) {
|
|
2104
|
-
super(parent, validators, asyncValidators);
|
|
2105
|
-
}
|
|
2106
2109
|
get control() {
|
|
2107
2110
|
// TODO : add type check
|
|
2108
2111
|
return this.formDirective.getFormGroup(this);
|
|
2109
2112
|
}
|
|
2113
|
+
constructor(parent, validators, asyncValidators) {
|
|
2114
|
+
super(parent, validators, asyncValidators);
|
|
2115
|
+
}
|
|
2116
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormGroupNameDirective, deps: [{ token: i1.ControlContainer, optional: true, skipSelf: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2117
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormGroupNameDirective, selector: "[rxapFormGroupName]", inputs: { name: ["rxapFormGroupName", "name"] }, providers: [
|
|
2118
|
+
{
|
|
2119
|
+
provide: ControlContainer,
|
|
2120
|
+
useExisting: forwardRef(() => FormGroupNameDirective)
|
|
2121
|
+
}
|
|
2122
|
+
], exportAs: ["rxapFormGroup"], usesInheritance: true, ngImport: i0 }); }
|
|
2110
2123
|
}
|
|
2111
|
-
|
|
2112
|
-
FormGroupNameDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: FormGroupNameDirective, selector: "[rxapFormGroupName]", inputs: { name: ["rxapFormGroupName", "name"] }, providers: [
|
|
2113
|
-
{
|
|
2114
|
-
provide: ControlContainer,
|
|
2115
|
-
useExisting: forwardRef(() => FormGroupNameDirective)
|
|
2116
|
-
}
|
|
2117
|
-
], exportAs: ["rxapFormGroup"], usesInheritance: true, ngImport: i0 });
|
|
2118
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FormGroupNameDirective, decorators: [{
|
|
2124
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormGroupNameDirective, decorators: [{
|
|
2119
2125
|
type: Directive,
|
|
2120
2126
|
args: [{
|
|
2121
2127
|
selector: '[rxapFormGroupName]',
|
|
@@ -2160,15 +2166,15 @@ class FormControlNameDirective extends FormControlName {
|
|
|
2160
2166
|
constructor(parent, validators, asyncValidators, valueAccessors) {
|
|
2161
2167
|
super(parent, validators, asyncValidators, valueAccessors, null);
|
|
2162
2168
|
}
|
|
2169
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormControlNameDirective, deps: [{ token: i1.ControlContainer, optional: true, skipSelf: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }, { token: NG_VALUE_ACCESSOR, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2170
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormControlNameDirective, selector: "[rxapFormControlName]", inputs: { name: ["rxapFormControlName", "name"] }, providers: [
|
|
2171
|
+
{
|
|
2172
|
+
provide: NgControl,
|
|
2173
|
+
useExisting: forwardRef(() => FormControlNameDirective)
|
|
2174
|
+
}
|
|
2175
|
+
], exportAs: ["rxapFormControl"], usesInheritance: true, ngImport: i0 }); }
|
|
2163
2176
|
}
|
|
2164
|
-
|
|
2165
|
-
FormControlNameDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: FormControlNameDirective, selector: "[rxapFormControlName]", inputs: { name: ["rxapFormControlName", "name"] }, providers: [
|
|
2166
|
-
{
|
|
2167
|
-
provide: NgControl,
|
|
2168
|
-
useExisting: forwardRef(() => FormControlNameDirective)
|
|
2169
|
-
}
|
|
2170
|
-
], exportAs: ["rxapFormControl"], usesInheritance: true, ngImport: i0 });
|
|
2171
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FormControlNameDirective, decorators: [{
|
|
2177
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormControlNameDirective, decorators: [{
|
|
2172
2178
|
type: Directive,
|
|
2173
2179
|
args: [{
|
|
2174
2180
|
selector: '[rxapFormControlName]',
|
|
@@ -2211,15 +2217,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
|
|
|
2211
2217
|
}] } });
|
|
2212
2218
|
|
|
2213
2219
|
class ParentControlContainerDirective {
|
|
2220
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ParentControlContainerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2221
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: ParentControlContainerDirective, selector: "[formControlName][parentControlContainer],[formControlGroup][parentControlContainer]", providers: [
|
|
2222
|
+
{
|
|
2223
|
+
provide: ControlContainer,
|
|
2224
|
+
useExisting: ControlContainer
|
|
2225
|
+
}
|
|
2226
|
+
], ngImport: i0 }); }
|
|
2214
2227
|
}
|
|
2215
|
-
|
|
2216
|
-
ParentControlContainerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: ParentControlContainerDirective, selector: "[formControlName][parentControlContainer],[formControlGroup][parentControlContainer]", providers: [
|
|
2217
|
-
{
|
|
2218
|
-
provide: ControlContainer,
|
|
2219
|
-
useExisting: ControlContainer
|
|
2220
|
-
}
|
|
2221
|
-
], ngImport: i0 });
|
|
2222
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ParentControlContainerDirective, decorators: [{
|
|
2228
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ParentControlContainerDirective, decorators: [{
|
|
2223
2229
|
type: Directive,
|
|
2224
2230
|
args: [{
|
|
2225
2231
|
selector: '[formControlName][parentControlContainer],[formControlGroup][parentControlContainer]',
|
|
@@ -2247,10 +2253,10 @@ class FormSubmitSuccessfulDirective {
|
|
|
2247
2253
|
ngOnDestroy() {
|
|
2248
2254
|
this.subscription?.unsubscribe();
|
|
2249
2255
|
}
|
|
2256
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormSubmitSuccessfulDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2257
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormSubmitSuccessfulDirective, selector: "[rxapFormSubmitSuccessful]", ngImport: i0 }); }
|
|
2250
2258
|
}
|
|
2251
|
-
|
|
2252
|
-
FormSubmitSuccessfulDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: FormSubmitSuccessfulDirective, selector: "[rxapFormSubmitSuccessful]", ngImport: i0 });
|
|
2253
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FormSubmitSuccessfulDirective, decorators: [{
|
|
2259
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormSubmitSuccessfulDirective, decorators: [{
|
|
2254
2260
|
type: Directive,
|
|
2255
2261
|
args: [{
|
|
2256
2262
|
selector: '[rxapFormSubmitSuccessful]'
|
|
@@ -2281,10 +2287,10 @@ class FormSubmitInvalidDirective {
|
|
|
2281
2287
|
ngOnDestroy() {
|
|
2282
2288
|
this.subscription?.unsubscribe();
|
|
2283
2289
|
}
|
|
2290
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormSubmitInvalidDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2291
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: FormSubmitInvalidDirective, selector: "[rxapFormSubmitInvalid]", ngImport: i0 }); }
|
|
2284
2292
|
}
|
|
2285
|
-
|
|
2286
|
-
FormSubmitInvalidDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: FormSubmitInvalidDirective, selector: "[rxapFormSubmitInvalid]", ngImport: i0 });
|
|
2287
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FormSubmitInvalidDirective, decorators: [{
|
|
2293
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormSubmitInvalidDirective, decorators: [{
|
|
2288
2294
|
type: Directive,
|
|
2289
2295
|
args: [{
|
|
2290
2296
|
selector: '[rxapFormSubmitInvalid]'
|
|
@@ -2301,43 +2307,43 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
|
|
|
2301
2307
|
}] }]; } });
|
|
2302
2308
|
|
|
2303
2309
|
class RxapFormsModule {
|
|
2304
|
-
}
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2310
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: RxapFormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2311
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: RxapFormsModule, declarations: [FormDirective,
|
|
2312
|
+
FormSubmitFailedDirective,
|
|
2313
|
+
FormLoadingDirective,
|
|
2314
|
+
FormSubmittingDirective,
|
|
2315
|
+
FormLoadingErrorDirective,
|
|
2316
|
+
FormLoadedDirective,
|
|
2317
|
+
FormControlErrorDirective,
|
|
2318
|
+
FormControlMarkDirtyDirective,
|
|
2319
|
+
FormControlMarkTouchedDirective,
|
|
2320
|
+
FormControlMarkUntouchedDirective,
|
|
2321
|
+
FormControlMarkPristineDirective,
|
|
2322
|
+
FormSubmitDirective,
|
|
2323
|
+
FormGroupNameDirective,
|
|
2324
|
+
FormControlNameDirective,
|
|
2325
|
+
ParentControlContainerDirective,
|
|
2326
|
+
FormSubmitSuccessfulDirective,
|
|
2327
|
+
FormSubmitInvalidDirective], exports: [FormDirective,
|
|
2328
|
+
FormSubmitFailedDirective,
|
|
2329
|
+
FormLoadingDirective,
|
|
2330
|
+
FormSubmittingDirective,
|
|
2331
|
+
FormLoadingErrorDirective,
|
|
2332
|
+
FormLoadedDirective,
|
|
2333
|
+
FormControlErrorDirective,
|
|
2334
|
+
FormControlMarkDirtyDirective,
|
|
2335
|
+
FormControlMarkTouchedDirective,
|
|
2336
|
+
FormControlMarkUntouchedDirective,
|
|
2337
|
+
FormControlMarkPristineDirective,
|
|
2338
|
+
FormSubmitDirective,
|
|
2339
|
+
FormGroupNameDirective,
|
|
2340
|
+
FormControlNameDirective,
|
|
2341
|
+
ParentControlContainerDirective,
|
|
2342
|
+
FormSubmitSuccessfulDirective,
|
|
2343
|
+
FormSubmitInvalidDirective] }); }
|
|
2344
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: RxapFormsModule }); }
|
|
2345
|
+
}
|
|
2346
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: RxapFormsModule, decorators: [{
|
|
2341
2347
|
type: NgModule,
|
|
2342
2348
|
args: [{
|
|
2343
2349
|
declarations: [
|