@rxap/forms 12.7.3 → 13.0.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/index.mjs +53 -0
- package/esm2020/lib/control-actions.mjs +77 -0
- package/esm2020/lib/control-value-accessor.mjs +14 -0
- package/esm2020/lib/decorators/control-async-validator.mjs +10 -0
- package/esm2020/lib/decorators/control-change.mjs +10 -0
- package/esm2020/lib/decorators/control-set-value.mjs +11 -0
- package/esm2020/lib/decorators/control-validator.mjs +10 -0
- package/esm2020/lib/decorators/form.mjs +7 -0
- package/esm2020/lib/decorators/metadata-keys.mjs +12 -0
- package/esm2020/lib/decorators/use-form-array.mjs +13 -0
- package/esm2020/lib/decorators/use-form-control.mjs +8 -0
- package/esm2020/lib/decorators/use-form-group.mjs +8 -0
- package/esm2020/lib/directives/form-control-error.directive.mjs +59 -0
- package/esm2020/lib/directives/form-control-mark-dirty.directive.mjs +31 -0
- package/esm2020/lib/directives/form-control-mark-pristine.directive.mjs +31 -0
- package/esm2020/lib/directives/form-control-mark-touched.directive.mjs +24 -0
- package/esm2020/lib/directives/form-control-mark-untouched.directive.mjs +31 -0
- package/esm2020/lib/directives/form-control-name.directive.mjs +64 -0
- package/esm2020/lib/directives/form-group-name.directive.mjs +61 -0
- package/esm2020/lib/directives/form-loaded.directive.mjs +41 -0
- package/esm2020/lib/directives/form-loading-error.directive.mjs +41 -0
- package/esm2020/lib/directives/form-loading.directive.mjs +41 -0
- package/esm2020/lib/directives/form-submit-failed.directive.mjs +41 -0
- package/esm2020/lib/directives/form-submit-invalid.directive.mjs +39 -0
- package/esm2020/lib/directives/form-submit-successful.directive.mjs +39 -0
- package/esm2020/lib/directives/form-submit.directive.mjs +74 -0
- package/esm2020/lib/directives/form-submitting.directive.mjs +41 -0
- package/esm2020/lib/directives/form.directive.mjs +541 -0
- package/esm2020/lib/directives/forms.module.mjs +100 -0
- package/esm2020/lib/directives/models.mjs +12 -0
- package/esm2020/lib/directives/parent-control-container.directive.mjs +25 -0
- package/esm2020/lib/directives/tokens.mjs +10 -0
- package/esm2020/lib/form-array.mjs +216 -0
- package/esm2020/lib/form-builder.mjs +374 -0
- package/esm2020/lib/form-control.mjs +169 -0
- package/esm2020/lib/form-group.mjs +181 -0
- package/esm2020/lib/model.mjs +2 -0
- package/esm2020/lib/tokens.mjs +4 -0
- package/esm2020/lib/types.mjs +2 -0
- package/esm2020/lib/validators/index.mjs +29 -0
- package/esm2020/lib/validators/is-array.mjs +18 -0
- package/esm2020/lib/validators/is-boolean.mjs +18 -0
- package/esm2020/lib/validators/is-complex.mjs +87 -0
- package/esm2020/lib/validators/is-date.mjs +18 -0
- package/esm2020/lib/validators/is-email.mjs +19 -0
- package/esm2020/lib/validators/is-enum.mjs +18 -0
- package/esm2020/lib/validators/is-int.mjs +19 -0
- package/esm2020/lib/validators/is-ip.mjs +19 -0
- package/esm2020/lib/validators/is-number.mjs +56 -0
- package/esm2020/lib/validators/is-object.mjs +18 -0
- package/esm2020/lib/validators/is-phone-number.mjs +19 -0
- package/esm2020/lib/validators/is-string.mjs +18 -0
- package/esm2020/lib/validators/is-url.mjs +19 -0
- package/esm2020/rxap-forms.mjs +5 -0
- package/fesm2015/rxap-forms.mjs +2713 -0
- package/fesm2015/rxap-forms.mjs.map +1 -0
- package/{fesm2015/rxap-forms.js → fesm2020/rxap-forms.mjs} +148 -142
- package/fesm2020/rxap-forms.mjs.map +1 -0
- package/package.json +35 -21
- package/src/schematics/ng-add/index.js +1 -1
- package/src/schematics/ng-add/index.js.map +1 -1
- package/bundles/rxap-forms.umd.js +0 -3521
- package/bundles/rxap-forms.umd.js.map +0 -1
- package/esm2015/index.js +0 -53
- package/esm2015/index.js.map +0 -1
- package/esm2015/lib/control-actions.js +0 -80
- package/esm2015/lib/control-actions.js.map +0 -1
- package/esm2015/lib/control-value-accessor.js +0 -14
- package/esm2015/lib/control-value-accessor.js.map +0 -1
- package/esm2015/lib/decorators/control-async-validator.js +0 -10
- package/esm2015/lib/decorators/control-async-validator.js.map +0 -1
- package/esm2015/lib/decorators/control-change.js +0 -10
- package/esm2015/lib/decorators/control-change.js.map +0 -1
- package/esm2015/lib/decorators/control-set-value.js +0 -8
- package/esm2015/lib/decorators/control-set-value.js.map +0 -1
- package/esm2015/lib/decorators/control-validator.js +0 -10
- package/esm2015/lib/decorators/control-validator.js.map +0 -1
- package/esm2015/lib/decorators/form.js +0 -7
- package/esm2015/lib/decorators/form.js.map +0 -1
- package/esm2015/lib/decorators/metadata-keys.js +0 -12
- package/esm2015/lib/decorators/metadata-keys.js.map +0 -1
- package/esm2015/lib/decorators/use-form-array.js +0 -13
- package/esm2015/lib/decorators/use-form-array.js.map +0 -1
- package/esm2015/lib/decorators/use-form-control.js +0 -8
- package/esm2015/lib/decorators/use-form-control.js.map +0 -1
- package/esm2015/lib/decorators/use-form-group.js +0 -8
- package/esm2015/lib/decorators/use-form-group.js.map +0 -1
- package/esm2015/lib/directives/form-control-error.directive.js +0 -61
- package/esm2015/lib/directives/form-control-error.directive.js.map +0 -1
- package/esm2015/lib/directives/form-control-mark-dirty.directive.js +0 -31
- package/esm2015/lib/directives/form-control-mark-dirty.directive.js.map +0 -1
- package/esm2015/lib/directives/form-control-mark-pristine.directive.js +0 -31
- package/esm2015/lib/directives/form-control-mark-pristine.directive.js.map +0 -1
- package/esm2015/lib/directives/form-control-mark-touched.directive.js +0 -25
- package/esm2015/lib/directives/form-control-mark-touched.directive.js.map +0 -1
- package/esm2015/lib/directives/form-control-mark-untouched.directive.js +0 -31
- package/esm2015/lib/directives/form-control-mark-untouched.directive.js.map +0 -1
- package/esm2015/lib/directives/form-control-name.directive.js +0 -64
- package/esm2015/lib/directives/form-control-name.directive.js.map +0 -1
- package/esm2015/lib/directives/form-group-name.directive.js +0 -61
- package/esm2015/lib/directives/form-group-name.directive.js.map +0 -1
- package/esm2015/lib/directives/form-loaded.directive.js +0 -42
- package/esm2015/lib/directives/form-loaded.directive.js.map +0 -1
- package/esm2015/lib/directives/form-loading-error.directive.js +0 -42
- package/esm2015/lib/directives/form-loading-error.directive.js.map +0 -1
- package/esm2015/lib/directives/form-loading.directive.js +0 -42
- package/esm2015/lib/directives/form-loading.directive.js.map +0 -1
- package/esm2015/lib/directives/form-submit-failed.directive.js +0 -42
- package/esm2015/lib/directives/form-submit-failed.directive.js.map +0 -1
- package/esm2015/lib/directives/form-submit-invalid.directive.js +0 -40
- package/esm2015/lib/directives/form-submit-invalid.directive.js.map +0 -1
- package/esm2015/lib/directives/form-submit-successful.directive.js +0 -40
- package/esm2015/lib/directives/form-submit-successful.directive.js.map +0 -1
- package/esm2015/lib/directives/form-submit.directive.js +0 -75
- package/esm2015/lib/directives/form-submit.directive.js.map +0 -1
- package/esm2015/lib/directives/form-submitting.directive.js +0 -42
- package/esm2015/lib/directives/form-submitting.directive.js.map +0 -1
- package/esm2015/lib/directives/form.directive.js +0 -544
- package/esm2015/lib/directives/form.directive.js.map +0 -1
- package/esm2015/lib/directives/forms.module.js +0 -100
- package/esm2015/lib/directives/forms.module.js.map +0 -1
- package/esm2015/lib/directives/models.js +0 -12
- package/esm2015/lib/directives/models.js.map +0 -1
- package/esm2015/lib/directives/parent-control-container.directive.js +0 -25
- package/esm2015/lib/directives/parent-control-container.directive.js.map +0 -1
- package/esm2015/lib/directives/tokens.js +0 -10
- package/esm2015/lib/directives/tokens.js.map +0 -1
- package/esm2015/lib/form-array.js +0 -217
- package/esm2015/lib/form-array.js.map +0 -1
- package/esm2015/lib/form-builder.js +0 -349
- package/esm2015/lib/form-builder.js.map +0 -1
- package/esm2015/lib/form-control.js +0 -170
- package/esm2015/lib/form-control.js.map +0 -1
- package/esm2015/lib/form-group.js +0 -183
- package/esm2015/lib/form-group.js.map +0 -1
- package/esm2015/lib/model.js +0 -2
- package/esm2015/lib/model.js.map +0 -1
- package/esm2015/lib/tokens.js +0 -4
- package/esm2015/lib/tokens.js.map +0 -1
- package/esm2015/lib/types.js +0 -2
- package/esm2015/lib/types.js.map +0 -1
- package/esm2015/lib/validators/index.js +0 -29
- package/esm2015/lib/validators/index.js.map +0 -1
- package/esm2015/lib/validators/is-array.js +0 -18
- package/esm2015/lib/validators/is-array.js.map +0 -1
- package/esm2015/lib/validators/is-boolean.js +0 -18
- package/esm2015/lib/validators/is-boolean.js.map +0 -1
- package/esm2015/lib/validators/is-complex.js +0 -87
- package/esm2015/lib/validators/is-complex.js.map +0 -1
- package/esm2015/lib/validators/is-date.js +0 -18
- package/esm2015/lib/validators/is-date.js.map +0 -1
- package/esm2015/lib/validators/is-email.js +0 -19
- package/esm2015/lib/validators/is-email.js.map +0 -1
- package/esm2015/lib/validators/is-enum.js +0 -18
- package/esm2015/lib/validators/is-enum.js.map +0 -1
- package/esm2015/lib/validators/is-int.js +0 -19
- package/esm2015/lib/validators/is-int.js.map +0 -1
- package/esm2015/lib/validators/is-ip.js +0 -19
- package/esm2015/lib/validators/is-ip.js.map +0 -1
- package/esm2015/lib/validators/is-number.js +0 -57
- package/esm2015/lib/validators/is-number.js.map +0 -1
- package/esm2015/lib/validators/is-object.js +0 -18
- package/esm2015/lib/validators/is-object.js.map +0 -1
- package/esm2015/lib/validators/is-phone-number.js +0 -19
- package/esm2015/lib/validators/is-phone-number.js.map +0 -1
- package/esm2015/lib/validators/is-string.js +0 -18
- package/esm2015/lib/validators/is-string.js.map +0 -1
- package/esm2015/lib/validators/is-url.js +0 -19
- package/esm2015/lib/validators/is-url.js.map +0 -1
- package/esm2015/rxap-forms.js +0 -5
- package/esm2015/rxap-forms.js.map +0 -1
- package/fesm2015/rxap-forms.js.map +0 -1
|
@@ -26,16 +26,13 @@ function controlValueChanges$(control) {
|
|
|
26
26
|
return merge(defer(() => of(getControlValue(control))), control.valueChanges.pipe(map(() => getControlValue(control))));
|
|
27
27
|
}
|
|
28
28
|
function controlDisabled$(control) {
|
|
29
|
-
|
|
30
|
-
return merge(defer(() => of(control.disabled)), merge(control.statusChanges, (_a = control.stateChanges) !== null && _a !== void 0 ? _a : EMPTY).pipe(map(() => control.disabled), distinctUntilChanged()));
|
|
29
|
+
return merge(defer(() => of(control.disabled)), merge(control.statusChanges, control.stateChanges ?? EMPTY).pipe(map(() => control.disabled), distinctUntilChanged()));
|
|
31
30
|
}
|
|
32
31
|
function controlEnabled$(control) {
|
|
33
|
-
|
|
34
|
-
return merge(defer(() => of(control.enabled)), merge(control.statusChanges, (_a = control.stateChanges) !== null && _a !== void 0 ? _a : EMPTY).pipe(map(() => control.enabled), distinctUntilChanged()));
|
|
32
|
+
return merge(defer(() => of(control.enabled)), merge(control.statusChanges, control.stateChanges ?? EMPTY).pipe(map(() => control.enabled), distinctUntilChanged()));
|
|
35
33
|
}
|
|
36
34
|
function controlReadonly$(control) {
|
|
37
|
-
|
|
38
|
-
return merge(defer(() => { var _a; return of((_a = control.readonly) !== null && _a !== void 0 ? _a : false); }), merge(control.statusChanges, (_a = control.stateChanges) !== null && _a !== void 0 ? _a : EMPTY).pipe(map(() => { var _a; return (_a = control.readonly) !== null && _a !== void 0 ? _a : false; }), distinctUntilChanged()));
|
|
35
|
+
return merge(defer(() => of(control.readonly ?? false)), merge(control.statusChanges, control.stateChanges ?? EMPTY).pipe(map(() => control.readonly ?? false), distinctUntilChanged()));
|
|
39
36
|
}
|
|
40
37
|
function controlStatusChanges$(control) {
|
|
41
38
|
return merge(defer(() => of(control.status)), control.statusChanges.pipe(map(() => control.status), distinctUntilChanged()));
|
|
@@ -117,12 +114,11 @@ class RxapFormArray extends FormArray {
|
|
|
117
114
|
this._controlRemovedFn = options.controlRemovedFn;
|
|
118
115
|
}
|
|
119
116
|
get readonly() {
|
|
120
|
-
|
|
121
|
-
return (_b = (_a = this.parent) === null || _a === void 0 ? void 0 : _a.readonly) !== null && _b !== void 0 ? _b : this._readonly;
|
|
117
|
+
return this.parent?.readonly ?? this._readonly;
|
|
122
118
|
}
|
|
123
119
|
set readonly(value) {
|
|
124
120
|
this._readonly = value;
|
|
125
|
-
this.controls.forEach(control =>
|
|
121
|
+
this.controls.forEach(control => control.stateChanges?.next());
|
|
126
122
|
}
|
|
127
123
|
/**
|
|
128
124
|
* @internal
|
|
@@ -174,7 +170,7 @@ class RxapFormArray extends FormArray {
|
|
|
174
170
|
* @param state (optional) the initial state of the new control
|
|
175
171
|
*/
|
|
176
172
|
insertAt(index, state) {
|
|
177
|
-
const insertIndex = index
|
|
173
|
+
const insertIndex = index ?? this.controls.length;
|
|
178
174
|
const controlOrDefinition = this._builder(state, {
|
|
179
175
|
controlId: insertIndex.toFixed(0),
|
|
180
176
|
});
|
|
@@ -346,13 +342,11 @@ class RxapFormGroup extends FormGroup {
|
|
|
346
342
|
return this.parent.rxapFormDefinition;
|
|
347
343
|
}
|
|
348
344
|
get readonly() {
|
|
349
|
-
|
|
350
|
-
return (_b = (_a = this.parent) === null || _a === void 0 ? void 0 : _a.readonly) !== null && _b !== void 0 ? _b : this._readonly;
|
|
345
|
+
return this.parent?.readonly ?? this._readonly;
|
|
351
346
|
}
|
|
352
347
|
set readonly(value) {
|
|
353
|
-
var _a;
|
|
354
348
|
this._readonly = value;
|
|
355
|
-
Object.values(
|
|
349
|
+
Object.values(this.controls ?? {}).forEach(control => control.stateChanges?.next());
|
|
356
350
|
}
|
|
357
351
|
get controlPath() {
|
|
358
352
|
const parent = this.parent;
|
|
@@ -525,8 +519,7 @@ class RxapFormControl extends FormControl {
|
|
|
525
519
|
return this.parent.rxapFormDefinition;
|
|
526
520
|
}
|
|
527
521
|
get readonly() {
|
|
528
|
-
|
|
529
|
-
return (_b = (_a = this.parent) === null || _a === void 0 ? void 0 : _a.readonly) !== null && _b !== void 0 ? _b : this._readonly;
|
|
522
|
+
return this.parent?.readonly ?? this._readonly;
|
|
530
523
|
}
|
|
531
524
|
set readonly(value) {
|
|
532
525
|
this._readonly = value;
|
|
@@ -608,7 +601,7 @@ class RxapFormControl extends FormControl {
|
|
|
608
601
|
this.markAsDirty({ onlySelf: true });
|
|
609
602
|
}
|
|
610
603
|
reset(formState, options) {
|
|
611
|
-
const newState = formState
|
|
604
|
+
const newState = formState ?? this.initialState;
|
|
612
605
|
if (typeof newState === 'function') {
|
|
613
606
|
super.reset(newState(), options);
|
|
614
607
|
}
|
|
@@ -686,7 +679,6 @@ class FormArrayControlManager {
|
|
|
686
679
|
}
|
|
687
680
|
class RxapFormBuilder {
|
|
688
681
|
constructor(definition, injector = Injector.NULL, providers = []) {
|
|
689
|
-
var _a;
|
|
690
682
|
this.definition = definition;
|
|
691
683
|
this.injector = injector;
|
|
692
684
|
this.formArrayGroups = this.extractArrayGroups();
|
|
@@ -701,12 +693,11 @@ class RxapFormBuilder {
|
|
|
701
693
|
// merge the providers from the from options with the providers from the
|
|
702
694
|
// constructor. If the provider is defined in the form options and constructor
|
|
703
695
|
// then the provider from the constructor will be used.
|
|
704
|
-
this.providers = [...providers, ...(
|
|
696
|
+
this.providers = [...providers, ...(formOptions.providers ?? [])].filter((provider, index, self) => provider.hasOwnProperty('provide') &&
|
|
705
697
|
self.findIndex((selfProvider) => selfProvider.hasOwnProperty('provide') &&
|
|
706
698
|
selfProvider.provide === provider.provide) === index);
|
|
707
699
|
}
|
|
708
700
|
build(state = {}, options = {}) {
|
|
709
|
-
var _a, _b;
|
|
710
701
|
const injector = Injector.create({
|
|
711
702
|
name: `rxap/form-builder/${this.formOptions.id}`,
|
|
712
703
|
parent: this.injector,
|
|
@@ -730,7 +721,11 @@ class RxapFormBuilder {
|
|
|
730
721
|
this.buildGroups(state, form, controls);
|
|
731
722
|
this.buildArrayGroups(state, form, controls);
|
|
732
723
|
this.buildArrayControls(state, form, controls);
|
|
733
|
-
const formOptions =
|
|
724
|
+
const formOptions = {
|
|
725
|
+
...this.formOptions,
|
|
726
|
+
controlId: options.controlId ?? (options.id ? options.id : this.formOptions.id),
|
|
727
|
+
...options,
|
|
728
|
+
};
|
|
734
729
|
form.rxapFormGroup = new RxapFormGroup(controls, formOptions);
|
|
735
730
|
Reflect.set(form.rxapFormGroup, '_rxapFormDefinition', form);
|
|
736
731
|
form.rxapMetadata = this.formOptions;
|
|
@@ -739,7 +734,7 @@ class RxapFormBuilder {
|
|
|
739
734
|
}
|
|
740
735
|
for (const control of Object.values(form.rxapFormGroup.controls)) {
|
|
741
736
|
if (control.controlId) {
|
|
742
|
-
const controlSetValueOnInit = Array.from(
|
|
737
|
+
const controlSetValueOnInit = Array.from(this.controlSetValue.get(control.controlId) ?? []).filter((controlSetValueOptions) => controlSetValueOptions.initial);
|
|
743
738
|
for (const onSetValue of this.coerceToFnArray(form, controlSetValueOnInit)) {
|
|
744
739
|
onSetValue(control.value, { initial: true });
|
|
745
740
|
}
|
|
@@ -757,7 +752,15 @@ class RxapFormBuilder {
|
|
|
757
752
|
controls[controlId] =
|
|
758
753
|
new RxapFormArray(
|
|
759
754
|
// TODO : add the formControlOptions property. To definition the form control options
|
|
760
|
-
formControls,
|
|
755
|
+
formControls, {
|
|
756
|
+
...options,
|
|
757
|
+
controlId,
|
|
758
|
+
validators: [],
|
|
759
|
+
asyncValidators: [],
|
|
760
|
+
controlInsertedFn: manager.inserted.bind(manager),
|
|
761
|
+
controlRemovedFn: manager.removed.bind(manager),
|
|
762
|
+
builder: (state, controlOptions) => new RxapFormControl(state, controlOptions),
|
|
763
|
+
}));
|
|
761
764
|
// TODO : add support for injectable validators
|
|
762
765
|
formArray.setValidators(this.coerceToValidatorArray(form, options.validators, this.validators.get(controlId)), false);
|
|
763
766
|
formArray.setAsyncValidators(this.coerceToValidatorArray(form, options.asyncValidators, this.asyncValidators.get(controlId)), false);
|
|
@@ -774,7 +777,15 @@ class RxapFormBuilder {
|
|
|
774
777
|
const manager = new FormArrayControlManager(form, controlId);
|
|
775
778
|
const formArray = (formGroupDefinitions.rxapFormArray =
|
|
776
779
|
controls[controlId] =
|
|
777
|
-
new RxapFormArray(formGroupDefinitions.map((fgd) => fgd.rxapFormGroup),
|
|
780
|
+
new RxapFormArray(formGroupDefinitions.map((fgd) => fgd.rxapFormGroup), {
|
|
781
|
+
...options,
|
|
782
|
+
builder: formGroupBuilder.build.bind(formGroupBuilder),
|
|
783
|
+
controlId,
|
|
784
|
+
validators: [],
|
|
785
|
+
asyncValidators: [],
|
|
786
|
+
controlInsertedFn: manager.inserted.bind(manager),
|
|
787
|
+
controlRemovedFn: manager.removed.bind(manager)
|
|
788
|
+
}));
|
|
778
789
|
// TODO : add support for injectable validators
|
|
779
790
|
formArray.setValidators(this.coerceToValidatorArray(form, options.validators, this.validators.get(controlId)), false);
|
|
780
791
|
formArray.setAsyncValidators(this.coerceToValidatorArray(form, options.asyncValidators, this.asyncValidators.get(controlId)), false);
|
|
@@ -785,7 +796,11 @@ class RxapFormBuilder {
|
|
|
785
796
|
for (const [controlId, options] of this.formGroups.entries()) {
|
|
786
797
|
const formState = this.coerceToGroupFormState(controlId, {}, builderFormState, options.state);
|
|
787
798
|
assertIsObject(formState);
|
|
788
|
-
const formGroupDefinition = new RxapFormBuilder(options.definition, this.injector, this.providers).build(formState,
|
|
799
|
+
const formGroupDefinition = new RxapFormBuilder(options.definition, this.injector, this.providers).build(formState, {
|
|
800
|
+
...options,
|
|
801
|
+
validators: [],
|
|
802
|
+
asyncValidators: [],
|
|
803
|
+
});
|
|
789
804
|
controls[controlId] = formGroupDefinition.rxapFormGroup;
|
|
790
805
|
const formGroup = formGroupDefinition.rxapFormGroup;
|
|
791
806
|
// TODO : add support for injectable validators
|
|
@@ -796,12 +811,17 @@ class RxapFormBuilder {
|
|
|
796
811
|
}
|
|
797
812
|
}
|
|
798
813
|
buildControls(builderFormState, form, controls) {
|
|
799
|
-
var _a, _b;
|
|
800
814
|
for (const [controlId, options] of this.formControls.entries()) {
|
|
801
|
-
const control = (controls[controlId] = new (
|
|
815
|
+
const control = (controls[controlId] = new (options.controlType ??
|
|
816
|
+
RxapFormControl)(this.coerceToControlFormState(controlId, null, builderFormState, options.state), {
|
|
817
|
+
...options,
|
|
818
|
+
controlId,
|
|
819
|
+
validators: [],
|
|
820
|
+
asyncValidators: [],
|
|
821
|
+
}));
|
|
802
822
|
const injectValidators = [];
|
|
803
823
|
const injectAsyncValidators = [];
|
|
804
|
-
for (const injectValidator of
|
|
824
|
+
for (const injectValidator of options.injectValidators ?? []) {
|
|
805
825
|
const injectableValidator = this.injector.get(injectValidator);
|
|
806
826
|
if (injectableValidator.validate) {
|
|
807
827
|
injectValidators.push(injectableValidator.validate.bind(injectableValidator));
|
|
@@ -887,7 +907,7 @@ class RxapFormBuilder {
|
|
|
887
907
|
formState = builderFormState[controlId];
|
|
888
908
|
}
|
|
889
909
|
else if (optionsFormState !== undefined) {
|
|
890
|
-
formState = optionsFormState
|
|
910
|
+
formState = optionsFormState ?? null;
|
|
891
911
|
}
|
|
892
912
|
if (typeof formState === 'function') {
|
|
893
913
|
formState = formState();
|
|
@@ -957,36 +977,34 @@ class RxapFormBuilder {
|
|
|
957
977
|
return formState;
|
|
958
978
|
}
|
|
959
979
|
extractControlChanges() {
|
|
960
|
-
|
|
961
|
-
|
|
980
|
+
return (getMetadata(MetadataKeys.CONTROL_CHANGES, this.definition.prototype) ??
|
|
981
|
+
new Map());
|
|
962
982
|
}
|
|
963
983
|
extractControlSetValue() {
|
|
964
|
-
|
|
965
|
-
|
|
984
|
+
return (getMetadata(MetadataKeys.CONTROL_SET_VALUE, this.definition.prototype) ??
|
|
985
|
+
new Map());
|
|
966
986
|
}
|
|
967
987
|
extractValidators() {
|
|
968
|
-
|
|
969
|
-
|
|
988
|
+
return (getMetadata(MetadataKeys.CONTROL_VALIDATORS, this.definition.prototype) ??
|
|
989
|
+
new Map());
|
|
970
990
|
}
|
|
971
991
|
extractAsyncValidators() {
|
|
972
|
-
|
|
973
|
-
return ((_a = getMetadata(MetadataKeys.CONTROL_ASYNC_VALIDATORS, this.definition.prototype)) !== null && _a !== void 0 ? _a : new Map());
|
|
992
|
+
return (getMetadata(MetadataKeys.CONTROL_ASYNC_VALIDATORS, this.definition.prototype) ?? new Map());
|
|
974
993
|
}
|
|
975
994
|
extractArrayGroups() {
|
|
976
|
-
|
|
977
|
-
|
|
995
|
+
return (getMetadata(MetadataKeys.FORM_ARRAY_GROUPS, this.definition.prototype) ??
|
|
996
|
+
new Map());
|
|
978
997
|
}
|
|
979
998
|
extractArrayControls() {
|
|
980
|
-
|
|
981
|
-
return ((_a = getMetadata(MetadataKeys.FORM_ARRAY_CONTROLS, this.definition.prototype)) !== null && _a !== void 0 ? _a : new Map());
|
|
999
|
+
return (getMetadata(MetadataKeys.FORM_ARRAY_CONTROLS, this.definition.prototype) ?? new Map());
|
|
982
1000
|
}
|
|
983
1001
|
extractGroups() {
|
|
984
|
-
|
|
985
|
-
|
|
1002
|
+
return (getMetadata(MetadataKeys.FORM_GROUPS, this.definition.prototype) ??
|
|
1003
|
+
new Map());
|
|
986
1004
|
}
|
|
987
1005
|
extractControls() {
|
|
988
|
-
|
|
989
|
-
|
|
1006
|
+
return (getMetadata(MetadataKeys.FORM_CONTROLS, this.definition.prototype) ??
|
|
1007
|
+
new Map());
|
|
990
1008
|
}
|
|
991
1009
|
extractFormOptions() {
|
|
992
1010
|
const options = GetDefinitionMetadata(this.definition);
|
|
@@ -1035,7 +1053,10 @@ function ControlChange(...controlIds) {
|
|
|
1035
1053
|
|
|
1036
1054
|
function ControlSetValue(controlId, options = {}) {
|
|
1037
1055
|
return function (target, propertyKey) {
|
|
1038
|
-
setMetadataMapSet(controlId,
|
|
1056
|
+
setMetadataMapSet(controlId, {
|
|
1057
|
+
...options,
|
|
1058
|
+
propertyKey
|
|
1059
|
+
}, MetadataKeys.CONTROL_SET_VALUE, target);
|
|
1039
1060
|
};
|
|
1040
1061
|
}
|
|
1041
1062
|
|
|
@@ -1049,7 +1070,7 @@ function ControlValidator(...controlIds) {
|
|
|
1049
1070
|
|
|
1050
1071
|
function UseFormArrayGroup(definition, options = {}) {
|
|
1051
1072
|
return function (target, propertyKey) {
|
|
1052
|
-
setMetadataMap(propertyKey,
|
|
1073
|
+
setMetadataMap(propertyKey, { ...options, definition }, MetadataKeys.FORM_ARRAY_GROUPS, target);
|
|
1053
1074
|
};
|
|
1054
1075
|
}
|
|
1055
1076
|
function UseFormArrayControl(options = {}) {
|
|
@@ -1066,7 +1087,7 @@ function UseFormControl(options = {}) {
|
|
|
1066
1087
|
|
|
1067
1088
|
function UseFormGroup(definition, options = {}) {
|
|
1068
1089
|
return function (target, propertyKey) {
|
|
1069
|
-
setMetadataMap(propertyKey,
|
|
1090
|
+
setMetadataMap(propertyKey, { ...options, definition }, MetadataKeys.FORM_GROUPS, target);
|
|
1070
1091
|
};
|
|
1071
1092
|
}
|
|
1072
1093
|
|
|
@@ -1101,7 +1122,6 @@ class FormDirective extends FormGroupDirective {
|
|
|
1101
1122
|
submitSuccessfulMethod = null,
|
|
1102
1123
|
// skip self, bc the token is set to null
|
|
1103
1124
|
formDefinitionBuilder = null, loadingIndicatorService = null) {
|
|
1104
|
-
var _a, _b;
|
|
1105
1125
|
super([], []);
|
|
1106
1126
|
this.cdr = cdr;
|
|
1107
1127
|
this.loadMethod = loadMethod;
|
|
@@ -1138,8 +1158,8 @@ class FormDirective extends FormGroupDirective {
|
|
|
1138
1158
|
this._formDefinition = formDefinition;
|
|
1139
1159
|
this.form = formDefinition.rxapFormGroup;
|
|
1140
1160
|
}
|
|
1141
|
-
|
|
1142
|
-
|
|
1161
|
+
this.loadingIndicatorService?.attachLoading(this.loading$);
|
|
1162
|
+
this.loadingIndicatorService?.attachLoading(this.submitting$);
|
|
1143
1163
|
}
|
|
1144
1164
|
get submitting() {
|
|
1145
1165
|
return this.submitting$.value;
|
|
@@ -1326,11 +1346,10 @@ class FormDirective extends FormGroupDirective {
|
|
|
1326
1346
|
}
|
|
1327
1347
|
}
|
|
1328
1348
|
loadFailed(error) {
|
|
1329
|
-
var _a;
|
|
1330
1349
|
console.debug('Load Error:', error);
|
|
1331
1350
|
console.error('Load Error:', error.message);
|
|
1332
1351
|
if (this.loadFailedMethod) {
|
|
1333
|
-
|
|
1352
|
+
this.loadFailedMethod?.call(error);
|
|
1334
1353
|
}
|
|
1335
1354
|
else if (isDevMode()) {
|
|
1336
1355
|
console.warn('The form loading failed for: ' + this.form.controlId);
|
|
@@ -1344,7 +1363,7 @@ class FormDirective extends FormGroupDirective {
|
|
|
1344
1363
|
else if (typeof this._formDefinition['toJSON'] === 'function') {
|
|
1345
1364
|
value = this._formDefinition.toJSON();
|
|
1346
1365
|
}
|
|
1347
|
-
value = value
|
|
1366
|
+
value = value ?? this.form.value;
|
|
1348
1367
|
return clone(value);
|
|
1349
1368
|
}
|
|
1350
1369
|
submit() {
|
|
@@ -1414,9 +1433,8 @@ class FormDirective extends FormGroupDirective {
|
|
|
1414
1433
|
}
|
|
1415
1434
|
}
|
|
1416
1435
|
ngOnDestroy() {
|
|
1417
|
-
var _a;
|
|
1418
1436
|
super.ngOnDestroy();
|
|
1419
|
-
|
|
1437
|
+
this._autoSubmitSubscription?.unsubscribe();
|
|
1420
1438
|
function HasNgOnDestroyMethod(obj) {
|
|
1421
1439
|
return obj && typeof obj.ngOnDestroy === 'function';
|
|
1422
1440
|
}
|
|
@@ -1425,8 +1443,8 @@ class FormDirective extends FormGroupDirective {
|
|
|
1425
1443
|
}
|
|
1426
1444
|
}
|
|
1427
1445
|
}
|
|
1428
|
-
FormDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1429
|
-
FormDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
1446
|
+
FormDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", 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 });
|
|
1447
|
+
FormDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", 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: [
|
|
1430
1448
|
{
|
|
1431
1449
|
provide: ControlContainer,
|
|
1432
1450
|
// ignore coverage
|
|
@@ -1473,7 +1491,7 @@ __decorate([
|
|
|
1473
1491
|
Required,
|
|
1474
1492
|
__metadata("design:type", Object)
|
|
1475
1493
|
], FormDirective.prototype, "_formDefinition", void 0);
|
|
1476
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1494
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormDirective, decorators: [{
|
|
1477
1495
|
type: Directive,
|
|
1478
1496
|
args: [{
|
|
1479
1497
|
selector: 'form[rxapForm]:not([formGroup]):not([ngForm]),rxap-form,form[rxapForm]',
|
|
@@ -1632,13 +1650,12 @@ class FormSubmitFailedDirective {
|
|
|
1632
1650
|
})).subscribe();
|
|
1633
1651
|
}
|
|
1634
1652
|
ngOnDestroy() {
|
|
1635
|
-
|
|
1636
|
-
(_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
1653
|
+
this.subscription?.unsubscribe();
|
|
1637
1654
|
}
|
|
1638
1655
|
}
|
|
1639
|
-
FormSubmitFailedDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1640
|
-
FormSubmitFailedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
1641
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1656
|
+
FormSubmitFailedDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormSubmitFailedDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1657
|
+
FormSubmitFailedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: FormSubmitFailedDirective, selector: "[rxapFormSubmitFailed]", ngImport: i0 });
|
|
1658
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormSubmitFailedDirective, decorators: [{
|
|
1642
1659
|
type: Directive,
|
|
1643
1660
|
args: [{
|
|
1644
1661
|
selector: '[rxapFormSubmitFailed]'
|
|
@@ -1669,13 +1686,12 @@ class FormLoadingDirective {
|
|
|
1669
1686
|
})).subscribe();
|
|
1670
1687
|
}
|
|
1671
1688
|
ngOnDestroy() {
|
|
1672
|
-
|
|
1673
|
-
(_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
1689
|
+
this.subscription?.unsubscribe();
|
|
1674
1690
|
}
|
|
1675
1691
|
}
|
|
1676
|
-
FormLoadingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1677
|
-
FormLoadingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
1678
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1692
|
+
FormLoadingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormLoadingDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1693
|
+
FormLoadingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: FormLoadingDirective, selector: "[rxapFormLoading]", ngImport: i0 });
|
|
1694
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormLoadingDirective, decorators: [{
|
|
1679
1695
|
type: Directive,
|
|
1680
1696
|
args: [{
|
|
1681
1697
|
selector: '[rxapFormLoading]'
|
|
@@ -1706,13 +1722,12 @@ class FormSubmittingDirective {
|
|
|
1706
1722
|
})).subscribe();
|
|
1707
1723
|
}
|
|
1708
1724
|
ngOnDestroy() {
|
|
1709
|
-
|
|
1710
|
-
(_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
1725
|
+
this.subscription?.unsubscribe();
|
|
1711
1726
|
}
|
|
1712
1727
|
}
|
|
1713
|
-
FormSubmittingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1714
|
-
FormSubmittingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
1715
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1728
|
+
FormSubmittingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormSubmittingDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1729
|
+
FormSubmittingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: FormSubmittingDirective, selector: "[rxapFormSubmitting]", ngImport: i0 });
|
|
1730
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormSubmittingDirective, decorators: [{
|
|
1716
1731
|
type: Directive,
|
|
1717
1732
|
args: [{
|
|
1718
1733
|
selector: '[rxapFormSubmitting]'
|
|
@@ -1743,13 +1758,12 @@ class FormLoadedDirective {
|
|
|
1743
1758
|
})).subscribe();
|
|
1744
1759
|
}
|
|
1745
1760
|
ngOnDestroy() {
|
|
1746
|
-
|
|
1747
|
-
(_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
1761
|
+
this.subscription?.unsubscribe();
|
|
1748
1762
|
}
|
|
1749
1763
|
}
|
|
1750
|
-
FormLoadedDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1751
|
-
FormLoadedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
1752
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1764
|
+
FormLoadedDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormLoadedDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1765
|
+
FormLoadedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: FormLoadedDirective, selector: "[rxapFormLoaded]", ngImport: i0 });
|
|
1766
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormLoadedDirective, decorators: [{
|
|
1753
1767
|
type: Directive,
|
|
1754
1768
|
args: [{
|
|
1755
1769
|
selector: '[rxapFormLoaded]'
|
|
@@ -1780,13 +1794,12 @@ class FormLoadingErrorDirective {
|
|
|
1780
1794
|
})).subscribe();
|
|
1781
1795
|
}
|
|
1782
1796
|
ngOnDestroy() {
|
|
1783
|
-
|
|
1784
|
-
(_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
1797
|
+
this.subscription?.unsubscribe();
|
|
1785
1798
|
}
|
|
1786
1799
|
}
|
|
1787
|
-
FormLoadingErrorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1788
|
-
FormLoadingErrorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
1789
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1800
|
+
FormLoadingErrorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormLoadingErrorDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1801
|
+
FormLoadingErrorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: FormLoadingErrorDirective, selector: "[rxapFormLoadingError]", ngImport: i0 });
|
|
1802
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormLoadingErrorDirective, decorators: [{
|
|
1790
1803
|
type: Directive,
|
|
1791
1804
|
args: [{
|
|
1792
1805
|
selector: '[rxapFormLoadingError]'
|
|
@@ -1812,8 +1825,7 @@ class FormControlErrorDirective {
|
|
|
1812
1825
|
this.viewContainerRef = viewContainerRef;
|
|
1813
1826
|
}
|
|
1814
1827
|
ngOnInit() {
|
|
1815
|
-
|
|
1816
|
-
const control = (_a = this.parent.control) === null || _a === void 0 ? void 0 : _a.get(this.name);
|
|
1828
|
+
const control = this.parent.control?.get(this.name);
|
|
1817
1829
|
if (!control) {
|
|
1818
1830
|
throw new Error('Could not extract form control instance');
|
|
1819
1831
|
}
|
|
@@ -1825,12 +1837,11 @@ class FormControlErrorDirective {
|
|
|
1825
1837
|
})).subscribe();
|
|
1826
1838
|
}
|
|
1827
1839
|
ngOnDestroy() {
|
|
1828
|
-
|
|
1829
|
-
(_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
1840
|
+
this.subscription?.unsubscribe();
|
|
1830
1841
|
}
|
|
1831
1842
|
}
|
|
1832
|
-
FormControlErrorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1833
|
-
FormControlErrorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
1843
|
+
FormControlErrorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormControlErrorDirective, deps: [{ token: i0.TemplateRef }, { token: i1.ControlContainer, host: true, skipSelf: true }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1844
|
+
FormControlErrorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: FormControlErrorDirective, selector: "[rxapFormControlError]", inputs: { name: ["rxapFormControlErrorFrom", "name"], errorKey: ["rxapFormControlErrorIf", "errorKey"] }, ngImport: i0 });
|
|
1834
1845
|
__decorate([
|
|
1835
1846
|
Required,
|
|
1836
1847
|
__metadata("design:type", String)
|
|
@@ -1839,7 +1850,7 @@ __decorate([
|
|
|
1839
1850
|
Required,
|
|
1840
1851
|
__metadata("design:type", String)
|
|
1841
1852
|
], FormControlErrorDirective.prototype, "errorKey", void 0);
|
|
1842
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1853
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormControlErrorDirective, decorators: [{
|
|
1843
1854
|
type: Directive,
|
|
1844
1855
|
args: [{
|
|
1845
1856
|
selector: '[rxapFormControlError]'
|
|
@@ -1866,13 +1877,13 @@ class FormControlMarkDirtyDirective {
|
|
|
1866
1877
|
control.markAllAsDirty();
|
|
1867
1878
|
}
|
|
1868
1879
|
else {
|
|
1869
|
-
control
|
|
1880
|
+
control?.markAsDirty();
|
|
1870
1881
|
}
|
|
1871
1882
|
}
|
|
1872
1883
|
}
|
|
1873
|
-
FormControlMarkDirtyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1874
|
-
FormControlMarkDirtyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
1875
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1884
|
+
FormControlMarkDirtyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormControlMarkDirtyDirective, deps: [{ token: i1.ControlContainer }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1885
|
+
FormControlMarkDirtyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: FormControlMarkDirtyDirective, selector: "[rxapFormControlMarkDirty]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
|
|
1886
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormControlMarkDirtyDirective, decorators: [{
|
|
1876
1887
|
type: Directive,
|
|
1877
1888
|
args: [{
|
|
1878
1889
|
selector: '[rxapFormControlMarkDirty]'
|
|
@@ -1887,13 +1898,12 @@ class FormControlMarkTouchedDirective {
|
|
|
1887
1898
|
this.parent = parent;
|
|
1888
1899
|
}
|
|
1889
1900
|
onClick() {
|
|
1890
|
-
|
|
1891
|
-
(_a = this.parent.control) === null || _a === void 0 ? void 0 : _a.markAllAsTouched();
|
|
1901
|
+
this.parent.control?.markAllAsTouched();
|
|
1892
1902
|
}
|
|
1893
1903
|
}
|
|
1894
|
-
FormControlMarkTouchedDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1895
|
-
FormControlMarkTouchedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
1896
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1904
|
+
FormControlMarkTouchedDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormControlMarkTouchedDirective, deps: [{ token: i1.ControlContainer }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1905
|
+
FormControlMarkTouchedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: FormControlMarkTouchedDirective, selector: "[rxapFormControlMarkTouched]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
|
|
1906
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormControlMarkTouchedDirective, decorators: [{
|
|
1897
1907
|
type: Directive,
|
|
1898
1908
|
args: [{
|
|
1899
1909
|
selector: '[rxapFormControlMarkTouched]'
|
|
@@ -1913,13 +1923,13 @@ class FormControlMarkUntouchedDirective {
|
|
|
1913
1923
|
control.markAllAsUntouched();
|
|
1914
1924
|
}
|
|
1915
1925
|
else {
|
|
1916
|
-
control
|
|
1926
|
+
control?.markAsUntouched();
|
|
1917
1927
|
}
|
|
1918
1928
|
}
|
|
1919
1929
|
}
|
|
1920
|
-
FormControlMarkUntouchedDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1921
|
-
FormControlMarkUntouchedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
1922
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1930
|
+
FormControlMarkUntouchedDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormControlMarkUntouchedDirective, deps: [{ token: i1.ControlContainer }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1931
|
+
FormControlMarkUntouchedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: FormControlMarkUntouchedDirective, selector: "[rxapFormControlMarkUntouched]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
|
|
1932
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormControlMarkUntouchedDirective, decorators: [{
|
|
1923
1933
|
type: Directive,
|
|
1924
1934
|
args: [{
|
|
1925
1935
|
selector: '[rxapFormControlMarkUntouched]'
|
|
@@ -1939,13 +1949,13 @@ class FormControlMarkPristineDirective {
|
|
|
1939
1949
|
control.markAllAsPristine();
|
|
1940
1950
|
}
|
|
1941
1951
|
else {
|
|
1942
|
-
control
|
|
1952
|
+
control?.markAsPristine();
|
|
1943
1953
|
}
|
|
1944
1954
|
}
|
|
1945
1955
|
}
|
|
1946
|
-
FormControlMarkPristineDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1947
|
-
FormControlMarkPristineDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
1948
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1956
|
+
FormControlMarkPristineDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormControlMarkPristineDirective, deps: [{ token: i1.ControlContainer }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1957
|
+
FormControlMarkPristineDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: FormControlMarkPristineDirective, selector: "[rxapFormControlMarkPristine]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
|
|
1958
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormControlMarkPristineDirective, decorators: [{
|
|
1949
1959
|
type: Directive,
|
|
1950
1960
|
args: [{
|
|
1951
1961
|
selector: '[rxapFormControlMarkPristine]'
|
|
@@ -1984,13 +1994,12 @@ class FormSubmitDirective extends ConfirmClick {
|
|
|
1984
1994
|
this.formDirective.onSubmit(new Event('submit'));
|
|
1985
1995
|
}
|
|
1986
1996
|
ngOnDestroy() {
|
|
1987
|
-
|
|
1988
|
-
(_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
1997
|
+
this.subscription?.unsubscribe();
|
|
1989
1998
|
}
|
|
1990
1999
|
}
|
|
1991
|
-
FormSubmitDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1992
|
-
FormSubmitDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
1993
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2000
|
+
FormSubmitDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormSubmitDirective, deps: [{ token: FormDirective }, { token: Router, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2001
|
+
FormSubmitDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", 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 });
|
|
2002
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormSubmitDirective, decorators: [{
|
|
1994
2003
|
type: Directive,
|
|
1995
2004
|
args: [{
|
|
1996
2005
|
selector: '[rxapFormSubmit]',
|
|
@@ -2036,14 +2045,14 @@ class FormGroupNameDirective extends FormGroupName {
|
|
|
2036
2045
|
return this.formDirective.getFormGroup(this);
|
|
2037
2046
|
}
|
|
2038
2047
|
}
|
|
2039
|
-
FormGroupNameDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2040
|
-
FormGroupNameDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
2048
|
+
FormGroupNameDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", 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 });
|
|
2049
|
+
FormGroupNameDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: FormGroupNameDirective, selector: "[rxapFormGroupName]", inputs: { name: ["rxapFormGroupName", "name"] }, providers: [
|
|
2041
2050
|
{
|
|
2042
2051
|
provide: ControlContainer,
|
|
2043
2052
|
useExisting: forwardRef(() => FormGroupNameDirective)
|
|
2044
2053
|
}
|
|
2045
2054
|
], exportAs: ["rxapFormGroup"], usesInheritance: true, ngImport: i0 });
|
|
2046
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2055
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormGroupNameDirective, decorators: [{
|
|
2047
2056
|
type: Directive,
|
|
2048
2057
|
args: [{
|
|
2049
2058
|
selector: '[rxapFormGroupName]',
|
|
@@ -2089,14 +2098,14 @@ class FormControlNameDirective extends FormControlName {
|
|
|
2089
2098
|
super(parent, validators, asyncValidators, valueAccessors, null);
|
|
2090
2099
|
}
|
|
2091
2100
|
}
|
|
2092
|
-
FormControlNameDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2093
|
-
FormControlNameDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
2101
|
+
FormControlNameDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", 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 });
|
|
2102
|
+
FormControlNameDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: FormControlNameDirective, selector: "[rxapFormControlName]", inputs: { name: ["rxapFormControlName", "name"] }, providers: [
|
|
2094
2103
|
{
|
|
2095
2104
|
provide: NgControl,
|
|
2096
2105
|
useExisting: forwardRef(() => FormControlNameDirective)
|
|
2097
2106
|
}
|
|
2098
2107
|
], exportAs: ["rxapFormControl"], usesInheritance: true, ngImport: i0 });
|
|
2099
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2108
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormControlNameDirective, decorators: [{
|
|
2100
2109
|
type: Directive,
|
|
2101
2110
|
args: [{
|
|
2102
2111
|
selector: '[rxapFormControlName]',
|
|
@@ -2140,14 +2149,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImpor
|
|
|
2140
2149
|
|
|
2141
2150
|
class ParentControlContainerDirective {
|
|
2142
2151
|
}
|
|
2143
|
-
ParentControlContainerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2144
|
-
ParentControlContainerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
2152
|
+
ParentControlContainerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ParentControlContainerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2153
|
+
ParentControlContainerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: ParentControlContainerDirective, selector: "[formControlName][parentControlContainer],[formControlGroup][parentControlContainer]", providers: [
|
|
2145
2154
|
{
|
|
2146
2155
|
provide: ControlContainer,
|
|
2147
2156
|
useExisting: ControlContainer
|
|
2148
2157
|
}
|
|
2149
2158
|
], ngImport: i0 });
|
|
2150
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2159
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ParentControlContainerDirective, decorators: [{
|
|
2151
2160
|
type: Directive,
|
|
2152
2161
|
args: [{
|
|
2153
2162
|
selector: '[formControlName][parentControlContainer],[formControlGroup][parentControlContainer]',
|
|
@@ -2173,13 +2182,12 @@ class FormSubmitSuccessfulDirective {
|
|
|
2173
2182
|
})).subscribe();
|
|
2174
2183
|
}
|
|
2175
2184
|
ngOnDestroy() {
|
|
2176
|
-
|
|
2177
|
-
(_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
2185
|
+
this.subscription?.unsubscribe();
|
|
2178
2186
|
}
|
|
2179
2187
|
}
|
|
2180
|
-
FormSubmitSuccessfulDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2181
|
-
FormSubmitSuccessfulDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
2182
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2188
|
+
FormSubmitSuccessfulDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormSubmitSuccessfulDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2189
|
+
FormSubmitSuccessfulDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: FormSubmitSuccessfulDirective, selector: "[rxapFormSubmitSuccessful]", ngImport: i0 });
|
|
2190
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormSubmitSuccessfulDirective, decorators: [{
|
|
2183
2191
|
type: Directive,
|
|
2184
2192
|
args: [{
|
|
2185
2193
|
selector: '[rxapFormSubmitSuccessful]'
|
|
@@ -2208,13 +2216,12 @@ class FormSubmitInvalidDirective {
|
|
|
2208
2216
|
})).subscribe();
|
|
2209
2217
|
}
|
|
2210
2218
|
ngOnDestroy() {
|
|
2211
|
-
|
|
2212
|
-
(_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
2219
|
+
this.subscription?.unsubscribe();
|
|
2213
2220
|
}
|
|
2214
2221
|
}
|
|
2215
|
-
FormSubmitInvalidDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2216
|
-
FormSubmitInvalidDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
2217
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2222
|
+
FormSubmitInvalidDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormSubmitInvalidDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2223
|
+
FormSubmitInvalidDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: FormSubmitInvalidDirective, selector: "[rxapFormSubmitInvalid]", ngImport: i0 });
|
|
2224
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormSubmitInvalidDirective, decorators: [{
|
|
2218
2225
|
type: Directive,
|
|
2219
2226
|
args: [{
|
|
2220
2227
|
selector: '[rxapFormSubmitInvalid]'
|
|
@@ -2232,8 +2239,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImpor
|
|
|
2232
2239
|
|
|
2233
2240
|
class RxapFormsModule {
|
|
2234
2241
|
}
|
|
2235
|
-
RxapFormsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2236
|
-
RxapFormsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
2242
|
+
RxapFormsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: RxapFormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2243
|
+
RxapFormsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: RxapFormsModule, declarations: [FormDirective,
|
|
2237
2244
|
FormSubmitFailedDirective,
|
|
2238
2245
|
FormLoadingDirective,
|
|
2239
2246
|
FormSubmittingDirective,
|
|
@@ -2266,8 +2273,8 @@ RxapFormsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version
|
|
|
2266
2273
|
ParentControlContainerDirective,
|
|
2267
2274
|
FormSubmitSuccessfulDirective,
|
|
2268
2275
|
FormSubmitInvalidDirective] });
|
|
2269
|
-
RxapFormsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
2270
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2276
|
+
RxapFormsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: RxapFormsModule });
|
|
2277
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: RxapFormsModule, decorators: [{
|
|
2271
2278
|
type: NgModule,
|
|
2272
2279
|
args: [{
|
|
2273
2280
|
declarations: [
|
|
@@ -2327,15 +2334,14 @@ function ToFormSubmitMethod(call) {
|
|
|
2327
2334
|
* Checks if a given value is a number.
|
|
2328
2335
|
*/
|
|
2329
2336
|
function isNumber(value, options = {}) {
|
|
2330
|
-
var _a, _b;
|
|
2331
2337
|
if (typeof value !== 'number') {
|
|
2332
2338
|
return false;
|
|
2333
2339
|
}
|
|
2334
2340
|
if (value === Infinity || value === -Infinity) {
|
|
2335
|
-
return
|
|
2341
|
+
return options.allowInfinity ?? false;
|
|
2336
2342
|
}
|
|
2337
2343
|
if (Number.isNaN(value)) {
|
|
2338
|
-
return
|
|
2344
|
+
return options.allowNaN ?? false;
|
|
2339
2345
|
}
|
|
2340
2346
|
if (options.maxDecimalPlaces !== undefined) {
|
|
2341
2347
|
let decimalPlaces = 0;
|
|
@@ -2367,7 +2373,7 @@ function _IsNumber({ message, options } = {}) {
|
|
|
2367
2373
|
if (control.value === null) {
|
|
2368
2374
|
return null;
|
|
2369
2375
|
}
|
|
2370
|
-
if (!isNumber(!
|
|
2376
|
+
if (!isNumber(!options?.strict && typeof control.value === 'string' ? Number(control.value) : control.value, options)) {
|
|
2371
2377
|
return {
|
|
2372
2378
|
isNumber: {
|
|
2373
2379
|
expected: 'A number value',
|
|
@@ -2653,7 +2659,7 @@ function IsIP({ message, version } = {}) {
|
|
|
2653
2659
|
if (!(typeof control.value === 'string' && isIP(control.value, version))) {
|
|
2654
2660
|
return {
|
|
2655
2661
|
isIp: {
|
|
2656
|
-
expected: `A valid IPv${version
|
|
2662
|
+
expected: `A valid IPv${version ?? '4'} value`,
|
|
2657
2663
|
actual: control.value,
|
|
2658
2664
|
message
|
|
2659
2665
|
}
|
|
@@ -2686,4 +2692,4 @@ const RxapValidators = {
|
|
|
2686
2692
|
*/
|
|
2687
2693
|
|
|
2688
2694
|
export { ControlAsyncValidator, ControlChange, ControlSetValue, ControlValidator, ControlValueAccessor, FormArrayControlManager, FormControlErrorDirective, FormControlMarkDirtyDirective, FormControlMarkPristineDirective, FormControlMarkTouchedDirective, FormControlMarkUntouchedDirective, FormControlNameDirective, FormDirective, FormGroupNameDirective, FormLoadedDirective, FormLoadingDirective, FormLoadingErrorDirective, FormSubmitDirective, FormSubmitFailedDirective, FormSubmitInvalidDirective, FormSubmitSuccessfulDirective, FormSubmittingDirective, IsArray, IsBoolean, IsDate, IsEnum, IsInt, IsNumber, IsObject, IsString, ParentControlContainerDirective, RXAP_FORM_CONTEXT, RXAP_FORM_DEFINITION, RXAP_FORM_DEFINITION_BUILDER, RXAP_FORM_INITIAL_STATE, RXAP_FORM_LOAD_FAILED_METHOD, RXAP_FORM_LOAD_METHOD, RXAP_FORM_LOAD_SUCCESSFUL_METHOD, RXAP_FORM_SUBMIT_FAILED_METHOD, RXAP_FORM_SUBMIT_METHOD, RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD, RxapForm, RxapFormArray, RxapFormBuilder, RxapFormControl, RxapFormGroup, RxapFormsModule, RxapValidators, ToFormMethod, ToFormSubmitMethod, UseFormArrayControl, UseFormArrayGroup, UseFormControl, UseFormGroup, _IsNumber, controlDisabled$, controlDisabledWhile, controlEnabled$, controlEnabledWhile, controlErrorChanges$, controlReadonly$, controlStatusChanges$, controlValueChanges$, disableControl, enableControl, hasErrorAndDirty, hasErrorAndTouched, isNumber, markAllDirty, markAllPristine, markAllUntouched, mergeControlValidators, selectControlValue$, validateControlOn };
|
|
2689
|
-
//# sourceMappingURL=rxap-forms.
|
|
2695
|
+
//# sourceMappingURL=rxap-forms.mjs.map
|