@rxap/forms 19.2.0 → 21.0.1-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -0
- package/compodoc/changelog.html +34 -0
- package/compodoc/classes/FormArrayControlManager.html +13 -10
- package/compodoc/classes/RxapFormArray.html +3 -1
- package/compodoc/classes/RxapFormBuilder.html +13 -10
- package/compodoc/classes/RxapFormControl.html +3 -1
- package/compodoc/classes/RxapFormGroup.html +3 -1
- package/compodoc/dependencies.html +13 -13
- package/compodoc/directives/FormControlErrorDirective.html +97 -166
- package/compodoc/directives/FormControlMarkDirtyDirective.html +5 -107
- package/compodoc/directives/FormControlMarkPristineDirective.html +5 -107
- package/compodoc/directives/FormControlMarkTouchedDirective.html +5 -107
- package/compodoc/directives/FormControlMarkUntouchedDirective.html +5 -107
- package/compodoc/directives/FormControlNameDirective.html +12 -124
- package/compodoc/directives/FormDirective.html +1032 -1057
- package/compodoc/directives/FormGroupNameDirective.html +16 -111
- package/compodoc/directives/FormLoadedDirective.html +16 -96
- package/compodoc/directives/FormLoadingDirective.html +16 -96
- package/compodoc/directives/FormLoadingErrorDirective.html +15 -91
- package/compodoc/directives/FormResetDirective.html +47 -101
- package/compodoc/directives/FormSubmitDirective.html +45 -100
- package/compodoc/directives/FormSubmitFailedDirective.html +15 -91
- package/compodoc/directives/FormSubmitInvalidDirective.html +14 -95
- package/compodoc/directives/FormSubmitSuccessfulDirective.html +14 -95
- package/compodoc/directives/FormSubmittingDirective.html +16 -96
- package/compodoc/graph/dependencies.svg +15 -441
- package/compodoc/js/menu-wc.js +0 -77
- package/compodoc/js/menu-wc_es5.js +1 -1
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/modules.html +0 -17
- package/compodoc/overview.html +1 -473
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +13661 -13712
- package/docs/html/assets/hierarchy.js +1 -1
- package/docs/html/assets/navigation.js +1 -1
- package/docs/html/assets/search.js +1 -1
- package/docs/html/classes/ControlValueAccessor.html +5 -5
- package/docs/html/classes/FormArrayControlManager.html +2 -2
- package/docs/html/classes/FormControlErrorDirective.html +3 -12
- package/docs/html/classes/FormControlMarkDirtyDirective.html +2 -2
- package/docs/html/classes/FormControlMarkPristineDirective.html +2 -2
- package/docs/html/classes/FormControlMarkTouchedDirective.html +2 -2
- package/docs/html/classes/FormControlMarkUntouchedDirective.html +2 -2
- package/docs/html/classes/FormControlNameDirective.html +34 -34
- package/docs/html/classes/FormDirective.html +72 -59
- package/docs/html/classes/FormGroupNameDirective.html +29 -29
- package/docs/html/classes/FormLoadedDirective.html +2 -9
- package/docs/html/classes/FormLoadingDirective.html +2 -9
- package/docs/html/classes/FormLoadingErrorDirective.html +2 -9
- package/docs/html/classes/FormResetDirective.html +4 -4
- package/docs/html/classes/FormSubmitDirective.html +4 -4
- package/docs/html/classes/FormSubmitFailedDirective.html +2 -9
- package/docs/html/classes/FormSubmitInvalidDirective.html +2 -9
- package/docs/html/classes/FormSubmitSuccessfulDirective.html +2 -9
- package/docs/html/classes/FormSubmittingDirective.html +2 -9
- package/docs/html/classes/ParentControlContainerDirective.html +2 -2
- package/docs/html/classes/RxapFormArray.html +96 -79
- package/docs/html/classes/RxapFormBuilder.html +2 -2
- package/docs/html/classes/RxapFormControl.html +92 -75
- package/docs/html/classes/RxapFormGroup.html +93 -77
- package/docs/html/enums/MetadataKeys.html +2 -2
- package/docs/html/functions/ControlAsyncValidator.html +1 -1
- package/docs/html/functions/ControlChange.html +1 -1
- package/docs/html/functions/ControlSetValue.html +1 -1
- package/docs/html/functions/ControlValidator.html +1 -1
- package/docs/html/functions/IsArray.html +1 -1
- package/docs/html/functions/IsBoolean.html +1 -1
- package/docs/html/functions/IsComplex.html +1 -1
- package/docs/html/functions/IsDate.html +1 -1
- package/docs/html/functions/IsEmail.html +1 -1
- package/docs/html/functions/IsEnum.html +1 -1
- package/docs/html/functions/IsIP.html +1 -1
- package/docs/html/functions/IsInt.html +1 -1
- package/docs/html/functions/IsNumber-1.html +2 -2
- package/docs/html/functions/IsObject.html +1 -1
- package/docs/html/functions/IsPhoneNumber.html +1 -1
- package/docs/html/functions/IsPort.html +1 -1
- package/docs/html/functions/IsString.html +1 -1
- package/docs/html/functions/IsUUID.html +1 -1
- package/docs/html/functions/IsUrl.html +1 -1
- package/docs/html/functions/RxapForm.html +1 -1
- package/docs/html/functions/ToFormMethod.html +1 -1
- package/docs/html/functions/ToFormSubmitMethod.html +2 -2
- package/docs/html/functions/UseFormArrayControl.html +1 -1
- package/docs/html/functions/UseFormArrayGroup.html +1 -1
- package/docs/html/functions/UseFormControl.html +1 -1
- package/docs/html/functions/UseFormGroup.html +1 -1
- package/docs/html/functions/_IsNumber.html +1 -1
- package/docs/html/functions/controlDisabledWhile.html +1 -1
- package/docs/html/functions/controlDisabled_.html +1 -1
- package/docs/html/functions/controlEnabledWhile.html +1 -1
- package/docs/html/functions/controlEnabled_.html +1 -1
- package/docs/html/functions/controlErrorChanges_.html +1 -1
- package/docs/html/functions/controlReadonly_.html +1 -1
- package/docs/html/functions/controlStatusChanges_.html +1 -1
- package/docs/html/functions/controlValueChanges_.html +1 -1
- package/docs/html/functions/disableControl.html +1 -1
- package/docs/html/functions/enableControl.html +1 -1
- package/docs/html/functions/hasErrorAndDirty.html +1 -1
- package/docs/html/functions/hasErrorAndTouched.html +1 -1
- package/docs/html/functions/isNumber.html +2 -2
- package/docs/html/functions/markAllDirty.html +1 -1
- package/docs/html/functions/markAllPristine.html +1 -1
- package/docs/html/functions/markAllUntouched.html +1 -1
- package/docs/html/functions/mergeControlValidators.html +1 -1
- package/docs/html/functions/selectControlValue_.html +1 -1
- package/docs/html/functions/validateControlOn.html +1 -1
- package/docs/html/hierarchy.html +1 -1
- package/docs/html/index.html +2 -2
- package/docs/html/interfaces/AbstractControl.html +95 -71
- package/docs/html/interfaces/AbstractControlOptions.html +4 -4
- package/docs/html/interfaces/BoxedValue.html +2 -2
- package/docs/html/interfaces/ComplexityOptions.html +2 -2
- package/docs/html/interfaces/ControlOptions.html +3 -3
- package/docs/html/interfaces/ControlSetValueOptions.html +2 -2
- package/docs/html/interfaces/FormArrayOptions.html +4 -4
- package/docs/html/interfaces/FormDefinition.html +6 -6
- package/docs/html/interfaces/FormDefinitionArray.html +43 -36
- package/docs/html/interfaces/FormDefinitionMetadata.html +5 -5
- package/docs/html/interfaces/FormGroupOptions.html +4 -4
- package/docs/html/interfaces/FormLoadFailedMethod.html +2 -2
- package/docs/html/interfaces/FormLoadMethod.html +2 -2
- package/docs/html/interfaces/FormLoadSuccessfulMethod.html +2 -2
- package/docs/html/interfaces/FormOptions.html +4 -4
- package/docs/html/interfaces/FormSubmitFailedMethod.html +2 -2
- package/docs/html/interfaces/FormSubmitMethod.html +2 -2
- package/docs/html/interfaces/FormSubmitSuccessfulMethod.html +2 -2
- package/docs/html/interfaces/InjectableValidator.html +2 -2
- package/docs/html/interfaces/IsNumberOptions.html +3 -3
- package/docs/html/interfaces/NgValidatorsErrors.html +2 -2
- package/docs/html/interfaces/RxapAbstractControlOptionsWithDefinition.html +4 -4
- package/docs/html/interfaces/_RxapAbstractControlOptions.html +4 -4
- package/docs/html/modules.html +1 -1
- package/docs/html/types/AsyncValidator.html +1 -1
- package/docs/html/types/AsyncValidatorFn.html +1 -1
- package/docs/html/types/ChangeFn.html +1 -1
- package/docs/html/types/ControlEventOptions.html +1 -1
- package/docs/html/types/ControlInsertedFn.html +1 -1
- package/docs/html/types/ControlPath.html +1 -1
- package/docs/html/types/ControlRemovedFn.html +1 -1
- package/docs/html/types/ControlState.html +1 -1
- package/docs/html/types/EmitEvent.html +1 -1
- package/docs/html/types/ExtractAbstractControl.html +1 -1
- package/docs/html/types/ExtractStrings.html +1 -1
- package/docs/html/types/FormBuilderFn.html +1 -1
- package/docs/html/types/FormType.html +1 -1
- package/docs/html/types/KeyValueControls.html +1 -1
- package/docs/html/types/OnlySelf.html +1 -1
- package/docs/html/types/OrBoxedValue.html +1 -1
- package/docs/html/types/RxapAbstractControlOptions.html +1 -1
- package/docs/html/types/SetValueFn.html +1 -1
- package/docs/html/types/ValidationErrors.html +1 -1
- package/docs/html/types/Validator.html +1 -1
- package/docs/html/types/ValidatorFn.html +1 -1
- package/docs/html/types/ValidatorOrOpts.html +1 -1
- package/docs/html/variables/RXAP_FORM_CONTEXT.html +1 -1
- package/docs/html/variables/RXAP_FORM_DEFINITION.html +1 -1
- package/docs/html/variables/RXAP_FORM_DEFINITION_BUILDER.html +1 -1
- package/docs/html/variables/RXAP_FORM_INITIAL_STATE.html +1 -1
- package/docs/html/variables/RXAP_FORM_LOAD_FAILED_METHOD.html +1 -1
- package/docs/html/variables/RXAP_FORM_LOAD_METHOD.html +1 -1
- package/docs/html/variables/RXAP_FORM_LOAD_SUCCESSFUL_METHOD.html +1 -1
- package/docs/html/variables/RXAP_FORM_SUBMIT_FAILED_METHOD.html +1 -1
- package/docs/html/variables/RXAP_FORM_SUBMIT_METHOD.html +1 -1
- package/docs/html/variables/RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD.html +1 -1
- package/docs/html/variables/RxapValidators.html +1 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/ControlValueAccessor.md +8 -8
- package/docs/markdown/classes/FormArrayControlManager.md +6 -6
- package/docs/markdown/classes/FormControlErrorDirective.md +8 -68
- package/docs/markdown/classes/FormControlMarkDirtyDirective.md +4 -12
- package/docs/markdown/classes/FormControlMarkPristineDirective.md +4 -12
- package/docs/markdown/classes/FormControlMarkTouchedDirective.md +4 -12
- package/docs/markdown/classes/FormControlMarkUntouchedDirective.md +4 -12
- package/docs/markdown/classes/FormControlNameDirective.md +38 -58
- package/docs/markdown/classes/FormDirective.md +255 -224
- package/docs/markdown/classes/FormGroupNameDirective.md +33 -47
- package/docs/markdown/classes/FormLoadedDirective.md +4 -62
- package/docs/markdown/classes/FormLoadingDirective.md +4 -62
- package/docs/markdown/classes/FormLoadingErrorDirective.md +4 -62
- package/docs/markdown/classes/FormResetDirective.md +15 -35
- package/docs/markdown/classes/FormSubmitDirective.md +33 -57
- package/docs/markdown/classes/FormSubmitFailedDirective.md +4 -62
- package/docs/markdown/classes/FormSubmitInvalidDirective.md +4 -62
- package/docs/markdown/classes/FormSubmitSuccessfulDirective.md +4 -62
- package/docs/markdown/classes/FormSubmittingDirective.md +4 -62
- package/docs/markdown/classes/ParentControlContainerDirective.md +2 -2
- package/docs/markdown/classes/RxapFormArray.md +132 -103
- package/docs/markdown/classes/RxapFormBuilder.md +4 -4
- package/docs/markdown/classes/RxapFormControl.md +127 -103
- package/docs/markdown/classes/RxapFormGroup.md +140 -117
- package/docs/markdown/enumerations/MetadataKeys.md +10 -10
- package/docs/markdown/functions/ControlAsyncValidator.md +2 -2
- package/docs/markdown/functions/ControlChange.md +2 -2
- package/docs/markdown/functions/ControlSetValue.md +2 -2
- package/docs/markdown/functions/ControlValidator.md +2 -2
- package/docs/markdown/functions/IsArray.md +2 -2
- package/docs/markdown/functions/IsBoolean.md +2 -2
- package/docs/markdown/functions/IsComplex.md +2 -2
- package/docs/markdown/functions/IsDate.md +2 -2
- package/docs/markdown/functions/IsEmail.md +2 -2
- package/docs/markdown/functions/IsEnum.md +2 -2
- package/docs/markdown/functions/IsIP.md +2 -2
- package/docs/markdown/functions/IsInt.md +2 -2
- package/docs/markdown/functions/IsNumber-2.md +2 -2
- package/docs/markdown/functions/IsNumber.md +2 -2
- package/docs/markdown/functions/IsObject.md +2 -2
- package/docs/markdown/functions/IsPhoneNumber.md +2 -2
- package/docs/markdown/functions/IsPort.md +2 -2
- package/docs/markdown/functions/IsString.md +2 -2
- package/docs/markdown/functions/IsUUID.md +2 -2
- package/docs/markdown/functions/IsUrl.md +2 -2
- package/docs/markdown/functions/RxapForm.md +2 -2
- package/docs/markdown/functions/ToFormMethod.md +2 -2
- package/docs/markdown/functions/ToFormSubmitMethod.md +2 -2
- package/docs/markdown/functions/UseFormArrayControl.md +2 -2
- package/docs/markdown/functions/UseFormArrayGroup.md +2 -2
- package/docs/markdown/functions/UseFormControl.md +2 -2
- package/docs/markdown/functions/UseFormGroup.md +2 -2
- package/docs/markdown/functions/controlDisabled$.md +2 -2
- package/docs/markdown/functions/controlDisabledWhile.md +2 -2
- package/docs/markdown/functions/controlEnabled$.md +2 -2
- package/docs/markdown/functions/controlEnabledWhile.md +2 -2
- package/docs/markdown/functions/controlErrorChanges$.md +2 -2
- package/docs/markdown/functions/controlReadonly$.md +2 -2
- package/docs/markdown/functions/controlStatusChanges$.md +2 -2
- package/docs/markdown/functions/controlValueChanges$.md +2 -2
- package/docs/markdown/functions/disableControl.md +2 -2
- package/docs/markdown/functions/enableControl.md +2 -2
- package/docs/markdown/functions/hasErrorAndDirty.md +2 -2
- package/docs/markdown/functions/hasErrorAndTouched.md +2 -2
- package/docs/markdown/functions/isNumber-1.md +2 -2
- package/docs/markdown/functions/markAllDirty.md +2 -2
- package/docs/markdown/functions/markAllPristine.md +2 -2
- package/docs/markdown/functions/markAllUntouched.md +2 -2
- package/docs/markdown/functions/mergeControlValidators.md +2 -2
- package/docs/markdown/functions/selectControlValue$.md +2 -2
- package/docs/markdown/functions/validateControlOn.md +2 -2
- package/docs/markdown/globals.md +2 -3
- package/docs/markdown/interfaces/AbstractControl.md +122 -73
- package/docs/markdown/interfaces/AbstractControlOptions.md +6 -6
- package/docs/markdown/interfaces/BoxedValue.md +4 -4
- package/docs/markdown/interfaces/ComplexityOptions.md +12 -12
- package/docs/markdown/interfaces/ControlOptions.md +10 -10
- package/docs/markdown/interfaces/ControlSetValueOptions.md +4 -4
- package/docs/markdown/interfaces/FormArrayOptions.md +16 -16
- package/docs/markdown/interfaces/FormDefinition.md +7 -7
- package/docs/markdown/interfaces/FormDefinitionArray.md +70 -36
- package/docs/markdown/interfaces/FormDefinitionMetadata.md +15 -15
- package/docs/markdown/interfaces/FormGroupOptions.md +13 -13
- package/docs/markdown/interfaces/FormLoadFailedMethod.md +4 -4
- package/docs/markdown/interfaces/FormLoadMethod.md +4 -4
- package/docs/markdown/interfaces/FormLoadSuccessfulMethod.md +4 -4
- package/docs/markdown/interfaces/FormOptions.md +13 -13
- package/docs/markdown/interfaces/FormSubmitFailedMethod.md +4 -4
- package/docs/markdown/interfaces/FormSubmitMethod.md +4 -4
- package/docs/markdown/interfaces/FormSubmitSuccessfulMethod.md +4 -4
- package/docs/markdown/interfaces/InjectableValidator.md +4 -4
- package/docs/markdown/interfaces/IsNumberOptions.md +6 -6
- package/docs/markdown/interfaces/NgValidatorsErrors.md +9 -9
- package/docs/markdown/interfaces/RxapAbstractControlOptions.md +12 -12
- package/docs/markdown/interfaces/RxapAbstractControlOptionsWithDefinition.md +13 -13
- package/docs/markdown/type-aliases/AsyncValidator.md +2 -2
- package/docs/markdown/type-aliases/AsyncValidatorFn.md +2 -2
- package/docs/markdown/type-aliases/ChangeFn.md +2 -2
- package/docs/markdown/type-aliases/ControlEventOptions.md +2 -2
- package/docs/markdown/type-aliases/ControlInsertedFn.md +2 -2
- package/docs/markdown/type-aliases/ControlPath.md +2 -2
- package/docs/markdown/type-aliases/ControlRemovedFn.md +2 -2
- package/docs/markdown/type-aliases/ControlState.md +2 -2
- package/docs/markdown/type-aliases/EmitEvent.md +2 -2
- package/docs/markdown/type-aliases/ExtractAbstractControl.md +2 -2
- package/docs/markdown/type-aliases/ExtractStrings.md +2 -2
- package/docs/markdown/type-aliases/FormBuilderFn.md +2 -2
- package/docs/markdown/type-aliases/FormType.md +2 -2
- package/docs/markdown/type-aliases/KeyValueControls.md +2 -2
- package/docs/markdown/type-aliases/OnlySelf.md +2 -2
- package/docs/markdown/type-aliases/OrBoxedValue.md +2 -2
- package/docs/markdown/type-aliases/RxapAbstractControlOptions.md +2 -2
- package/docs/markdown/type-aliases/SetValueFn.md +2 -2
- package/docs/markdown/type-aliases/ValidationErrors.md +2 -2
- package/docs/markdown/type-aliases/Validator.md +2 -2
- package/docs/markdown/type-aliases/ValidatorFn.md +2 -2
- package/docs/markdown/type-aliases/ValidatorOrOpts.md +2 -2
- package/docs/markdown/variables/RXAP_FORM_CONTEXT.md +2 -2
- package/docs/markdown/variables/RXAP_FORM_DEFINITION.md +2 -2
- package/docs/markdown/variables/RXAP_FORM_DEFINITION_BUILDER.md +2 -2
- package/docs/markdown/variables/RXAP_FORM_INITIAL_STATE.md +2 -2
- package/docs/markdown/variables/RXAP_FORM_LOAD_FAILED_METHOD.md +2 -2
- package/docs/markdown/variables/RXAP_FORM_LOAD_METHOD.md +2 -2
- package/docs/markdown/variables/RXAP_FORM_LOAD_SUCCESSFUL_METHOD.md +2 -2
- package/docs/markdown/variables/RXAP_FORM_SUBMIT_FAILED_METHOD.md +2 -2
- package/docs/markdown/variables/RXAP_FORM_SUBMIT_METHOD.md +2 -2
- package/docs/markdown/variables/RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD.md +2 -2
- package/docs/markdown/variables/RxapValidators.md +2 -2
- package/docs/wiki/Class.ControlValueAccessor.md +7 -7
- package/docs/wiki/Class.FormArrayControlManager.md +5 -5
- package/docs/wiki/Class.FormControlErrorDirective.md +7 -67
- package/docs/wiki/Class.FormControlMarkDirtyDirective.md +3 -11
- package/docs/wiki/Class.FormControlMarkPristineDirective.md +3 -11
- package/docs/wiki/Class.FormControlMarkTouchedDirective.md +3 -11
- package/docs/wiki/Class.FormControlMarkUntouchedDirective.md +3 -11
- package/docs/wiki/Class.FormControlNameDirective.md +37 -57
- package/docs/wiki/Class.FormDirective.md +254 -223
- package/docs/wiki/Class.FormGroupNameDirective.md +32 -46
- package/docs/wiki/Class.FormLoadedDirective.md +3 -61
- package/docs/wiki/Class.FormLoadingDirective.md +3 -61
- package/docs/wiki/Class.FormLoadingErrorDirective.md +3 -61
- package/docs/wiki/Class.FormResetDirective.md +14 -34
- package/docs/wiki/Class.FormSubmitDirective.md +32 -56
- package/docs/wiki/Class.FormSubmitFailedDirective.md +3 -61
- package/docs/wiki/Class.FormSubmitInvalidDirective.md +3 -61
- package/docs/wiki/Class.FormSubmitSuccessfulDirective.md +3 -61
- package/docs/wiki/Class.FormSubmittingDirective.md +3 -61
- package/docs/wiki/Class.ParentControlContainerDirective.md +1 -1
- package/docs/wiki/Class.RxapFormArray.md +131 -102
- package/docs/wiki/Class.RxapFormBuilder.md +3 -3
- package/docs/wiki/Class.RxapFormControl.md +126 -102
- package/docs/wiki/Class.RxapFormGroup.md +139 -116
- package/docs/wiki/Enumeration.MetadataKeys.md +9 -9
- package/docs/wiki/Function.ControlAsyncValidator.md +1 -1
- package/docs/wiki/Function.ControlChange.md +1 -1
- package/docs/wiki/Function.ControlSetValue.md +1 -1
- package/docs/wiki/Function.ControlValidator.md +1 -1
- package/docs/wiki/Function.IsArray.md +1 -1
- package/docs/wiki/Function.IsBoolean.md +1 -1
- package/docs/wiki/Function.IsComplex.md +1 -1
- package/docs/wiki/Function.IsDate.md +1 -1
- package/docs/wiki/Function.IsEmail.md +1 -1
- package/docs/wiki/Function.IsEnum.md +1 -1
- package/docs/wiki/Function.IsIP.md +1 -1
- package/docs/wiki/Function.IsInt.md +1 -1
- package/docs/wiki/Function.IsNumber.md +1 -1
- package/docs/wiki/Function.IsObject.md +1 -1
- package/docs/wiki/Function.IsPhoneNumber.md +1 -1
- package/docs/wiki/Function.IsPort.md +1 -1
- package/docs/wiki/Function.IsString.md +1 -1
- package/docs/wiki/Function.IsUUID.md +1 -1
- package/docs/wiki/Function.IsUrl.md +1 -1
- package/docs/wiki/Function.RxapForm.md +1 -1
- package/docs/wiki/Function.ToFormMethod.md +1 -1
- package/docs/wiki/Function.ToFormSubmitMethod.md +1 -1
- package/docs/wiki/Function.UseFormArrayControl.md +1 -1
- package/docs/wiki/Function.UseFormArrayGroup.md +1 -1
- package/docs/wiki/Function.UseFormControl.md +1 -1
- package/docs/wiki/Function.UseFormGroup.md +1 -1
- package/docs/wiki/Function._IsNumber.md +1 -1
- package/docs/wiki/Function.controlDisabled$.md +1 -1
- package/docs/wiki/Function.controlDisabledWhile.md +1 -1
- package/docs/wiki/Function.controlEnabled$.md +1 -1
- package/docs/wiki/Function.controlEnabledWhile.md +1 -1
- package/docs/wiki/Function.controlErrorChanges$.md +1 -1
- package/docs/wiki/Function.controlReadonly$.md +1 -1
- package/docs/wiki/Function.controlStatusChanges$.md +1 -1
- package/docs/wiki/Function.controlValueChanges$.md +1 -1
- package/docs/wiki/Function.disableControl.md +1 -1
- package/docs/wiki/Function.enableControl.md +1 -1
- package/docs/wiki/Function.hasErrorAndDirty.md +1 -1
- package/docs/wiki/Function.hasErrorAndTouched.md +1 -1
- package/docs/wiki/Function.isNumber.md +1 -1
- package/docs/wiki/Function.markAllDirty.md +1 -1
- package/docs/wiki/Function.markAllPristine.md +1 -1
- package/docs/wiki/Function.markAllUntouched.md +1 -1
- package/docs/wiki/Function.mergeControlValidators.md +1 -1
- package/docs/wiki/Function.selectControlValue$.md +1 -1
- package/docs/wiki/Function.validateControlOn.md +1 -1
- package/docs/wiki/Interface.AbstractControl.md +121 -72
- package/docs/wiki/Interface.AbstractControlOptions.md +5 -5
- package/docs/wiki/Interface.BoxedValue.md +3 -3
- package/docs/wiki/Interface.ComplexityOptions.md +11 -11
- package/docs/wiki/Interface.ControlOptions.md +9 -9
- package/docs/wiki/Interface.ControlSetValueOptions.md +3 -3
- package/docs/wiki/Interface.FormArrayOptions.md +15 -15
- package/docs/wiki/Interface.FormDefinition.md +6 -6
- package/docs/wiki/Interface.FormDefinitionArray.md +69 -35
- package/docs/wiki/Interface.FormDefinitionMetadata.md +14 -14
- package/docs/wiki/Interface.FormGroupOptions.md +12 -12
- package/docs/wiki/Interface.FormLoadFailedMethod.md +3 -3
- package/docs/wiki/Interface.FormLoadMethod.md +3 -3
- package/docs/wiki/Interface.FormLoadSuccessfulMethod.md +3 -3
- package/docs/wiki/Interface.FormOptions.md +12 -12
- package/docs/wiki/Interface.FormSubmitFailedMethod.md +3 -3
- package/docs/wiki/Interface.FormSubmitMethod.md +3 -3
- package/docs/wiki/Interface.FormSubmitSuccessfulMethod.md +3 -3
- package/docs/wiki/Interface.InjectableValidator.md +3 -3
- package/docs/wiki/Interface.IsNumberOptions.md +5 -5
- package/docs/wiki/Interface.NgValidatorsErrors.md +8 -8
- package/docs/wiki/Interface.RxapAbstractControlOptionsWithDefinition.md +12 -12
- package/docs/wiki/Interface._RxapAbstractControlOptions.md +11 -11
- package/docs/wiki/TypeAlias.AsyncValidator.md +1 -1
- package/docs/wiki/TypeAlias.AsyncValidatorFn.md +1 -1
- package/docs/wiki/TypeAlias.ChangeFn.md +1 -1
- package/docs/wiki/TypeAlias.ControlEventOptions.md +1 -1
- package/docs/wiki/TypeAlias.ControlInsertedFn.md +1 -1
- package/docs/wiki/TypeAlias.ControlPath.md +1 -1
- package/docs/wiki/TypeAlias.ControlRemovedFn.md +1 -1
- package/docs/wiki/TypeAlias.ControlState.md +1 -1
- package/docs/wiki/TypeAlias.EmitEvent.md +1 -1
- package/docs/wiki/TypeAlias.ExtractAbstractControl.md +1 -1
- package/docs/wiki/TypeAlias.ExtractStrings.md +1 -1
- package/docs/wiki/TypeAlias.FormBuilderFn.md +1 -1
- package/docs/wiki/TypeAlias.FormType.md +1 -1
- package/docs/wiki/TypeAlias.KeyValueControls.md +1 -1
- package/docs/wiki/TypeAlias.OnlySelf.md +1 -1
- package/docs/wiki/TypeAlias.OrBoxedValue.md +1 -1
- package/docs/wiki/TypeAlias.RxapAbstractControlOptions.md +1 -1
- package/docs/wiki/TypeAlias.SetValueFn.md +1 -1
- package/docs/wiki/TypeAlias.ValidationErrors.md +1 -1
- package/docs/wiki/TypeAlias.Validator.md +1 -1
- package/docs/wiki/TypeAlias.ValidatorFn.md +1 -1
- package/docs/wiki/TypeAlias.ValidatorOrOpts.md +1 -1
- package/docs/wiki/Variable.RXAP_FORM_CONTEXT.md +1 -1
- package/docs/wiki/Variable.RXAP_FORM_DEFINITION.md +1 -1
- package/docs/wiki/Variable.RXAP_FORM_DEFINITION_BUILDER.md +1 -1
- package/docs/wiki/Variable.RXAP_FORM_INITIAL_STATE.md +1 -1
- package/docs/wiki/Variable.RXAP_FORM_LOAD_FAILED_METHOD.md +1 -1
- package/docs/wiki/Variable.RXAP_FORM_LOAD_METHOD.md +1 -1
- package/docs/wiki/Variable.RXAP_FORM_LOAD_SUCCESSFUL_METHOD.md +1 -1
- package/docs/wiki/Variable.RXAP_FORM_SUBMIT_FAILED_METHOD.md +1 -1
- package/docs/wiki/Variable.RXAP_FORM_SUBMIT_METHOD.md +1 -1
- package/docs/wiki/Variable.RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD.md +1 -1
- package/docs/wiki/Variable.RxapValidators.md +1 -1
- package/docs/wiki/_Sidebar.md +0 -1
- package/docs/wiki/globals.md +1 -2
- package/fesm2022/rxap-forms.mjs +1878 -2197
- package/fesm2022/rxap-forms.mjs.map +1 -1
- package/package.json +35 -30
- package/types/rxap-forms.d.ts +969 -0
- package/docs/html/classes/RxapFormsModule.html +0 -2
- package/docs/markdown/classes/RxapFormsModule.md +0 -19
- package/docs/wiki/Class.RxapFormsModule.md +0 -15
- package/index.d.ts +0 -55
- package/lib/control-actions.d.ts +0 -23
- package/lib/control-value-accessor.d.ts +0 -9
- package/lib/decorators/control-async-validator.d.ts +0 -1
- package/lib/decorators/control-change.d.ts +0 -1
- package/lib/decorators/control-set-value.d.ts +0 -5
- package/lib/decorators/control-validator.d.ts +0 -1
- package/lib/decorators/form.d.ts +0 -2
- package/lib/decorators/metadata-keys.d.ts +0 -10
- package/lib/decorators/use-form-array.d.ts +0 -4
- package/lib/decorators/use-form-control.d.ts +0 -2
- package/lib/decorators/use-form-group.d.ts +0 -3
- package/lib/directives/form-control-error.directive.d.ts +0 -22
- package/lib/directives/form-control-mark-dirty.directive.d.ts +0 -9
- package/lib/directives/form-control-mark-pristine.directive.d.ts +0 -9
- package/lib/directives/form-control-mark-touched.directive.d.ts +0 -9
- package/lib/directives/form-control-mark-untouched.directive.d.ts +0 -9
- package/lib/directives/form-control-name.directive.d.ts +0 -16
- package/lib/directives/form-group-name.directive.d.ts +0 -16
- package/lib/directives/form-loaded.directive.d.ts +0 -14
- package/lib/directives/form-loading-error.directive.d.ts +0 -16
- package/lib/directives/form-loading.directive.d.ts +0 -14
- package/lib/directives/form-reset.directive.d.ts +0 -11
- package/lib/directives/form-submit-failed.directive.d.ts +0 -16
- package/lib/directives/form-submit-invalid.directive.d.ts +0 -16
- package/lib/directives/form-submit-successful.directive.d.ts +0 -16
- package/lib/directives/form-submit.directive.d.ts +0 -22
- package/lib/directives/form-submitting.directive.d.ts +0 -14
- package/lib/directives/form.directive.d.ts +0 -62
- package/lib/directives/forms.module.d.ts +0 -23
- package/lib/directives/models.d.ts +0 -29
- package/lib/directives/parent-control-container.directive.d.ts +0 -5
- package/lib/directives/tokens.d.ts +0 -12
- package/lib/form-array.d.ts +0 -76
- package/lib/form-builder.d.ts +0 -96
- package/lib/form-control.d.ts +0 -64
- package/lib/form-group.d.ts +0 -89
- package/lib/model.d.ts +0 -81
- package/lib/tokens.d.ts +0 -3
- package/lib/types.d.ts +0 -100
- package/lib/validators/index.d.ts +0 -32
- package/lib/validators/is-array.d.ts +0 -4
- package/lib/validators/is-boolean.d.ts +0 -4
- package/lib/validators/is-complex.d.ts +0 -17
- package/lib/validators/is-date.d.ts +0 -4
- package/lib/validators/is-email.d.ts +0 -6
- package/lib/validators/is-enum.d.ts +0 -5
- package/lib/validators/is-int.d.ts +0 -6
- package/lib/validators/is-ip.d.ts +0 -5
- package/lib/validators/is-number.d.ts +0 -24
- package/lib/validators/is-object.d.ts +0 -4
- package/lib/validators/is-phone-number.d.ts +0 -7
- package/lib/validators/is-port.d.ts +0 -4
- package/lib/validators/is-string.d.ts +0 -4
- package/lib/validators/is-url.d.ts +0 -6
- package/lib/validators/is-uuid.d.ts +0 -5
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Class: RxapFormControl\<T, E, Parent\>
|
|
4
4
|
|
|
5
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:44](https://gitlab.com/rxap/packages/-/blob/
|
|
5
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:44](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L44)
|
|
6
6
|
|
|
7
7
|
## Extends
|
|
8
8
|
|
|
@@ -22,7 +22,7 @@ Defined in: [packages/angular/forms/src/lib/form-control.ts:44](https://gitlab.c
|
|
|
22
22
|
|
|
23
23
|
> **new RxapFormControl**\<`T`, `E`, `Parent`\>(`formState`, `options`): [`RxapFormControl`](../wiki/Class.RxapFormControl)\<`T`, `E`, `Parent`\>
|
|
24
24
|
|
|
25
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:129](https://gitlab.com/rxap/packages/-/blob/
|
|
25
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:129](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L129)
|
|
26
26
|
|
|
27
27
|
#### Parameters
|
|
28
28
|
|
|
@@ -48,7 +48,7 @@ Defined in: [packages/angular/forms/src/lib/form-control.ts:129](https://gitlab.
|
|
|
48
48
|
|
|
49
49
|
> `protected` **\_initialState**: [`OrBoxedValue`](../wiki/TypeAlias.OrBoxedValue)\<`T`\>
|
|
50
50
|
|
|
51
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:69](https://gitlab.com/rxap/packages/-/blob/
|
|
51
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:69](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L69)
|
|
52
52
|
|
|
53
53
|
***
|
|
54
54
|
|
|
@@ -56,15 +56,15 @@ Defined in: [packages/angular/forms/src/lib/form-control.ts:69](https://gitlab.c
|
|
|
56
56
|
|
|
57
57
|
> `readonly` **controlId**: `string`
|
|
58
58
|
|
|
59
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:98](https://gitlab.com/rxap/packages/-/blob/
|
|
59
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:98](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L98)
|
|
60
60
|
|
|
61
61
|
***
|
|
62
62
|
|
|
63
63
|
### defaultValue
|
|
64
64
|
|
|
65
|
-
>
|
|
65
|
+
> **defaultValue**: `any`
|
|
66
66
|
|
|
67
|
-
Defined in: node\_modules/@angular/forms/
|
|
67
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:1604
|
|
68
68
|
|
|
69
69
|
The default value of this FormControl, used whenever the control is reset without an explicit
|
|
70
70
|
value. See FormControlOptions#nonNullable for more information on configuring
|
|
@@ -80,7 +80,7 @@ a default value.
|
|
|
80
80
|
|
|
81
81
|
> `readonly` **dirty$**: `Observable`\<`boolean`\>
|
|
82
82
|
|
|
83
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:78](https://gitlab.com/rxap/packages/-/blob/
|
|
83
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:78](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L78)
|
|
84
84
|
|
|
85
85
|
***
|
|
86
86
|
|
|
@@ -88,7 +88,7 @@ Defined in: [packages/angular/forms/src/lib/form-control.ts:78](https://gitlab.c
|
|
|
88
88
|
|
|
89
89
|
> `readonly` **disabled$**: `Observable`\<`boolean`\>
|
|
90
90
|
|
|
91
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:83](https://gitlab.com/rxap/packages/-/blob/
|
|
91
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:83](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L83)
|
|
92
92
|
|
|
93
93
|
***
|
|
94
94
|
|
|
@@ -96,7 +96,7 @@ Defined in: [packages/angular/forms/src/lib/form-control.ts:83](https://gitlab.c
|
|
|
96
96
|
|
|
97
97
|
> `readonly` **enabled$**: `Observable`\<`boolean`\>
|
|
98
98
|
|
|
99
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:84](https://gitlab.com/rxap/packages/-/blob/
|
|
99
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:84](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L84)
|
|
100
100
|
|
|
101
101
|
***
|
|
102
102
|
|
|
@@ -104,7 +104,7 @@ Defined in: [packages/angular/forms/src/lib/form-control.ts:84](https://gitlab.c
|
|
|
104
104
|
|
|
105
105
|
> `readonly` **errors**: `null` \| `E`
|
|
106
106
|
|
|
107
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:59](https://gitlab.com/rxap/packages/-/blob/
|
|
107
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:59](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L59)
|
|
108
108
|
|
|
109
109
|
An object containing any errors generated by failing validation,
|
|
110
110
|
or null if there are no errors.
|
|
@@ -119,7 +119,7 @@ or null if there are no errors.
|
|
|
119
119
|
|
|
120
120
|
> `readonly` **errors$**: `Observable`\<`null` \| `E`\>
|
|
121
121
|
|
|
122
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:96](https://gitlab.com/rxap/packages/-/blob/
|
|
122
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:96](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L96)
|
|
123
123
|
|
|
124
124
|
***
|
|
125
125
|
|
|
@@ -127,7 +127,7 @@ Defined in: [packages/angular/forms/src/lib/form-control.ts:96](https://gitlab.c
|
|
|
127
127
|
|
|
128
128
|
> `readonly` **events**: `Observable`\<`ControlEvent`\<`any`\>\>
|
|
129
129
|
|
|
130
|
-
Defined in: node\_modules/@angular/forms/
|
|
130
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:2691
|
|
131
131
|
|
|
132
132
|
A multicasting observable that emits an event every time the state of the control changes.
|
|
133
133
|
It emits for value, status, pristine or touched changes.
|
|
@@ -139,6 +139,10 @@ of this event might result in getting a value that has not been updated yet. Sub
|
|
|
139
139
|
`events` of the parent control instead.
|
|
140
140
|
For other event types, the events are emitted after the parent control has been updated.
|
|
141
141
|
|
|
142
|
+
#### See
|
|
143
|
+
|
|
144
|
+
[Unified control state change events](../wiki/guide/forms/reactive-forms#unified-control-state-change-events)
|
|
145
|
+
|
|
142
146
|
#### Inherited from
|
|
143
147
|
|
|
144
148
|
`UntypedFormControl.events`
|
|
@@ -149,7 +153,7 @@ For other event types, the events are emitted after the parent control has been
|
|
|
149
153
|
|
|
150
154
|
> `readonly` **readonly$**: `Observable`\<`boolean`\>
|
|
151
155
|
|
|
152
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:103](https://gitlab.com/rxap/packages/-/blob/
|
|
156
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:103](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L103)
|
|
153
157
|
|
|
154
158
|
***
|
|
155
159
|
|
|
@@ -157,7 +161,7 @@ Defined in: [packages/angular/forms/src/lib/form-control.ts:103](https://gitlab.
|
|
|
157
161
|
|
|
158
162
|
> `readonly` **stateChanges**: `Subject`\<`void`\>
|
|
159
163
|
|
|
160
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:102](https://gitlab.com/rxap/packages/-/blob/
|
|
164
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:102](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L102)
|
|
161
165
|
|
|
162
166
|
***
|
|
163
167
|
|
|
@@ -165,7 +169,7 @@ Defined in: [packages/angular/forms/src/lib/form-control.ts:102](https://gitlab.
|
|
|
165
169
|
|
|
166
170
|
> `readonly` **status**: [`ControlState`](../wiki/TypeAlias.ControlState)
|
|
167
171
|
|
|
168
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:64](https://gitlab.com/rxap/packages/-/blob/
|
|
172
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:64](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L64)
|
|
169
173
|
|
|
170
174
|
The validation status of the control.
|
|
171
175
|
|
|
@@ -186,7 +190,7 @@ both valid AND invalid or invalid AND disabled.
|
|
|
186
190
|
|
|
187
191
|
> `readonly` **status$**: `Observable`\<[`ControlState`](../wiki/TypeAlias.ControlState)\>
|
|
188
192
|
|
|
189
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:95](https://gitlab.com/rxap/packages/-/blob/
|
|
193
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:95](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L95)
|
|
190
194
|
|
|
191
195
|
***
|
|
192
196
|
|
|
@@ -194,7 +198,7 @@ Defined in: [packages/angular/forms/src/lib/form-control.ts:95](https://gitlab.c
|
|
|
194
198
|
|
|
195
199
|
> `readonly` **statusChanges**: `Observable`\<[`ControlState`](../wiki/TypeAlias.ControlState)\>
|
|
196
200
|
|
|
197
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:65](https://gitlab.com/rxap/packages/-/blob/
|
|
201
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:65](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L65)
|
|
198
202
|
|
|
199
203
|
A multicasting observable that emits an event every time the validation `status` of the control
|
|
200
204
|
recalculates.
|
|
@@ -214,7 +218,7 @@ recalculates.
|
|
|
214
218
|
|
|
215
219
|
> `readonly` **touch$**: `Observable`\<`boolean`\>
|
|
216
220
|
|
|
217
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:75](https://gitlab.com/rxap/packages/-/blob/
|
|
221
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:75](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L75)
|
|
218
222
|
|
|
219
223
|
***
|
|
220
224
|
|
|
@@ -222,7 +226,7 @@ Defined in: [packages/angular/forms/src/lib/form-control.ts:75](https://gitlab.c
|
|
|
222
226
|
|
|
223
227
|
> `readonly` **value**: `T`
|
|
224
228
|
|
|
225
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:58](https://gitlab.com/rxap/packages/-/blob/
|
|
229
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:58](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L58)
|
|
226
230
|
|
|
227
231
|
The current value of the control.
|
|
228
232
|
|
|
@@ -231,7 +235,8 @@ The current value of the control.
|
|
|
231
235
|
with a key-value pair for each member of the group.
|
|
232
236
|
* For a disabled `FormGroup`, the values of all controls as an object
|
|
233
237
|
with a key-value pair for each member of the group.
|
|
234
|
-
* For
|
|
238
|
+
* For an enabled `FormArray`, the values of enabled controls as an array.
|
|
239
|
+
* For a disabled `FormArray`, the values of all controls as an array.
|
|
235
240
|
|
|
236
241
|
#### Overrides
|
|
237
242
|
|
|
@@ -243,7 +248,7 @@ with a key-value pair for each member of the group.
|
|
|
243
248
|
|
|
244
249
|
> `readonly` **value$**: `Observable`\<`T`\>
|
|
245
250
|
|
|
246
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:82](https://gitlab.com/rxap/packages/-/blob/
|
|
251
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:82](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L82)
|
|
247
252
|
|
|
248
253
|
***
|
|
249
254
|
|
|
@@ -251,7 +256,7 @@ Defined in: [packages/angular/forms/src/lib/form-control.ts:82](https://gitlab.c
|
|
|
251
256
|
|
|
252
257
|
> `readonly` **valueChanges**: `Observable`\<`T`\>
|
|
253
258
|
|
|
254
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:62](https://gitlab.com/rxap/packages/-/blob/
|
|
259
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:62](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L62)
|
|
255
260
|
|
|
256
261
|
A multicasting observable that emits an event every time the value of the control changes, in
|
|
257
262
|
the UI or programmatically. It also emits an event each time you call enable() or disable()
|
|
@@ -275,7 +280,7 @@ event might result in getting a value that has not been updated yet. Subscribe t
|
|
|
275
280
|
|
|
276
281
|
> **get** **asyncValidator**(): `null` \| `AsyncValidatorFn`
|
|
277
282
|
|
|
278
|
-
Defined in: node\_modules/@angular/forms/
|
|
283
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:2573
|
|
279
284
|
|
|
280
285
|
Returns the function that is used to determine the validity of this control asynchronously.
|
|
281
286
|
If multiple validators have been added, this will be a single composed function.
|
|
@@ -289,7 +294,7 @@ See `Validators.compose()` for additional information.
|
|
|
289
294
|
|
|
290
295
|
> **set** **asyncValidator**(`asyncValidatorFn`): `void`
|
|
291
296
|
|
|
292
|
-
Defined in: node\_modules/@angular/forms/
|
|
297
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:2574
|
|
293
298
|
|
|
294
299
|
##### Parameters
|
|
295
300
|
|
|
@@ -313,7 +318,7 @@ Defined in: node\_modules/@angular/forms/index.d.ts:2162
|
|
|
313
318
|
|
|
314
319
|
> **get** **controlPath**(): `string`
|
|
315
320
|
|
|
316
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:105](https://gitlab.com/rxap/packages/-/blob/
|
|
321
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:105](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L105)
|
|
317
322
|
|
|
318
323
|
##### Returns
|
|
319
324
|
|
|
@@ -327,7 +332,7 @@ Defined in: [packages/angular/forms/src/lib/form-control.ts:105](https://gitlab.
|
|
|
327
332
|
|
|
328
333
|
> **get** **dirty**(): `boolean`
|
|
329
334
|
|
|
330
|
-
Defined in: node\_modules/@angular/forms/
|
|
335
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:2661
|
|
331
336
|
|
|
332
337
|
A control is `dirty` if the user has changed the value
|
|
333
338
|
in the UI.
|
|
@@ -351,7 +356,7 @@ Programmatic changes to a control's value do not mark it dirty.
|
|
|
351
356
|
|
|
352
357
|
> **get** **disabled**(): `boolean`
|
|
353
358
|
|
|
354
|
-
Defined in: node\_modules/@angular/forms/
|
|
359
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:2628
|
|
355
360
|
|
|
356
361
|
A control is `disabled` when its `status` is `DISABLED`.
|
|
357
362
|
|
|
@@ -381,7 +386,7 @@ True if the control is disabled, false otherwise.
|
|
|
381
386
|
|
|
382
387
|
> **get** **enabled**(): `boolean`
|
|
383
388
|
|
|
384
|
-
Defined in: node\_modules/@angular/forms/
|
|
389
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:2638
|
|
385
390
|
|
|
386
391
|
A control is `enabled` as long as its `status` is not `DISABLED`.
|
|
387
392
|
|
|
@@ -408,7 +413,7 @@ false if the status is 'DISABLED'.
|
|
|
408
413
|
|
|
409
414
|
> **get** **fullControlPath**(): `string`
|
|
410
415
|
|
|
411
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:119](https://gitlab.com/rxap/packages/-/blob/
|
|
416
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:119](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L119)
|
|
412
417
|
|
|
413
418
|
##### Returns
|
|
414
419
|
|
|
@@ -422,7 +427,7 @@ Defined in: [packages/angular/forms/src/lib/form-control.ts:119](https://gitlab.
|
|
|
422
427
|
|
|
423
428
|
> **get** **initialState**(): [`OrBoxedValue`](../wiki/TypeAlias.OrBoxedValue)\<`T`\>
|
|
424
429
|
|
|
425
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:66](https://gitlab.com/rxap/packages/-/blob/
|
|
430
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:66](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L66)
|
|
426
431
|
|
|
427
432
|
##### Returns
|
|
428
433
|
|
|
@@ -436,7 +441,7 @@ Defined in: [packages/angular/forms/src/lib/form-control.ts:66](https://gitlab.c
|
|
|
436
441
|
|
|
437
442
|
> **get** **invalid**(): `boolean`
|
|
438
443
|
|
|
439
|
-
Defined in: node\_modules/@angular/forms/
|
|
444
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:2607
|
|
440
445
|
|
|
441
446
|
A control is `invalid` when its `status` is `INVALID`.
|
|
442
447
|
|
|
@@ -463,7 +468,7 @@ false otherwise.
|
|
|
463
468
|
|
|
464
469
|
> **get** **parent**(): `null` \| `FormGroup`\<`any`\> \| `FormArray`\<`any`\>
|
|
465
470
|
|
|
466
|
-
Defined in: node\_modules/@angular/forms/
|
|
471
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:2578
|
|
467
472
|
|
|
468
473
|
The parent control.
|
|
469
474
|
|
|
@@ -483,7 +488,7 @@ The parent control.
|
|
|
483
488
|
|
|
484
489
|
> **get** **pending**(): `boolean`
|
|
485
490
|
|
|
486
|
-
Defined in: node\_modules/@angular/forms/
|
|
491
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:2616
|
|
487
492
|
|
|
488
493
|
A control is `pending` when its `status` is `PENDING`.
|
|
489
494
|
|
|
@@ -510,7 +515,7 @@ false otherwise.
|
|
|
510
515
|
|
|
511
516
|
> **get** **pristine**(): `boolean`
|
|
512
517
|
|
|
513
|
-
Defined in: node\_modules/@angular/forms/
|
|
518
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:2651
|
|
514
519
|
|
|
515
520
|
A control is `pristine` if the user has not yet changed
|
|
516
521
|
the value in the UI.
|
|
@@ -526,7 +531,7 @@ Programmatic changes to a control's value do not mark it dirty.
|
|
|
526
531
|
|
|
527
532
|
> **set** **pristine**(`value`): `void`
|
|
528
533
|
|
|
529
|
-
Defined in: node\_modules/@angular/forms/
|
|
534
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:2652
|
|
530
535
|
|
|
531
536
|
##### Parameters
|
|
532
537
|
|
|
@@ -550,7 +555,7 @@ Defined in: node\_modules/@angular/forms/index.d.ts:2240
|
|
|
550
555
|
|
|
551
556
|
> **get** **readonly**(): `boolean`
|
|
552
557
|
|
|
553
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:86](https://gitlab.com/rxap/packages/-/blob/
|
|
558
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:86](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L86)
|
|
554
559
|
|
|
555
560
|
##### Returns
|
|
556
561
|
|
|
@@ -560,7 +565,7 @@ Defined in: [packages/angular/forms/src/lib/form-control.ts:86](https://gitlab.c
|
|
|
560
565
|
|
|
561
566
|
> **set** **readonly**(`value`): `void`
|
|
562
567
|
|
|
563
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:90](https://gitlab.com/rxap/packages/-/blob/
|
|
568
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:90](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L90)
|
|
564
569
|
|
|
565
570
|
##### Parameters
|
|
566
571
|
|
|
@@ -580,7 +585,7 @@ Defined in: [packages/angular/forms/src/lib/form-control.ts:90](https://gitlab.c
|
|
|
580
585
|
|
|
581
586
|
> **get** **root**(): `AbstractControl`
|
|
582
587
|
|
|
583
|
-
Defined in: node\_modules/@angular/forms/
|
|
588
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:3203
|
|
584
589
|
|
|
585
590
|
Retrieves the top-level ancestor of this control.
|
|
586
591
|
|
|
@@ -600,7 +605,7 @@ Retrieves the top-level ancestor of this control.
|
|
|
600
605
|
|
|
601
606
|
> **get** **rxapFormDefinition**(): `undefined` \| `Partial`\<[`FormDefinition`](../wiki/Interface.FormDefinition)\<`Parent`, `any`, `any`\>\> & \{ \[K in string \| number \| symbol\]: Parent\[K\] extends U\[\] ? FormDefinitionArray\<FormType\<U\>\> \| FormDefinitionArray\<RxapFormControl\<U, any, any\>\> \| RxapFormArray\<U, any, any\> \| RxapFormControl\<any\[any\], any, any\> : Parent\[K\] extends Record\<string, any\> ? Partial\<FormDefinition\<any\[any\], any, any\>\> & \{ \[K in string \| number \| symbol\]: any\[any\]\[K\] extends U\[\] ? FormDefinitionArray\<(...)\> \| FormDefinitionArray\<(...)\> \| RxapFormArray\<(...), (...), (...)\> \| RxapFormControl\<(...), (...), (...)\> : (...)\[(...)\] extends Record\<(...), (...)\> ? (...) \| (...) : RxapFormControl\<(...), (...), (...)\> \} & Partial\<FormDefinition\<any\[any\], any, any\>\> \| RxapFormControl\<any\[any\], any, any\> : RxapFormControl\<NonEmpty\<Parent\[K\]\>, any, any\> \} & [`FormDefinition`](../wiki/Interface.FormDefinition)\<`Parent`, `any`, `any`\>
|
|
602
607
|
|
|
603
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:52](https://gitlab.com/rxap/packages/-/blob/
|
|
608
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:52](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L52)
|
|
604
609
|
|
|
605
610
|
**`Internal`**
|
|
606
611
|
|
|
@@ -616,7 +621,7 @@ Defined in: [packages/angular/forms/src/lib/form-control.ts:52](https://gitlab.c
|
|
|
616
621
|
|
|
617
622
|
> **get** **touched**(): `boolean`
|
|
618
623
|
|
|
619
|
-
Defined in: node\_modules/@angular/forms/
|
|
624
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:2668
|
|
620
625
|
|
|
621
626
|
True if the control is marked as `touched`.
|
|
622
627
|
|
|
@@ -631,7 +636,7 @@ a `blur` event on it.
|
|
|
631
636
|
|
|
632
637
|
> **set** **touched**(`value`): `void`
|
|
633
638
|
|
|
634
|
-
Defined in: node\_modules/@angular/forms/
|
|
639
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:2669
|
|
635
640
|
|
|
636
641
|
##### Parameters
|
|
637
642
|
|
|
@@ -655,7 +660,7 @@ Defined in: node\_modules/@angular/forms/index.d.ts:2257
|
|
|
655
660
|
|
|
656
661
|
> **get** **untouched**(): `boolean`
|
|
657
662
|
|
|
658
|
-
Defined in: node\_modules/@angular/forms/
|
|
663
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:2677
|
|
659
664
|
|
|
660
665
|
True if the control has not been marked as touched
|
|
661
666
|
|
|
@@ -678,7 +683,7 @@ a `blur` event on it.
|
|
|
678
683
|
|
|
679
684
|
> **get** **updateOn**(): `FormHooks`
|
|
680
685
|
|
|
681
|
-
Defined in: node\_modules/@angular/forms/
|
|
686
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:2718
|
|
682
687
|
|
|
683
688
|
Reports the update strategy of the `AbstractControl` (meaning
|
|
684
689
|
the event on which the control updates itself).
|
|
@@ -701,7 +706,7 @@ Default value: `'change'`
|
|
|
701
706
|
|
|
702
707
|
> **get** **valid**(): `boolean`
|
|
703
708
|
|
|
704
|
-
Defined in: node\_modules/@angular/forms/
|
|
709
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:2598
|
|
705
710
|
|
|
706
711
|
A control is `valid` when its `status` is `VALID`.
|
|
707
712
|
|
|
@@ -728,7 +733,7 @@ false otherwise.
|
|
|
728
733
|
|
|
729
734
|
> **get** **validator**(): `null` \| `ValidatorFn`
|
|
730
735
|
|
|
731
|
-
Defined in: node\_modules/@angular/forms/
|
|
736
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:2566
|
|
732
737
|
|
|
733
738
|
Returns the function that is used to determine the validity of this control synchronously.
|
|
734
739
|
If multiple validators have been added, this will be a single composed function.
|
|
@@ -742,7 +747,7 @@ See `Validators.compose()` for additional information.
|
|
|
742
747
|
|
|
743
748
|
> **set** **validator**(`validatorFn`): `void`
|
|
744
749
|
|
|
745
|
-
Defined in: node\_modules/@angular/forms/
|
|
750
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:2567
|
|
746
751
|
|
|
747
752
|
##### Parameters
|
|
748
753
|
|
|
@@ -764,7 +769,7 @@ Defined in: node\_modules/@angular/forms/index.d.ts:2155
|
|
|
764
769
|
|
|
765
770
|
> **addAsyncValidators**(`validators`): `void`
|
|
766
771
|
|
|
767
|
-
Defined in: node\_modules/@angular/forms/
|
|
772
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:2765
|
|
768
773
|
|
|
769
774
|
Add an asynchronous validator or validators to this control, without affecting other
|
|
770
775
|
validators.
|
|
@@ -796,7 +801,7 @@ The new asynchronous validator function or functions to add to this control.
|
|
|
796
801
|
|
|
797
802
|
> **addValidators**(`validators`): `void`
|
|
798
803
|
|
|
799
|
-
Defined in: node\_modules/@angular/forms/
|
|
804
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:2753
|
|
800
805
|
|
|
801
806
|
Add a synchronous validator or validators to this control, without affecting other validators.
|
|
802
807
|
|
|
@@ -829,7 +834,7 @@ The new validator function or functions to add to this control.
|
|
|
829
834
|
|
|
830
835
|
> **clearAsyncValidators**(): `void`
|
|
831
836
|
|
|
832
|
-
Defined in: node\_modules/@angular/forms/
|
|
837
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:2852
|
|
833
838
|
|
|
834
839
|
Empties out the async validator list.
|
|
835
840
|
|
|
@@ -850,7 +855,7 @@ When you add or remove a validator at run time, you must call
|
|
|
850
855
|
|
|
851
856
|
> **clearValidators**(): `void`
|
|
852
857
|
|
|
853
|
-
Defined in: node\_modules/@angular/forms/
|
|
858
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:2844
|
|
854
859
|
|
|
855
860
|
Empties out the synchronous validator list.
|
|
856
861
|
|
|
@@ -871,7 +876,7 @@ When you add or remove a validator at run time, you must call
|
|
|
871
876
|
|
|
872
877
|
> **disable**(`opts`?): `void`
|
|
873
878
|
|
|
874
|
-
Defined in: node\_modules/@angular/forms/
|
|
879
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:3020
|
|
875
880
|
|
|
876
881
|
Disables the control. This means the control is exempt from validation checks and
|
|
877
882
|
excluded from the aggregate value of any parent. Its status is `DISABLED`.
|
|
@@ -917,7 +922,7 @@ When false, no events are emitted.
|
|
|
917
922
|
|
|
918
923
|
> **disabledWhile**(`observable`, `options`?): `Subscription`
|
|
919
924
|
|
|
920
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:191](https://gitlab.com/rxap/packages/-/blob/
|
|
925
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:191](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L191)
|
|
921
926
|
|
|
922
927
|
#### Parameters
|
|
923
928
|
|
|
@@ -939,7 +944,7 @@ Defined in: [packages/angular/forms/src/lib/form-control.ts:191](https://gitlab.
|
|
|
939
944
|
|
|
940
945
|
> **enable**(`opts`?): `void`
|
|
941
946
|
|
|
942
|
-
Defined in: node\_modules/@angular/forms/
|
|
947
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:3042
|
|
943
948
|
|
|
944
949
|
Enables the control. This means the control is included in validation checks and
|
|
945
950
|
the aggregate value of its parent. Its status recalculates based on its value and
|
|
@@ -986,7 +991,7 @@ When false, no events are emitted.
|
|
|
986
991
|
|
|
987
992
|
> **enabledWhile**(`observable`, `options`?): `Subscription`
|
|
988
993
|
|
|
989
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:198](https://gitlab.com/rxap/packages/-/blob/
|
|
994
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:198](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L198)
|
|
990
995
|
|
|
991
996
|
#### Parameters
|
|
992
997
|
|
|
@@ -1008,9 +1013,9 @@ Defined in: [packages/angular/forms/src/lib/form-control.ts:198](https://gitlab.
|
|
|
1008
1013
|
|
|
1009
1014
|
#### Call Signature
|
|
1010
1015
|
|
|
1011
|
-
> **get**\<`P`\>(`path`): `null` \| `AbstractControl`\<`ɵGetProperty`\<`any`, `P`\>, `ɵGetProperty`\<`any`, `P
|
|
1016
|
+
> **get**\<`P`\>(`path`): `null` \| `AbstractControl`\<`ɵGetProperty`\<`any`, `P`\>, `ɵGetProperty`\<`any`, `P`\>, `any`\>
|
|
1012
1017
|
|
|
1013
|
-
Defined in: node\_modules/@angular/forms/
|
|
1018
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:3133
|
|
1014
1019
|
|
|
1015
1020
|
Retrieves a child control given the control's name or path.
|
|
1016
1021
|
|
|
@@ -1028,7 +1033,7 @@ This signature for get supports strings and `const` arrays (`.get(['foo', 'bar']
|
|
|
1028
1033
|
|
|
1029
1034
|
##### Returns
|
|
1030
1035
|
|
|
1031
|
-
`null` \| `AbstractControl`\<`ɵGetProperty`\<`any`, `P`\>, `ɵGetProperty`\<`any`, `P
|
|
1036
|
+
`null` \| `AbstractControl`\<`ɵGetProperty`\<`any`, `P`\>, `ɵGetProperty`\<`any`, `P`\>, `any`\>
|
|
1032
1037
|
|
|
1033
1038
|
##### Inherited from
|
|
1034
1039
|
|
|
@@ -1036,9 +1041,9 @@ This signature for get supports strings and `const` arrays (`.get(['foo', 'bar']
|
|
|
1036
1041
|
|
|
1037
1042
|
#### Call Signature
|
|
1038
1043
|
|
|
1039
|
-
> **get**\<`P`\>(`path`): `null` \| `AbstractControl`\<`ɵGetProperty`\<`any`, `P`\>, `ɵGetProperty`\<`any`, `P
|
|
1044
|
+
> **get**\<`P`\>(`path`): `null` \| `AbstractControl`\<`ɵGetProperty`\<`any`, `P`\>, `ɵGetProperty`\<`any`, `P`\>, `any`\>
|
|
1040
1045
|
|
|
1041
|
-
Defined in: node\_modules/@angular/forms/
|
|
1046
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:3140
|
|
1042
1047
|
|
|
1043
1048
|
Retrieves a child control given the control's name or path.
|
|
1044
1049
|
|
|
@@ -1057,7 +1062,7 @@ information will not be as robust, so prefer to pass a `readonly` array if possi
|
|
|
1057
1062
|
|
|
1058
1063
|
##### Returns
|
|
1059
1064
|
|
|
1060
|
-
`null` \| `AbstractControl`\<`ɵGetProperty`\<`any`, `P`\>, `ɵGetProperty`\<`any`, `P
|
|
1065
|
+
`null` \| `AbstractControl`\<`ɵGetProperty`\<`any`, `P`\>, `ɵGetProperty`\<`any`, `P`\>, `any`\>
|
|
1061
1066
|
|
|
1062
1067
|
##### Inherited from
|
|
1063
1068
|
|
|
@@ -1069,7 +1074,7 @@ information will not be as robust, so prefer to pass a `readonly` array if possi
|
|
|
1069
1074
|
|
|
1070
1075
|
> **getError**\<`K`\>(`errorCode`): `null` \| `E`\[`K`\]
|
|
1071
1076
|
|
|
1072
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:279](https://gitlab.com/rxap/packages/-/blob/
|
|
1077
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:279](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L279)
|
|
1073
1078
|
|
|
1074
1079
|
#### Type Parameters
|
|
1075
1080
|
|
|
@@ -1121,7 +1126,7 @@ It can be provided to this method in one of two formats:
|
|
|
1121
1126
|
|
|
1122
1127
|
> **getRawValue**(): `any`
|
|
1123
1128
|
|
|
1124
|
-
Defined in: node\_modules/@angular/forms/
|
|
1129
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:1691
|
|
1125
1130
|
|
|
1126
1131
|
For a simple FormControl, the raw value is equivalent to the value.
|
|
1127
1132
|
|
|
@@ -1139,7 +1144,7 @@ For a simple FormControl, the raw value is equivalent to the value.
|
|
|
1139
1144
|
|
|
1140
1145
|
> **hasAsyncValidator**(`validator`): `boolean`
|
|
1141
1146
|
|
|
1142
|
-
Defined in: node\_modules/@angular/forms/
|
|
1147
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:2836
|
|
1143
1148
|
|
|
1144
1149
|
Check whether an asynchronous validator function is present on this control. The provided
|
|
1145
1150
|
validator must be a reference to the exact same function that was provided.
|
|
@@ -1169,7 +1174,7 @@ Whether the provided asynchronous validator was found on this control.
|
|
|
1169
1174
|
|
|
1170
1175
|
> **hasError**\<`K`\>(`errorCode`): `boolean`
|
|
1171
1176
|
|
|
1172
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:283](https://gitlab.com/rxap/packages/-/blob/
|
|
1177
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:283](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L283)
|
|
1173
1178
|
|
|
1174
1179
|
#### Type Parameters
|
|
1175
1180
|
|
|
@@ -1224,7 +1229,7 @@ If no path is given, this method checks for the error on the current control.
|
|
|
1224
1229
|
|
|
1225
1230
|
> **hasErrorAndDirty**(`error`): `boolean`
|
|
1226
1231
|
|
|
1227
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:299](https://gitlab.com/rxap/packages/-/blob/
|
|
1232
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:299](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L299)
|
|
1228
1233
|
|
|
1229
1234
|
#### Parameters
|
|
1230
1235
|
|
|
@@ -1242,7 +1247,7 @@ Defined in: [packages/angular/forms/src/lib/form-control.ts:299](https://gitlab.
|
|
|
1242
1247
|
|
|
1243
1248
|
> **hasErrorAndTouched**(`error`): `boolean`
|
|
1244
1249
|
|
|
1245
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:295](https://gitlab.com/rxap/packages/-/blob/
|
|
1250
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:295](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L295)
|
|
1246
1251
|
|
|
1247
1252
|
#### Parameters
|
|
1248
1253
|
|
|
@@ -1260,7 +1265,7 @@ Defined in: [packages/angular/forms/src/lib/form-control.ts:295](https://gitlab.
|
|
|
1260
1265
|
|
|
1261
1266
|
> **hasValidator**(`validator`): `boolean`
|
|
1262
1267
|
|
|
1263
|
-
Defined in: node\_modules/@angular/forms/
|
|
1268
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:2827
|
|
1264
1269
|
|
|
1265
1270
|
Check whether a synchronous validator function is present on this control. The provided
|
|
1266
1271
|
validator must be a reference to the exact same function that was provided.
|
|
@@ -1281,9 +1286,7 @@ Whether the provided validator was found on this control.
|
|
|
1281
1286
|
|
|
1282
1287
|
#### Usage Notes
|
|
1283
1288
|
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
```
|
|
1289
|
+
```ts
|
|
1287
1290
|
// Reference to the RequiredValidator
|
|
1288
1291
|
const ctrl = new FormControl<number | null>(0, Validators.required);
|
|
1289
1292
|
expect(ctrl.hasValidator(Validators.required)).toEqual(true)
|
|
@@ -1305,19 +1308,30 @@ expect(ctrl.hasValidator(Validators.min(3))).toEqual(false)
|
|
|
1305
1308
|
|
|
1306
1309
|
> **markAllAsDirty**(): `void`
|
|
1307
1310
|
|
|
1308
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:238](https://gitlab.com/rxap/packages/-/blob/
|
|
1311
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:238](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L238)
|
|
1312
|
+
|
|
1313
|
+
Marks the control and all its descendant controls as `dirty`.
|
|
1309
1314
|
|
|
1310
1315
|
#### Returns
|
|
1311
1316
|
|
|
1312
1317
|
`void`
|
|
1313
1318
|
|
|
1319
|
+
#### See
|
|
1320
|
+
|
|
1321
|
+
- [()](../wiki/Class.RxapFormControl#markasdirty)
|
|
1322
|
+
- [Managing form control state](../wiki/guide/forms/reactive-forms#managing-form-control-state)
|
|
1323
|
+
|
|
1324
|
+
#### Overrides
|
|
1325
|
+
|
|
1326
|
+
`UntypedFormControl.markAllAsDirty`
|
|
1327
|
+
|
|
1314
1328
|
***
|
|
1315
1329
|
|
|
1316
1330
|
### markAllAsTouched()
|
|
1317
1331
|
|
|
1318
1332
|
> **markAllAsTouched**(`opts`?): `void`
|
|
1319
1333
|
|
|
1320
|
-
Defined in: node\_modules/@angular/forms/
|
|
1334
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:2905
|
|
1321
1335
|
|
|
1322
1336
|
Marks the control and all its descendant controls as `touched`.
|
|
1323
1337
|
|
|
@@ -1341,7 +1355,8 @@ When false, no events are emitted.
|
|
|
1341
1355
|
|
|
1342
1356
|
#### See
|
|
1343
1357
|
|
|
1344
|
-
[()](../wiki/Class.RxapFormControl#markastouched)
|
|
1358
|
+
- [()](../wiki/Class.RxapFormControl#markastouched)
|
|
1359
|
+
- [Managing form control state](../wiki/guide/forms/reactive-forms#managing-form-control-state)
|
|
1345
1360
|
|
|
1346
1361
|
#### Inherited from
|
|
1347
1362
|
|
|
@@ -1353,7 +1368,7 @@ When false, no events are emitted.
|
|
|
1353
1368
|
|
|
1354
1369
|
> **markAsDirty**(`opts`?): `void`
|
|
1355
1370
|
|
|
1356
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:233](https://gitlab.com/rxap/packages/-/blob/
|
|
1371
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:233](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L233)
|
|
1357
1372
|
|
|
1358
1373
|
Marks the control as `dirty`. A control becomes dirty when
|
|
1359
1374
|
the control's value is changed through the UI; compare `markAsTouched`.
|
|
@@ -1381,6 +1396,7 @@ When false, no events are emitted.
|
|
|
1381
1396
|
- [()](../wiki/Class.RxapFormControl#markastouched)
|
|
1382
1397
|
- [()](../wiki/Class.RxapFormControl#markasuntouched)
|
|
1383
1398
|
- [()](../wiki/Class.RxapFormControl#markaspristine)
|
|
1399
|
+
- [Managing form control state](../wiki/guide/forms/reactive-forms#managing-form-control-state)
|
|
1384
1400
|
|
|
1385
1401
|
#### Overrides
|
|
1386
1402
|
|
|
@@ -1392,7 +1408,7 @@ When false, no events are emitted.
|
|
|
1392
1408
|
|
|
1393
1409
|
> **markAsPending**(`opts`?): `void`
|
|
1394
1410
|
|
|
1395
|
-
Defined in: node\_modules/@angular/forms/
|
|
1411
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:2999
|
|
1396
1412
|
|
|
1397
1413
|
Marks the control as `pending`.
|
|
1398
1414
|
|
|
@@ -1437,7 +1453,7 @@ and the `events` observable emits a `StatusChangeEvent` with the `status` proper
|
|
|
1437
1453
|
|
|
1438
1454
|
> **markAsPristine**(`opts`?): `void`
|
|
1439
1455
|
|
|
1440
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:228](https://gitlab.com/rxap/packages/-/blob/
|
|
1456
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:228](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L228)
|
|
1441
1457
|
|
|
1442
1458
|
Marks the control as `pristine`.
|
|
1443
1459
|
|
|
@@ -1468,6 +1484,7 @@ When false, no events are emitted.
|
|
|
1468
1484
|
- [()](../wiki/Class.RxapFormControl#markastouched)
|
|
1469
1485
|
- [()](../wiki/Class.RxapFormControl#markasuntouched)
|
|
1470
1486
|
- [()](../wiki/Class.RxapFormControl#markasdirty)
|
|
1487
|
+
- [Managing form control state](../wiki/guide/forms/reactive-forms#managing-form-control-state)
|
|
1471
1488
|
|
|
1472
1489
|
#### Overrides
|
|
1473
1490
|
|
|
@@ -1479,7 +1496,7 @@ When false, no events are emitted.
|
|
|
1479
1496
|
|
|
1480
1497
|
> **markAsTouched**(`opts`?): `void`
|
|
1481
1498
|
|
|
1482
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:218](https://gitlab.com/rxap/packages/-/blob/
|
|
1499
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:218](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L218)
|
|
1483
1500
|
|
|
1484
1501
|
Marks the control as `touched`. A control is touched by focus and
|
|
1485
1502
|
blur events that do not change the value.
|
|
@@ -1507,6 +1524,7 @@ When false, no events are emitted.
|
|
|
1507
1524
|
- [()](../wiki/Class.RxapFormControl#markasuntouched)
|
|
1508
1525
|
- [()](../wiki/Class.RxapFormControl#markasdirty)
|
|
1509
1526
|
- [()](../wiki/Class.RxapFormControl#markaspristine)
|
|
1527
|
+
- [Managing form control state](../wiki/guide/forms/reactive-forms#managing-form-control-state)
|
|
1510
1528
|
|
|
1511
1529
|
#### Overrides
|
|
1512
1530
|
|
|
@@ -1518,7 +1536,7 @@ When false, no events are emitted.
|
|
|
1518
1536
|
|
|
1519
1537
|
> **markAsUntouched**(`opts`?): `void`
|
|
1520
1538
|
|
|
1521
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:223](https://gitlab.com/rxap/packages/-/blob/
|
|
1539
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:223](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L223)
|
|
1522
1540
|
|
|
1523
1541
|
Marks the control as `untouched`.
|
|
1524
1542
|
|
|
@@ -1548,6 +1566,7 @@ When false, no events are emitted.
|
|
|
1548
1566
|
- [()](../wiki/Class.RxapFormControl#markastouched)
|
|
1549
1567
|
- [()](../wiki/Class.RxapFormControl#markasdirty)
|
|
1550
1568
|
- [()](../wiki/Class.RxapFormControl#markaspristine)
|
|
1569
|
+
- [Managing form control state](../wiki/guide/forms/reactive-forms#managing-form-control-state)
|
|
1551
1570
|
|
|
1552
1571
|
#### Overrides
|
|
1553
1572
|
|
|
@@ -1559,7 +1578,7 @@ When false, no events are emitted.
|
|
|
1559
1578
|
|
|
1560
1579
|
> **mergeAsyncValidators**(`validators`): `void`
|
|
1561
1580
|
|
|
1562
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:209](https://gitlab.com/rxap/packages/-/blob/
|
|
1581
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:209](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L209)
|
|
1563
1582
|
|
|
1564
1583
|
#### Parameters
|
|
1565
1584
|
|
|
@@ -1577,7 +1596,7 @@ Defined in: [packages/angular/forms/src/lib/form-control.ts:209](https://gitlab.
|
|
|
1577
1596
|
|
|
1578
1597
|
> **mergeValidators**(`validators`): `void`
|
|
1579
1598
|
|
|
1580
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:205](https://gitlab.com/rxap/packages/-/blob/
|
|
1599
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:205](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L205)
|
|
1581
1600
|
|
|
1582
1601
|
#### Parameters
|
|
1583
1602
|
|
|
@@ -1597,7 +1616,7 @@ Defined in: [packages/angular/forms/src/lib/form-control.ts:205](https://gitlab.
|
|
|
1597
1616
|
|
|
1598
1617
|
> **patchValue**(`valueOrObservable`, `options`?): `Subscription`
|
|
1599
1618
|
|
|
1600
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:166](https://gitlab.com/rxap/packages/-/blob/
|
|
1619
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:166](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L166)
|
|
1601
1620
|
|
|
1602
1621
|
Patches the value of a control.
|
|
1603
1622
|
|
|
@@ -1631,7 +1650,7 @@ FormControl#setValue for options
|
|
|
1631
1650
|
|
|
1632
1651
|
> **patchValue**(`valueOrObservable`, `options`?): `void`
|
|
1633
1652
|
|
|
1634
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:170](https://gitlab.com/rxap/packages/-/blob/
|
|
1653
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:170](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L170)
|
|
1635
1654
|
|
|
1636
1655
|
##### Parameters
|
|
1637
1656
|
|
|
@@ -1657,7 +1676,7 @@ Defined in: [packages/angular/forms/src/lib/form-control.ts:170](https://gitlab.
|
|
|
1657
1676
|
|
|
1658
1677
|
> **registerOnChange**(`fn`): `void`
|
|
1659
1678
|
|
|
1660
|
-
Defined in: node\_modules/@angular/forms/
|
|
1679
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:1697
|
|
1661
1680
|
|
|
1662
1681
|
Register a listener for change events.
|
|
1663
1682
|
|
|
@@ -1683,7 +1702,7 @@ The method that is called when the value changes
|
|
|
1683
1702
|
|
|
1684
1703
|
> **registerOnDisabledChange**(`fn`): `void`
|
|
1685
1704
|
|
|
1686
|
-
Defined in: node\_modules/@angular/forms/
|
|
1705
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:1703
|
|
1687
1706
|
|
|
1688
1707
|
Register a listener for disabled events.
|
|
1689
1708
|
|
|
@@ -1709,7 +1728,7 @@ The method that is called when the disabled status changes.
|
|
|
1709
1728
|
|
|
1710
1729
|
> **registerOnSetValue**(`setValueFn`): `void`
|
|
1711
1730
|
|
|
1712
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:311](https://gitlab.com/rxap/packages/-/blob/
|
|
1731
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:311](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L311)
|
|
1713
1732
|
|
|
1714
1733
|
#### Parameters
|
|
1715
1734
|
|
|
@@ -1727,7 +1746,7 @@ Defined in: [packages/angular/forms/src/lib/form-control.ts:311](https://gitlab.
|
|
|
1727
1746
|
|
|
1728
1747
|
> **removeAsyncValidators**(`validators`): `void`
|
|
1729
1748
|
|
|
1730
|
-
Defined in: node\_modules/@angular/forms/
|
|
1749
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:2805
|
|
1731
1750
|
|
|
1732
1751
|
Remove an asynchronous validator from this control, without affecting other validators.
|
|
1733
1752
|
Validators are compared by function reference; you must pass a reference to the exact same
|
|
@@ -1759,7 +1778,7 @@ The asynchronous validator or validators to remove.
|
|
|
1759
1778
|
|
|
1760
1779
|
> **removeValidators**(`validators`): `void`
|
|
1761
1780
|
|
|
1762
|
-
Defined in: node\_modules/@angular/forms/
|
|
1781
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:2793
|
|
1763
1782
|
|
|
1764
1783
|
Remove a synchronous validator from this control, without affecting other validators.
|
|
1765
1784
|
Validators are compared by function reference; you must pass a reference to the exact same
|
|
@@ -1780,9 +1799,7 @@ The validator or validators to remove.
|
|
|
1780
1799
|
|
|
1781
1800
|
#### Usage Notes
|
|
1782
1801
|
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
```
|
|
1802
|
+
```ts
|
|
1786
1803
|
// Reference to the RequiredValidator
|
|
1787
1804
|
const ctrl = new FormControl<string | null>('', Validators.required);
|
|
1788
1805
|
ctrl.removeValidators(Validators.required);
|
|
@@ -1809,7 +1826,7 @@ When you add or remove a validator at run time, you must call
|
|
|
1809
1826
|
|
|
1810
1827
|
> **reset**(`formState`?, `options`?): `void`
|
|
1811
1828
|
|
|
1812
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:242](https://gitlab.com/rxap/packages/-/blob/
|
|
1829
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:242](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L242)
|
|
1813
1830
|
|
|
1814
1831
|
Resets the form control, marking it `pristine` and `untouched`, and resetting
|
|
1815
1832
|
the value. The new value will be the provided value (if passed), `null`, or the initial value
|
|
@@ -1851,6 +1868,7 @@ false.
|
|
|
1851
1868
|
`valueChanges`
|
|
1852
1869
|
observables emit events with the latest status and value when the control is reset.
|
|
1853
1870
|
When false, no events are emitted.
|
|
1871
|
+
* `overwriteDefaultValue`: When true, the value used to reset the control becomes the new default value of the control.
|
|
1854
1872
|
|
|
1855
1873
|
#### Returns
|
|
1856
1874
|
|
|
@@ -1866,7 +1884,7 @@ When false, no events are emitted.
|
|
|
1866
1884
|
|
|
1867
1885
|
> **setAsyncValidators**(`newValidator`, `updateValueAndValidity`): `void`
|
|
1868
1886
|
|
|
1869
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:265](https://gitlab.com/rxap/packages/-/blob/
|
|
1887
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:265](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L265)
|
|
1870
1888
|
|
|
1871
1889
|
Sets the asynchronous validators that are active on this control. Calling this
|
|
1872
1890
|
overwrites any existing asynchronous validators.
|
|
@@ -1901,7 +1919,7 @@ using `addAsyncValidators()` method instead.
|
|
|
1901
1919
|
|
|
1902
1920
|
> **setDisable**(`disable`, `opts`?): `void`
|
|
1903
1921
|
|
|
1904
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:307](https://gitlab.com/rxap/packages/-/blob/
|
|
1922
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:307](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L307)
|
|
1905
1923
|
|
|
1906
1924
|
#### Parameters
|
|
1907
1925
|
|
|
@@ -1923,7 +1941,7 @@ Defined in: [packages/angular/forms/src/lib/form-control.ts:307](https://gitlab.
|
|
|
1923
1941
|
|
|
1924
1942
|
> **setEnable**(`enable`, `opts`?): `void`
|
|
1925
1943
|
|
|
1926
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:303](https://gitlab.com/rxap/packages/-/blob/
|
|
1944
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:303](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L303)
|
|
1927
1945
|
|
|
1928
1946
|
#### Parameters
|
|
1929
1947
|
|
|
@@ -1945,7 +1963,7 @@ Defined in: [packages/angular/forms/src/lib/form-control.ts:303](https://gitlab.
|
|
|
1945
1963
|
|
|
1946
1964
|
> **setError**(`key`, `value`, `opts`): `void`
|
|
1947
1965
|
|
|
1948
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:291](https://gitlab.com/rxap/packages/-/blob/
|
|
1966
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:291](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L291)
|
|
1949
1967
|
|
|
1950
1968
|
#### Parameters
|
|
1951
1969
|
|
|
@@ -1971,12 +1989,14 @@ Defined in: [packages/angular/forms/src/lib/form-control.ts:291](https://gitlab.
|
|
|
1971
1989
|
|
|
1972
1990
|
> **setErrors**(`errors`, `opts`): `void`
|
|
1973
1991
|
|
|
1974
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:287](https://gitlab.com/rxap/packages/-/blob/
|
|
1992
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:287](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L287)
|
|
1975
1993
|
|
|
1976
1994
|
Sets errors on a form control when running validations manually, rather than automatically.
|
|
1977
1995
|
|
|
1978
1996
|
Calling `setErrors` also updates the validity of the parent control.
|
|
1979
1997
|
|
|
1998
|
+
Note: Manually set errors are always overwritten by the results of the next validation run.
|
|
1999
|
+
|
|
1980
2000
|
#### Parameters
|
|
1981
2001
|
|
|
1982
2002
|
##### errors
|
|
@@ -2024,7 +2044,7 @@ expect(login.valid).toEqual(true);
|
|
|
2024
2044
|
|
|
2025
2045
|
> **setParent**(`parent`): `void`
|
|
2026
2046
|
|
|
2027
|
-
Defined in: node\_modules/@angular/forms/
|
|
2047
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:3052
|
|
2028
2048
|
|
|
2029
2049
|
Sets the parent of the control
|
|
2030
2050
|
|
|
@@ -2050,7 +2070,7 @@ The new parent.
|
|
|
2050
2070
|
|
|
2051
2071
|
> **setValidators**(`newValidator`, `updateValueAndValidity`): `void`
|
|
2052
2072
|
|
|
2053
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:255](https://gitlab.com/rxap/packages/-/blob/
|
|
2073
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:255](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L255)
|
|
2054
2074
|
|
|
2055
2075
|
Sets the synchronous validators that are active on this control. Calling
|
|
2056
2076
|
this overwrites any existing synchronous validators.
|
|
@@ -2087,7 +2107,7 @@ using `addValidators()` method instead.
|
|
|
2087
2107
|
|
|
2088
2108
|
> **setValue**(`valueOrObservable`, `options`?): `Subscription`
|
|
2089
2109
|
|
|
2090
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:144](https://gitlab.com/rxap/packages/-/blob/
|
|
2110
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:144](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L144)
|
|
2091
2111
|
|
|
2092
2112
|
Sets a new value for the form control.
|
|
2093
2113
|
|
|
@@ -2130,7 +2150,7 @@ event to update the model.
|
|
|
2130
2150
|
|
|
2131
2151
|
> **setValue**(`valueOrObservable`, `options`?): `void`
|
|
2132
2152
|
|
|
2133
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:148](https://gitlab.com/rxap/packages/-/blob/
|
|
2153
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:148](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L148)
|
|
2134
2154
|
|
|
2135
2155
|
##### Parameters
|
|
2136
2156
|
|
|
@@ -2156,7 +2176,7 @@ Defined in: [packages/angular/forms/src/lib/form-control.ts:148](https://gitlab.
|
|
|
2156
2176
|
|
|
2157
2177
|
> **updateValueAndValidity**(`opts`?): `void`
|
|
2158
2178
|
|
|
2159
|
-
Defined in: node\_modules/@angular/forms/
|
|
2179
|
+
Defined in: node\_modules/@angular/forms/types/forms.d.ts:3087
|
|
2160
2180
|
|
|
2161
2181
|
Recalculates the value and validation status of the control.
|
|
2162
2182
|
|
|
@@ -2187,6 +2207,10 @@ When false, no events are emitted.
|
|
|
2187
2207
|
|
|
2188
2208
|
`void`
|
|
2189
2209
|
|
|
2210
|
+
#### See
|
|
2211
|
+
|
|
2212
|
+
[Understanding propagation control](../wiki/guide/forms/reactive-forms#understanding-event-emission)
|
|
2213
|
+
|
|
2190
2214
|
#### Inherited from
|
|
2191
2215
|
|
|
2192
2216
|
`UntypedFormControl.updateValueAndValidity`
|
|
@@ -2197,7 +2221,7 @@ When false, no events are emitted.
|
|
|
2197
2221
|
|
|
2198
2222
|
> **validateOn**(`observableValidation`): `Subscription`
|
|
2199
2223
|
|
|
2200
|
-
Defined in: [packages/angular/forms/src/lib/form-control.ts:275](https://gitlab.com/rxap/packages/-/blob/
|
|
2224
|
+
Defined in: [packages/angular/forms/src/lib/form-control.ts:275](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/forms/src/lib/form-control.ts#L275)
|
|
2201
2225
|
|
|
2202
2226
|
#### Parameters
|
|
2203
2227
|
|