@rxap/forms 21.0.1-dev.0 → 21.0.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/dependencies.html +8 -8
- 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 +8980 -11445
- 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 +8 -8
- package/docs/html/classes/FormDirective.html +41 -28
- package/docs/html/classes/FormGroupNameDirective.html +7 -7
- 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 +35 -35
- package/docs/html/classes/RxapFormBuilder.html +2 -2
- package/docs/html/classes/RxapFormControl.html +30 -30
- package/docs/html/classes/RxapFormGroup.html +35 -35
- 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 +5 -5
- package/docs/html/interfaces/AbstractControlOptions.html +3 -3
- 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 +3 -3
- package/docs/html/interfaces/FormDefinition.html +6 -6
- package/docs/html/interfaces/FormDefinitionArray.html +3 -3
- package/docs/html/interfaces/FormDefinitionMetadata.html +3 -3
- package/docs/html/interfaces/FormGroupOptions.html +3 -3
- 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 +3 -3
- 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 +3 -3
- package/docs/html/interfaces/_RxapAbstractControlOptions.html +3 -3
- 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 +5 -5
- 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 +7 -25
- package/docs/markdown/classes/FormDirective.md +158 -175
- package/docs/markdown/classes/FormGroupNameDirective.md +7 -21
- 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 +54 -54
- package/docs/markdown/classes/RxapFormBuilder.md +4 -4
- package/docs/markdown/classes/RxapFormControl.md +51 -51
- package/docs/markdown/classes/RxapFormGroup.md +74 -74
- 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 +8 -8
- package/docs/markdown/interfaces/AbstractControlOptions.md +5 -5
- 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 +12 -12
- package/docs/markdown/interfaces/FormDefinition.md +7 -7
- package/docs/markdown/interfaces/FormDefinitionArray.md +3 -3
- package/docs/markdown/interfaces/FormDefinitionMetadata.md +11 -11
- package/docs/markdown/interfaces/FormGroupOptions.md +9 -9
- 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 +9 -9
- 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 +8 -8
- package/docs/markdown/interfaces/RxapAbstractControlOptionsWithDefinition.md +9 -9
- 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 +4 -4
- 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 +6 -24
- package/docs/wiki/Class.FormDirective.md +157 -174
- package/docs/wiki/Class.FormGroupNameDirective.md +6 -20
- 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 +53 -53
- package/docs/wiki/Class.RxapFormBuilder.md +3 -3
- package/docs/wiki/Class.RxapFormControl.md +50 -50
- package/docs/wiki/Class.RxapFormGroup.md +73 -73
- 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 +7 -7
- package/docs/wiki/Interface.AbstractControlOptions.md +4 -4
- 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 +11 -11
- package/docs/wiki/Interface.FormDefinition.md +6 -6
- package/docs/wiki/Interface.FormDefinitionArray.md +2 -2
- package/docs/wiki/Interface.FormDefinitionMetadata.md +10 -10
- package/docs/wiki/Interface.FormGroupOptions.md +8 -8
- 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 +8 -8
- 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 +8 -8
- package/docs/wiki/Interface._RxapAbstractControlOptions.md +7 -7
- 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 +1850 -2170
- package/fesm2022/rxap-forms.mjs.map +1 -1
- package/package.json +17 -17
- package/types/rxap-forms.d.ts +400 -410
- package/docs/html/classes/RxapFormsModule.html +0 -2
- package/docs/markdown/classes/RxapFormsModule.md +0 -19
- package/docs/wiki/Class.RxapFormsModule.md +0 -15
|
@@ -209,21 +209,64 @@
|
|
|
209
209
|
<a href="#_formDefinition" >_formDefinition</a>
|
|
210
210
|
</li>
|
|
211
211
|
<li>
|
|
212
|
-
<span class="modifier"></span>
|
|
213
|
-
<span class="modifier">Public</span>
|
|
214
212
|
<span class="modifier">Readonly</span>
|
|
215
|
-
<a href="#cdr" >cdr</a>
|
|
213
|
+
<a href="#cdr" class="deprecated-name">cdr</a>
|
|
216
214
|
</li>
|
|
217
215
|
<li>
|
|
218
216
|
<span class="modifier">Public</span>
|
|
219
217
|
<span class="modifier">Readonly</span>
|
|
220
218
|
<a href="#context" >context</a>
|
|
221
219
|
</li>
|
|
220
|
+
<li>
|
|
221
|
+
<span class="modifier">Protected</span>
|
|
222
|
+
<span class="modifier">Readonly</span>
|
|
223
|
+
<a href="#currentContext" >currentContext</a>
|
|
224
|
+
</li>
|
|
225
|
+
<li>
|
|
226
|
+
<span class="modifier">Protected</span>
|
|
227
|
+
<span class="modifier">Readonly</span>
|
|
228
|
+
<a href="#currentInitial" >currentInitial</a>
|
|
229
|
+
</li>
|
|
230
|
+
<li>
|
|
231
|
+
<span class="modifier">Protected</span>
|
|
232
|
+
<span class="modifier">Readonly</span>
|
|
233
|
+
<a href="#currentLoadFailedMethod" >currentLoadFailedMethod</a>
|
|
234
|
+
</li>
|
|
235
|
+
<li>
|
|
236
|
+
<span class="modifier">Protected</span>
|
|
237
|
+
<span class="modifier">Readonly</span>
|
|
238
|
+
<a href="#currentLoadMethod" >currentLoadMethod</a>
|
|
239
|
+
</li>
|
|
240
|
+
<li>
|
|
241
|
+
<span class="modifier">Protected</span>
|
|
242
|
+
<span class="modifier">Readonly</span>
|
|
243
|
+
<a href="#currentLoadSuccessfulMethod" >currentLoadSuccessfulMethod</a>
|
|
244
|
+
</li>
|
|
245
|
+
<li>
|
|
246
|
+
<span class="modifier">Protected</span>
|
|
247
|
+
<span class="modifier">Readonly</span>
|
|
248
|
+
<a href="#currentSubmitFailedMethod" >currentSubmitFailedMethod</a>
|
|
249
|
+
</li>
|
|
250
|
+
<li>
|
|
251
|
+
<span class="modifier">Protected</span>
|
|
252
|
+
<span class="modifier">Readonly</span>
|
|
253
|
+
<a href="#currentSubmitMethod" >currentSubmitMethod</a>
|
|
254
|
+
</li>
|
|
255
|
+
<li>
|
|
256
|
+
<span class="modifier">Protected</span>
|
|
257
|
+
<span class="modifier">Readonly</span>
|
|
258
|
+
<a href="#currentSubmitSuccessfulMethod" >currentSubmitSuccessfulMethod</a>
|
|
259
|
+
</li>
|
|
222
260
|
<li>
|
|
223
261
|
<span class="modifier">Public</span>
|
|
224
262
|
<span class="modifier"></span>
|
|
225
263
|
<a href="#form" >form</a>
|
|
226
264
|
</li>
|
|
265
|
+
<li>
|
|
266
|
+
<span class="modifier">Protected</span>
|
|
267
|
+
<span class="modifier">Readonly</span>
|
|
268
|
+
<a href="#formDefinitionBuilder" >formDefinitionBuilder</a>
|
|
269
|
+
</li>
|
|
227
270
|
<li>
|
|
228
271
|
<span class="modifier">Public</span>
|
|
229
272
|
<span class="modifier">Readonly</span>
|
|
@@ -232,105 +275,107 @@
|
|
|
232
275
|
<li>
|
|
233
276
|
<span class="modifier">Public</span>
|
|
234
277
|
<span class="modifier">Readonly</span>
|
|
235
|
-
<a href="#
|
|
278
|
+
<a href="#invalidSubmit" >invalidSubmit</a>
|
|
236
279
|
</li>
|
|
237
280
|
<li>
|
|
238
281
|
<span class="modifier">Public</span>
|
|
239
282
|
<span class="modifier">Readonly</span>
|
|
240
|
-
<a href="#
|
|
283
|
+
<a href="#loaded" >loaded</a>
|
|
241
284
|
</li>
|
|
242
285
|
<li>
|
|
243
286
|
<span class="modifier">Public</span>
|
|
244
287
|
<span class="modifier">Readonly</span>
|
|
245
|
-
<a href="#
|
|
288
|
+
<a href="#loaded$" >loaded$</a>
|
|
246
289
|
</li>
|
|
247
290
|
<li>
|
|
248
291
|
<span class="modifier">Public</span>
|
|
249
292
|
<span class="modifier">Readonly</span>
|
|
250
|
-
<a href="#
|
|
293
|
+
<a href="#loadFailedMethod" >loadFailedMethod</a>
|
|
251
294
|
</li>
|
|
252
295
|
<li>
|
|
253
296
|
<span class="modifier">Public</span>
|
|
254
297
|
<span class="modifier">Readonly</span>
|
|
255
|
-
<a href="#
|
|
298
|
+
<a href="#loading" >loading</a>
|
|
256
299
|
</li>
|
|
257
|
-
</ul>
|
|
258
|
-
</td>
|
|
259
|
-
</tr>
|
|
260
|
-
|
|
261
|
-
<tr>
|
|
262
|
-
<td class="col-md-4">
|
|
263
|
-
<h6><b>Methods</b></h6>
|
|
264
|
-
</td>
|
|
265
|
-
</tr>
|
|
266
|
-
<tr>
|
|
267
|
-
<td class="col-md-4">
|
|
268
|
-
<ul class="index-list">
|
|
269
300
|
<li>
|
|
270
|
-
<span class="modifier">
|
|
271
|
-
|
|
301
|
+
<span class="modifier">Public</span>
|
|
302
|
+
<span class="modifier">Readonly</span>
|
|
303
|
+
<a href="#loading$" >loading$</a>
|
|
272
304
|
</li>
|
|
273
305
|
<li>
|
|
274
|
-
<span class="modifier">
|
|
275
|
-
|
|
306
|
+
<span class="modifier">Public</span>
|
|
307
|
+
<span class="modifier">Readonly</span>
|
|
308
|
+
<a href="#loadingError" >loadingError</a>
|
|
276
309
|
</li>
|
|
277
310
|
<li>
|
|
278
|
-
<span class="modifier">
|
|
279
|
-
|
|
311
|
+
<span class="modifier">Public</span>
|
|
312
|
+
<span class="modifier">Readonly</span>
|
|
313
|
+
<a href="#loadingError$" >loadingError$</a>
|
|
280
314
|
</li>
|
|
281
315
|
<li>
|
|
282
316
|
<span class="modifier">Protected</span>
|
|
283
|
-
|
|
317
|
+
<span class="modifier">Readonly</span>
|
|
318
|
+
<a href="#loadingIndicatorService" >loadingIndicatorService</a>
|
|
284
319
|
</li>
|
|
285
320
|
<li>
|
|
286
321
|
<span class="modifier">Public</span>
|
|
287
|
-
<span class="modifier"
|
|
288
|
-
<a href="#
|
|
322
|
+
<span class="modifier">Readonly</span>
|
|
323
|
+
<a href="#loadMethod" >loadMethod</a>
|
|
289
324
|
</li>
|
|
290
325
|
<li>
|
|
291
|
-
<span class="modifier">
|
|
292
|
-
|
|
326
|
+
<span class="modifier">Public</span>
|
|
327
|
+
<span class="modifier">Readonly</span>
|
|
328
|
+
<a href="#loadSuccessfulMethod" >loadSuccessfulMethod</a>
|
|
293
329
|
</li>
|
|
294
330
|
<li>
|
|
295
|
-
<span class="modifier">
|
|
296
|
-
|
|
331
|
+
<span class="modifier">Public</span>
|
|
332
|
+
<span class="modifier">Readonly</span>
|
|
333
|
+
<a href="#rxapSubmit" >rxapSubmit</a>
|
|
297
334
|
</li>
|
|
298
335
|
<li>
|
|
299
|
-
<span class="modifier">
|
|
300
|
-
|
|
336
|
+
<span class="modifier">Public</span>
|
|
337
|
+
<span class="modifier">Readonly</span>
|
|
338
|
+
<a href="#submitError" >submitError</a>
|
|
301
339
|
</li>
|
|
302
|
-
</ul>
|
|
303
|
-
</td>
|
|
304
|
-
</tr>
|
|
305
|
-
|
|
306
|
-
<tr>
|
|
307
|
-
<td class="col-md-4">
|
|
308
|
-
<h6><b>Inputs</b></h6>
|
|
309
|
-
</td>
|
|
310
|
-
</tr>
|
|
311
|
-
<tr>
|
|
312
|
-
<td class="col-md-4">
|
|
313
|
-
<ul class="index-list">
|
|
314
340
|
<li>
|
|
315
|
-
|
|
341
|
+
<span class="modifier">Public</span>
|
|
342
|
+
<span class="modifier">Readonly</span>
|
|
343
|
+
<a href="#submitError$" >submitError$</a>
|
|
316
344
|
</li>
|
|
317
345
|
<li>
|
|
318
|
-
|
|
346
|
+
<span class="modifier">Public</span>
|
|
347
|
+
<span class="modifier">Readonly</span>
|
|
348
|
+
<a href="#submitFailedMethod" >submitFailedMethod</a>
|
|
319
349
|
</li>
|
|
320
350
|
<li>
|
|
321
|
-
|
|
351
|
+
<span class="modifier">Public</span>
|
|
352
|
+
<span class="modifier">Readonly</span>
|
|
353
|
+
<a href="#submitMethod" >submitMethod</a>
|
|
322
354
|
</li>
|
|
323
355
|
<li>
|
|
324
|
-
|
|
356
|
+
<span class="modifier">Public</span>
|
|
357
|
+
<span class="modifier">Readonly</span>
|
|
358
|
+
<a href="#submitSuccessful$" >submitSuccessful$</a>
|
|
325
359
|
</li>
|
|
326
360
|
<li>
|
|
327
|
-
|
|
361
|
+
<span class="modifier">Public</span>
|
|
362
|
+
<span class="modifier">Readonly</span>
|
|
363
|
+
<a href="#submitSuccessfulMethod" >submitSuccessfulMethod</a>
|
|
328
364
|
</li>
|
|
329
365
|
<li>
|
|
330
|
-
|
|
366
|
+
<span class="modifier">Public</span>
|
|
367
|
+
<span class="modifier">Readonly</span>
|
|
368
|
+
<a href="#submitting" >submitting</a>
|
|
331
369
|
</li>
|
|
332
370
|
<li>
|
|
333
|
-
|
|
371
|
+
<span class="modifier">Public</span>
|
|
372
|
+
<span class="modifier">Readonly</span>
|
|
373
|
+
<a href="#submitting$" >submitting$</a>
|
|
374
|
+
</li>
|
|
375
|
+
<li>
|
|
376
|
+
<span class="modifier">Public</span>
|
|
377
|
+
<span class="modifier">Readonly</span>
|
|
378
|
+
<a href="#useFormDefinition" >useFormDefinition</a>
|
|
334
379
|
</li>
|
|
335
380
|
</ul>
|
|
336
381
|
</td>
|
|
@@ -338,53 +383,53 @@
|
|
|
338
383
|
|
|
339
384
|
<tr>
|
|
340
385
|
<td class="col-md-4">
|
|
341
|
-
<h6><b>
|
|
386
|
+
<h6><b>Methods</b></h6>
|
|
342
387
|
</td>
|
|
343
388
|
</tr>
|
|
344
389
|
<tr>
|
|
345
390
|
<td class="col-md-4">
|
|
346
391
|
<ul class="index-list">
|
|
347
392
|
<li>
|
|
348
|
-
|
|
393
|
+
<span class="modifier">Protected</span>
|
|
394
|
+
<a href="#getSubmitValue" >getSubmitValue</a>
|
|
349
395
|
</li>
|
|
350
396
|
<li>
|
|
351
|
-
|
|
397
|
+
<span class="modifier">Protected</span>
|
|
398
|
+
<a href="#loadFailed" >loadFailed</a>
|
|
352
399
|
</li>
|
|
353
400
|
<li>
|
|
354
|
-
|
|
401
|
+
<span class="modifier">Protected</span>
|
|
402
|
+
<a href="#loadInitialState" >loadInitialState</a>
|
|
355
403
|
</li>
|
|
356
|
-
</ul>
|
|
357
|
-
</td>
|
|
358
|
-
</tr>
|
|
359
|
-
|
|
360
|
-
<tr>
|
|
361
|
-
<td class="col-md-4">
|
|
362
|
-
<h6><b>HostBindings</b></h6>
|
|
363
|
-
</td>
|
|
364
|
-
</tr>
|
|
365
|
-
<tr>
|
|
366
|
-
<td class="col-md-4">
|
|
367
|
-
<ul class="index-list">
|
|
368
404
|
<li>
|
|
369
|
-
|
|
405
|
+
<span class="modifier">Protected</span>
|
|
406
|
+
<a href="#loadSuccessful" >loadSuccessful</a>
|
|
370
407
|
</li>
|
|
371
408
|
<li>
|
|
372
|
-
|
|
409
|
+
<span class="modifier">Public</span>
|
|
410
|
+
<span class="modifier"></span>
|
|
411
|
+
<a href="#onSubmit" >onSubmit</a>
|
|
373
412
|
</li>
|
|
374
413
|
<li>
|
|
375
|
-
|
|
414
|
+
<span class="modifier">Protected</span>
|
|
415
|
+
<a href="#submit" >submit</a>
|
|
376
416
|
</li>
|
|
377
417
|
<li>
|
|
378
|
-
|
|
418
|
+
<span class="modifier">Protected</span>
|
|
419
|
+
<a href="#submitFailed" >submitFailed</a>
|
|
379
420
|
</li>
|
|
380
421
|
<li>
|
|
381
|
-
|
|
422
|
+
<span class="modifier">Protected</span>
|
|
423
|
+
<a href="#submitSuccessful" >submitSuccessful</a>
|
|
382
424
|
</li>
|
|
383
425
|
</ul>
|
|
384
426
|
</td>
|
|
385
427
|
</tr>
|
|
386
428
|
|
|
387
429
|
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
|
|
388
433
|
<tr>
|
|
389
434
|
<td class="col-md-4">
|
|
390
435
|
<h6><b>Accessors</b></h6>
|
|
@@ -393,24 +438,6 @@
|
|
|
393
438
|
<tr>
|
|
394
439
|
<td class="col-md-4">
|
|
395
440
|
<ul class="index-list">
|
|
396
|
-
<li>
|
|
397
|
-
<a href="#submitting" >submitting</a>
|
|
398
|
-
</li>
|
|
399
|
-
<li>
|
|
400
|
-
<a href="#submitError" >submitError</a>
|
|
401
|
-
</li>
|
|
402
|
-
<li>
|
|
403
|
-
<a href="#loading" >loading</a>
|
|
404
|
-
</li>
|
|
405
|
-
<li>
|
|
406
|
-
<a href="#loaded" >loaded</a>
|
|
407
|
-
</li>
|
|
408
|
-
<li>
|
|
409
|
-
<a href="#loadingError" >loadingError</a>
|
|
410
|
-
</li>
|
|
411
|
-
<li>
|
|
412
|
-
<a href="#useFormDefinition" >useFormDefinition</a>
|
|
413
|
-
</li>
|
|
414
441
|
<li>
|
|
415
442
|
<a href="#formDefinition" >formDefinition</a>
|
|
416
443
|
</li>
|
|
@@ -427,567 +454,21 @@
|
|
|
427
454
|
<tbody>
|
|
428
455
|
<tr>
|
|
429
456
|
<td class="col-md-4">
|
|
430
|
-
<code>constructor(
|
|
457
|
+
<code>constructor()</code>
|
|
431
458
|
</td>
|
|
432
459
|
</tr>
|
|
433
460
|
<tr>
|
|
434
461
|
<td class="col-md-4">
|
|
435
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
462
|
+
<div class="io-line">Defined in <a href="" data-line="209" class="link-to-prism">src/lib/directives/form.directive.ts:209</a></div>
|
|
436
463
|
</td>
|
|
437
464
|
</tr>
|
|
438
465
|
|
|
439
|
-
<tr>
|
|
440
|
-
<td class="col-md-4">
|
|
441
|
-
<div>
|
|
442
|
-
<b>Parameters :</b>
|
|
443
|
-
<table class="params">
|
|
444
|
-
<thead>
|
|
445
|
-
<tr>
|
|
446
|
-
<td>Name</td>
|
|
447
|
-
<td>Type</td>
|
|
448
|
-
<td>Optional</td>
|
|
449
|
-
</tr>
|
|
450
|
-
</thead>
|
|
451
|
-
<tbody>
|
|
452
|
-
<tr>
|
|
453
|
-
<td>cdr</td>
|
|
454
|
-
|
|
455
|
-
<td>
|
|
456
|
-
<code>ChangeDetectorRef</code>
|
|
457
|
-
</td>
|
|
458
|
-
|
|
459
|
-
<td>
|
|
460
|
-
No
|
|
461
|
-
</td>
|
|
462
|
-
|
|
463
|
-
</tr>
|
|
464
|
-
<tr>
|
|
465
|
-
<td>formDefinition</td>
|
|
466
|
-
|
|
467
|
-
<td>
|
|
468
|
-
<code><a href="../interfaces/FormDefinition.html" target="_self" >FormDefinition | null</a></code>
|
|
469
|
-
</td>
|
|
470
|
-
|
|
471
|
-
<td>
|
|
472
|
-
No
|
|
473
|
-
</td>
|
|
474
|
-
|
|
475
|
-
</tr>
|
|
476
|
-
<tr>
|
|
477
|
-
<td>submitMethod</td>
|
|
478
|
-
|
|
479
|
-
<td>
|
|
480
|
-
<code><a href="../interfaces/FormSubmitMethod.html" target="_self" >FormSubmitMethod<any> | null</a></code>
|
|
481
|
-
</td>
|
|
482
|
-
|
|
483
|
-
<td>
|
|
484
|
-
No
|
|
485
|
-
</td>
|
|
486
|
-
|
|
487
|
-
</tr>
|
|
488
|
-
<tr>
|
|
489
|
-
<td>loadMethod</td>
|
|
490
|
-
|
|
491
|
-
<td>
|
|
492
|
-
<code><a href="../interfaces/FormLoadMethod.html" target="_self" >FormLoadMethod | null</a></code>
|
|
493
|
-
</td>
|
|
494
|
-
|
|
495
|
-
<td>
|
|
496
|
-
No
|
|
497
|
-
</td>
|
|
498
|
-
|
|
499
|
-
</tr>
|
|
500
|
-
<tr>
|
|
501
|
-
<td>loadFailedMethod</td>
|
|
502
|
-
|
|
503
|
-
<td>
|
|
504
|
-
<code><a href="../interfaces/FormLoadFailedMethod.html" target="_self" >FormLoadFailedMethod | null</a></code>
|
|
505
|
-
</td>
|
|
506
|
-
|
|
507
|
-
<td>
|
|
508
|
-
No
|
|
509
|
-
</td>
|
|
510
|
-
|
|
511
|
-
</tr>
|
|
512
|
-
<tr>
|
|
513
|
-
<td>loadSuccessfulMethod</td>
|
|
514
|
-
|
|
515
|
-
<td>
|
|
516
|
-
<code><a href="../interfaces/FormLoadSuccessfulMethod.html" target="_self" >FormLoadSuccessfulMethod | null</a></code>
|
|
517
|
-
</td>
|
|
518
|
-
|
|
519
|
-
<td>
|
|
520
|
-
No
|
|
521
|
-
</td>
|
|
522
|
-
|
|
523
|
-
</tr>
|
|
524
|
-
<tr>
|
|
525
|
-
<td>submitFailedMethod</td>
|
|
526
|
-
|
|
527
|
-
<td>
|
|
528
|
-
<code><a href="../interfaces/FormSubmitFailedMethod.html" target="_self" >FormSubmitFailedMethod | null</a></code>
|
|
529
|
-
</td>
|
|
530
|
-
|
|
531
|
-
<td>
|
|
532
|
-
No
|
|
533
|
-
</td>
|
|
534
|
-
|
|
535
|
-
</tr>
|
|
536
|
-
<tr>
|
|
537
|
-
<td>submitSuccessfulMethod</td>
|
|
538
|
-
|
|
539
|
-
<td>
|
|
540
|
-
<code><a href="../interfaces/FormSubmitSuccessfulMethod.html" target="_self" >FormSubmitSuccessfulMethod | null</a></code>
|
|
541
|
-
</td>
|
|
542
|
-
|
|
543
|
-
<td>
|
|
544
|
-
No
|
|
545
|
-
</td>
|
|
546
|
-
|
|
547
|
-
</tr>
|
|
548
|
-
<tr>
|
|
549
|
-
<td>formDefinitionBuilder</td>
|
|
550
|
-
|
|
551
|
-
<td>
|
|
552
|
-
<code><a href="../classes/RxapFormBuilder.html" target="_self" >RxapFormBuilder | null</a></code>
|
|
553
|
-
</td>
|
|
554
|
-
|
|
555
|
-
<td>
|
|
556
|
-
No
|
|
557
|
-
</td>
|
|
558
|
-
|
|
559
|
-
</tr>
|
|
560
|
-
<tr>
|
|
561
|
-
<td>loadingIndicatorService</td>
|
|
562
|
-
|
|
563
|
-
<td>
|
|
564
|
-
<code>LoadingIndicatorService | null</code>
|
|
565
|
-
</td>
|
|
566
|
-
|
|
567
|
-
<td>
|
|
568
|
-
No
|
|
569
|
-
</td>
|
|
570
|
-
|
|
571
|
-
</tr>
|
|
572
|
-
<tr>
|
|
573
|
-
<td>context</td>
|
|
574
|
-
|
|
575
|
-
<td>
|
|
576
|
-
</td>
|
|
577
|
-
|
|
578
|
-
<td>
|
|
579
|
-
No
|
|
580
|
-
</td>
|
|
581
|
-
|
|
582
|
-
</tr>
|
|
583
|
-
<tr>
|
|
584
|
-
<td>initial</td>
|
|
585
|
-
|
|
586
|
-
<td>
|
|
587
|
-
<code>T | null</code>
|
|
588
|
-
</td>
|
|
589
|
-
|
|
590
|
-
<td>
|
|
591
|
-
No
|
|
592
|
-
</td>
|
|
593
|
-
|
|
594
|
-
</tr>
|
|
595
|
-
</tbody>
|
|
596
|
-
</table>
|
|
597
|
-
</div>
|
|
598
|
-
</td>
|
|
599
|
-
</tr>
|
|
600
466
|
</tbody>
|
|
601
467
|
</table>
|
|
602
468
|
</section>
|
|
603
469
|
|
|
604
|
-
<section data-compodoc="block-inputs">
|
|
605
|
-
<h3 id="inputs">Inputs</h3>
|
|
606
|
-
<table class="table table-sm table-bordered">
|
|
607
|
-
<tbody>
|
|
608
|
-
<tr>
|
|
609
|
-
<td class="col-md-4">
|
|
610
|
-
<a name="loadFailedMethod"></a>
|
|
611
|
-
<b>loadFailedMethod</b>
|
|
612
|
-
</td>
|
|
613
|
-
</tr>
|
|
614
|
-
<tr>
|
|
615
|
-
<td class="col-md-4">
|
|
616
|
-
<i>Type : </i> <code><a href="../interfaces/FormLoadFailedMethod.html" target="_self" >FormLoadFailedMethod | null</a></code>
|
|
617
470
|
|
|
618
|
-
</td>
|
|
619
|
-
</tr>
|
|
620
|
-
<tr>
|
|
621
|
-
<td class="col-md-4">
|
|
622
|
-
<i>Default value : </i><code>null</code>
|
|
623
|
-
</td>
|
|
624
|
-
</tr>
|
|
625
|
-
<tr>
|
|
626
|
-
<td class="col-md-2" colspan="2">
|
|
627
|
-
<div class="io-line">Defined in <a href="" data-line="196" class="link-to-prism">src/lib/directives/form.directive.ts:196</a></div>
|
|
628
|
-
</td>
|
|
629
|
-
</tr>
|
|
630
|
-
</tbody>
|
|
631
|
-
</table>
|
|
632
|
-
<table class="table table-sm table-bordered">
|
|
633
|
-
<tbody>
|
|
634
|
-
<tr>
|
|
635
|
-
<td class="col-md-4">
|
|
636
|
-
<a name="loadMethod"></a>
|
|
637
|
-
<b>loadMethod</b>
|
|
638
|
-
</td>
|
|
639
|
-
</tr>
|
|
640
|
-
<tr>
|
|
641
|
-
<td class="col-md-4">
|
|
642
|
-
<i>Type : </i> <code><a href="../interfaces/FormLoadMethod.html" target="_self" >FormLoadMethod | null</a></code>
|
|
643
471
|
|
|
644
|
-
</td>
|
|
645
|
-
</tr>
|
|
646
|
-
<tr>
|
|
647
|
-
<td class="col-md-4">
|
|
648
|
-
<i>Default value : </i><code>null</code>
|
|
649
|
-
</td>
|
|
650
|
-
</tr>
|
|
651
|
-
<tr>
|
|
652
|
-
<td class="col-md-2" colspan="2">
|
|
653
|
-
<div class="io-line">Defined in <a href="" data-line="193" class="link-to-prism">src/lib/directives/form.directive.ts:193</a></div>
|
|
654
|
-
</td>
|
|
655
|
-
</tr>
|
|
656
|
-
</tbody>
|
|
657
|
-
</table>
|
|
658
|
-
<table class="table table-sm table-bordered">
|
|
659
|
-
<tbody>
|
|
660
|
-
<tr>
|
|
661
|
-
<td class="col-md-4">
|
|
662
|
-
<a name="loadSuccessfulMethod"></a>
|
|
663
|
-
<b>loadSuccessfulMethod</b>
|
|
664
|
-
</td>
|
|
665
|
-
</tr>
|
|
666
|
-
<tr>
|
|
667
|
-
<td class="col-md-4">
|
|
668
|
-
<i>Type : </i> <code><a href="../interfaces/FormLoadSuccessfulMethod.html" target="_self" >FormLoadSuccessfulMethod | null</a></code>
|
|
669
|
-
|
|
670
|
-
</td>
|
|
671
|
-
</tr>
|
|
672
|
-
<tr>
|
|
673
|
-
<td class="col-md-4">
|
|
674
|
-
<i>Default value : </i><code>null</code>
|
|
675
|
-
</td>
|
|
676
|
-
</tr>
|
|
677
|
-
<tr>
|
|
678
|
-
<td class="col-md-2" colspan="2">
|
|
679
|
-
<div class="io-line">Defined in <a href="" data-line="199" class="link-to-prism">src/lib/directives/form.directive.ts:199</a></div>
|
|
680
|
-
</td>
|
|
681
|
-
</tr>
|
|
682
|
-
</tbody>
|
|
683
|
-
</table>
|
|
684
|
-
<table class="table table-sm table-bordered">
|
|
685
|
-
<tbody>
|
|
686
|
-
<tr>
|
|
687
|
-
<td class="col-md-4">
|
|
688
|
-
<a name="rxapForm"></a>
|
|
689
|
-
<b>rxapForm</b>
|
|
690
|
-
</td>
|
|
691
|
-
</tr>
|
|
692
|
-
<tr>
|
|
693
|
-
<td class="col-md-4">
|
|
694
|
-
<i>Type : </i> <code><a href="../interfaces/FormDefinition.html" target="_self" >FormDefinition | string</a></code>
|
|
695
|
-
|
|
696
|
-
</td>
|
|
697
|
-
</tr>
|
|
698
|
-
<tr>
|
|
699
|
-
<td class="col-md-2" colspan="2">
|
|
700
|
-
<div class="io-line">Defined in <a href="" data-line="170" class="link-to-prism">src/lib/directives/form.directive.ts:170</a></div>
|
|
701
|
-
</td>
|
|
702
|
-
</tr>
|
|
703
|
-
</tbody>
|
|
704
|
-
</table>
|
|
705
|
-
<table class="table table-sm table-bordered">
|
|
706
|
-
<tbody>
|
|
707
|
-
<tr>
|
|
708
|
-
<td class="col-md-4">
|
|
709
|
-
<a name="submitFailedMethod"></a>
|
|
710
|
-
<b>submitFailedMethod</b>
|
|
711
|
-
</td>
|
|
712
|
-
</tr>
|
|
713
|
-
<tr>
|
|
714
|
-
<td class="col-md-4">
|
|
715
|
-
<i>Type : </i> <code><a href="../interfaces/FormSubmitFailedMethod.html" target="_self" >FormSubmitFailedMethod | null</a></code>
|
|
716
|
-
|
|
717
|
-
</td>
|
|
718
|
-
</tr>
|
|
719
|
-
<tr>
|
|
720
|
-
<td class="col-md-4">
|
|
721
|
-
<i>Default value : </i><code>null</code>
|
|
722
|
-
</td>
|
|
723
|
-
</tr>
|
|
724
|
-
<tr>
|
|
725
|
-
<td class="col-md-2" colspan="2">
|
|
726
|
-
<div class="io-line">Defined in <a href="" data-line="202" class="link-to-prism">src/lib/directives/form.directive.ts:202</a></div>
|
|
727
|
-
</td>
|
|
728
|
-
</tr>
|
|
729
|
-
</tbody>
|
|
730
|
-
</table>
|
|
731
|
-
<table class="table table-sm table-bordered">
|
|
732
|
-
<tbody>
|
|
733
|
-
<tr>
|
|
734
|
-
<td class="col-md-4">
|
|
735
|
-
<a name="submitMethod"></a>
|
|
736
|
-
<b>submitMethod</b>
|
|
737
|
-
</td>
|
|
738
|
-
</tr>
|
|
739
|
-
<tr>
|
|
740
|
-
<td class="col-md-4">
|
|
741
|
-
<i>Type : </i> <code><a href="../interfaces/FormSubmitMethod.html" target="_self" >FormSubmitMethod<any> | null</a></code>
|
|
742
|
-
|
|
743
|
-
</td>
|
|
744
|
-
</tr>
|
|
745
|
-
<tr>
|
|
746
|
-
<td class="col-md-4">
|
|
747
|
-
<i>Default value : </i><code>null</code>
|
|
748
|
-
</td>
|
|
749
|
-
</tr>
|
|
750
|
-
<tr>
|
|
751
|
-
<td class="col-md-2" colspan="2">
|
|
752
|
-
<div class="io-line">Defined in <a href="" data-line="190" class="link-to-prism">src/lib/directives/form.directive.ts:190</a></div>
|
|
753
|
-
</td>
|
|
754
|
-
</tr>
|
|
755
|
-
</tbody>
|
|
756
|
-
</table>
|
|
757
|
-
<table class="table table-sm table-bordered">
|
|
758
|
-
<tbody>
|
|
759
|
-
<tr>
|
|
760
|
-
<td class="col-md-4">
|
|
761
|
-
<a name="submitSuccessfulMethod"></a>
|
|
762
|
-
<b>submitSuccessfulMethod</b>
|
|
763
|
-
</td>
|
|
764
|
-
</tr>
|
|
765
|
-
<tr>
|
|
766
|
-
<td class="col-md-4">
|
|
767
|
-
<i>Type : </i> <code><a href="../interfaces/FormSubmitSuccessfulMethod.html" target="_self" >FormSubmitSuccessfulMethod | null</a></code>
|
|
768
|
-
|
|
769
|
-
</td>
|
|
770
|
-
</tr>
|
|
771
|
-
<tr>
|
|
772
|
-
<td class="col-md-4">
|
|
773
|
-
<i>Default value : </i><code>null</code>
|
|
774
|
-
</td>
|
|
775
|
-
</tr>
|
|
776
|
-
<tr>
|
|
777
|
-
<td class="col-md-2" colspan="2">
|
|
778
|
-
<div class="io-line">Defined in <a href="" data-line="205" class="link-to-prism">src/lib/directives/form.directive.ts:205</a></div>
|
|
779
|
-
</td>
|
|
780
|
-
</tr>
|
|
781
|
-
</tbody>
|
|
782
|
-
</table>
|
|
783
|
-
</section>
|
|
784
|
-
<section data-compodoc="block-outputs">
|
|
785
|
-
<h3 id="outputs">Outputs</h3>
|
|
786
|
-
<table class="table table-sm table-bordered">
|
|
787
|
-
<tbody>
|
|
788
|
-
<tr>
|
|
789
|
-
<td class="col-md-4">
|
|
790
|
-
<a name="invalidSubmit"></a>
|
|
791
|
-
<b>invalidSubmit</b>
|
|
792
|
-
</td>
|
|
793
|
-
</tr>
|
|
794
|
-
<tr>
|
|
795
|
-
<td class="col-md-4">
|
|
796
|
-
<i>Type : </i> <code>EventEmitter</code>
|
|
797
|
-
|
|
798
|
-
</td>
|
|
799
|
-
</tr>
|
|
800
|
-
<tr>
|
|
801
|
-
<td class="col-md-2" colspan="2">
|
|
802
|
-
<div class="io-line">Defined in <a href="" data-line="138" class="link-to-prism">src/lib/directives/form.directive.ts:138</a></div>
|
|
803
|
-
</td>
|
|
804
|
-
</tr>
|
|
805
|
-
</tbody>
|
|
806
|
-
</table>
|
|
807
|
-
<table class="table table-sm table-bordered">
|
|
808
|
-
<tbody>
|
|
809
|
-
<tr>
|
|
810
|
-
<td class="col-md-4">
|
|
811
|
-
<a name="rxapSubmit"></a>
|
|
812
|
-
<b>rxapSubmit</b>
|
|
813
|
-
</td>
|
|
814
|
-
</tr>
|
|
815
|
-
<tr>
|
|
816
|
-
<td class="col-md-4">
|
|
817
|
-
<i>Type : </i> <code>EventEmitter</code>
|
|
818
|
-
|
|
819
|
-
</td>
|
|
820
|
-
</tr>
|
|
821
|
-
<tr>
|
|
822
|
-
<td class="col-md-2" colspan="2">
|
|
823
|
-
<div class="io-line">Defined in <a href="" data-line="135" class="link-to-prism">src/lib/directives/form.directive.ts:135</a></div>
|
|
824
|
-
</td>
|
|
825
|
-
</tr>
|
|
826
|
-
<tr>
|
|
827
|
-
<td class="col-md-4">
|
|
828
|
-
<div class="io-description"><p>Emits when the submit method is executed without errors. The result of the
|
|
829
|
-
submit method is passed as event object.</p>
|
|
830
|
-
<p>If no submit method is defined then emit after the submit button
|
|
831
|
-
is clicked.</p>
|
|
832
|
-
</div>
|
|
833
|
-
</td>
|
|
834
|
-
</tr>
|
|
835
|
-
</tbody>
|
|
836
|
-
</table>
|
|
837
|
-
<table class="table table-sm table-bordered">
|
|
838
|
-
<tbody>
|
|
839
|
-
<tr>
|
|
840
|
-
<td class="col-md-4">
|
|
841
|
-
<a name="submitSuccessful"></a>
|
|
842
|
-
<b>submitSuccessful</b>
|
|
843
|
-
</td>
|
|
844
|
-
</tr>
|
|
845
|
-
<tr>
|
|
846
|
-
<td class="col-md-4">
|
|
847
|
-
<i>Type : </i> <code>EventEmitter</code>
|
|
848
|
-
|
|
849
|
-
</td>
|
|
850
|
-
</tr>
|
|
851
|
-
<tr>
|
|
852
|
-
<td class="col-md-2" colspan="2">
|
|
853
|
-
<div class="io-line">Defined in <a href="" data-line="142" class="link-to-prism">src/lib/directives/form.directive.ts:142</a></div>
|
|
854
|
-
</td>
|
|
855
|
-
</tr>
|
|
856
|
-
</tbody>
|
|
857
|
-
</table>
|
|
858
|
-
</section>
|
|
859
|
-
<section data-compodoc="block-properties">
|
|
860
|
-
<h3>HostBindings</h3> <table class="table table-sm table-bordered">
|
|
861
|
-
<tbody>
|
|
862
|
-
<tr>
|
|
863
|
-
<td class="col-md-4">
|
|
864
|
-
<a name="class.rxap-loaded"></a>
|
|
865
|
-
<span class="name">
|
|
866
|
-
<span ><b>class.rxap-loaded</b></span>
|
|
867
|
-
<a href="#class.rxap-loaded"><span class="icon ion-ios-link"></span></a>
|
|
868
|
-
</span>
|
|
869
|
-
</td>
|
|
870
|
-
</tr>
|
|
871
|
-
<tr>
|
|
872
|
-
<td class="col-md-4">
|
|
873
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
|
|
874
|
-
|
|
875
|
-
</td>
|
|
876
|
-
</tr>
|
|
877
|
-
<tr>
|
|
878
|
-
<td class="col-md-4">
|
|
879
|
-
<div class="io-line">Defined in <a href="" data-line="160" class="link-to-prism">src/lib/directives/form.directive.ts:160</a></div>
|
|
880
|
-
</td>
|
|
881
|
-
</tr>
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
</tbody>
|
|
885
|
-
</table>
|
|
886
|
-
<table class="table table-sm table-bordered">
|
|
887
|
-
<tbody>
|
|
888
|
-
<tr>
|
|
889
|
-
<td class="col-md-4">
|
|
890
|
-
<a name="class.rxap-loading"></a>
|
|
891
|
-
<span class="name">
|
|
892
|
-
<span ><b>class.rxap-loading</b></span>
|
|
893
|
-
<a href="#class.rxap-loading"><span class="icon ion-ios-link"></span></a>
|
|
894
|
-
</span>
|
|
895
|
-
</td>
|
|
896
|
-
</tr>
|
|
897
|
-
<tr>
|
|
898
|
-
<td class="col-md-4">
|
|
899
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
|
|
900
|
-
|
|
901
|
-
</td>
|
|
902
|
-
</tr>
|
|
903
|
-
<tr>
|
|
904
|
-
<td class="col-md-4">
|
|
905
|
-
<div class="io-line">Defined in <a href="" data-line="155" class="link-to-prism">src/lib/directives/form.directive.ts:155</a></div>
|
|
906
|
-
</td>
|
|
907
|
-
</tr>
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
</tbody>
|
|
911
|
-
</table>
|
|
912
|
-
<table class="table table-sm table-bordered">
|
|
913
|
-
<tbody>
|
|
914
|
-
<tr>
|
|
915
|
-
<td class="col-md-4">
|
|
916
|
-
<a name="class.rxap-loading-error"></a>
|
|
917
|
-
<span class="name">
|
|
918
|
-
<span ><b>class.rxap-loading-error</b></span>
|
|
919
|
-
<a href="#class.rxap-loading-error"><span class="icon ion-ios-link"></span></a>
|
|
920
|
-
</span>
|
|
921
|
-
</td>
|
|
922
|
-
</tr>
|
|
923
|
-
<tr>
|
|
924
|
-
<td class="col-md-4">
|
|
925
|
-
<i>Type : </i> <code>Error | null</code>
|
|
926
|
-
|
|
927
|
-
</td>
|
|
928
|
-
</tr>
|
|
929
|
-
<tr>
|
|
930
|
-
<td class="col-md-4">
|
|
931
|
-
<div class="io-line">Defined in <a href="" data-line="165" class="link-to-prism">src/lib/directives/form.directive.ts:165</a></div>
|
|
932
|
-
</td>
|
|
933
|
-
</tr>
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
</tbody>
|
|
937
|
-
</table>
|
|
938
|
-
<table class="table table-sm table-bordered">
|
|
939
|
-
<tbody>
|
|
940
|
-
<tr>
|
|
941
|
-
<td class="col-md-4">
|
|
942
|
-
<a name="class.rxap-submit-error"></a>
|
|
943
|
-
<span class="name">
|
|
944
|
-
<span ><b>class.rxap-submit-error</b></span>
|
|
945
|
-
<a href="#class.rxap-submit-error"><span class="icon ion-ios-link"></span></a>
|
|
946
|
-
</span>
|
|
947
|
-
</td>
|
|
948
|
-
</tr>
|
|
949
|
-
<tr>
|
|
950
|
-
<td class="col-md-4">
|
|
951
|
-
<i>Type : </i> <code>Error | null</code>
|
|
952
|
-
|
|
953
|
-
</td>
|
|
954
|
-
</tr>
|
|
955
|
-
<tr>
|
|
956
|
-
<td class="col-md-4">
|
|
957
|
-
<div class="io-line">Defined in <a href="" data-line="150" class="link-to-prism">src/lib/directives/form.directive.ts:150</a></div>
|
|
958
|
-
</td>
|
|
959
|
-
</tr>
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
</tbody>
|
|
963
|
-
</table>
|
|
964
|
-
<table class="table table-sm table-bordered">
|
|
965
|
-
<tbody>
|
|
966
|
-
<tr>
|
|
967
|
-
<td class="col-md-4">
|
|
968
|
-
<a name="class.rxap-submitting"></a>
|
|
969
|
-
<span class="name">
|
|
970
|
-
<span ><b>class.rxap-submitting</b></span>
|
|
971
|
-
<a href="#class.rxap-submitting"><span class="icon ion-ios-link"></span></a>
|
|
972
|
-
</span>
|
|
973
|
-
</td>
|
|
974
|
-
</tr>
|
|
975
|
-
<tr>
|
|
976
|
-
<td class="col-md-4">
|
|
977
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
|
|
978
|
-
|
|
979
|
-
</td>
|
|
980
|
-
</tr>
|
|
981
|
-
<tr>
|
|
982
|
-
<td class="col-md-4">
|
|
983
|
-
<div class="io-line">Defined in <a href="" data-line="145" class="link-to-prism">src/lib/directives/form.directive.ts:145</a></div>
|
|
984
|
-
</td>
|
|
985
|
-
</tr>
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
</tbody>
|
|
989
|
-
</table>
|
|
990
|
-
</section>
|
|
991
472
|
|
|
992
473
|
|
|
993
474
|
<section data-compodoc="block-methods">
|
|
@@ -1017,8 +498,8 @@ is clicked.</p>
|
|
|
1017
498
|
|
|
1018
499
|
<tr>
|
|
1019
500
|
<td class="col-md-4">
|
|
1020
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1021
|
-
class="link-to-prism">src/lib/directives/form.directive.ts:
|
|
501
|
+
<div class="io-line">Defined in <a href="" data-line="449"
|
|
502
|
+
class="link-to-prism">src/lib/directives/form.directive.ts:449</a></div>
|
|
1022
503
|
</td>
|
|
1023
504
|
</tr>
|
|
1024
505
|
|
|
@@ -1056,8 +537,8 @@ is clicked.</p>
|
|
|
1056
537
|
|
|
1057
538
|
<tr>
|
|
1058
539
|
<td class="col-md-4">
|
|
1059
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1060
|
-
class="link-to-prism">src/lib/directives/form.directive.ts:
|
|
540
|
+
<div class="io-line">Defined in <a href="" data-line="438"
|
|
541
|
+
class="link-to-prism">src/lib/directives/form.directive.ts:438</a></div>
|
|
1061
542
|
</td>
|
|
1062
543
|
</tr>
|
|
1063
544
|
|
|
@@ -1125,8 +606,8 @@ is clicked.</p>
|
|
|
1125
606
|
|
|
1126
607
|
<tr>
|
|
1127
608
|
<td class="col-md-4">
|
|
1128
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1129
|
-
class="link-to-prism">src/lib/directives/form.directive.ts:
|
|
609
|
+
<div class="io-line">Defined in <a href="" data-line="376"
|
|
610
|
+
class="link-to-prism">src/lib/directives/form.directive.ts:376</a></div>
|
|
1130
611
|
</td>
|
|
1131
612
|
</tr>
|
|
1132
613
|
|
|
@@ -1194,8 +675,8 @@ is clicked.</p>
|
|
|
1194
675
|
|
|
1195
676
|
<tr>
|
|
1196
677
|
<td class="col-md-4">
|
|
1197
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1198
|
-
class="link-to-prism">src/lib/directives/form.directive.ts:
|
|
678
|
+
<div class="io-line">Defined in <a href="" data-line="427"
|
|
679
|
+
class="link-to-prism">src/lib/directives/form.directive.ts:427</a></div>
|
|
1199
680
|
</td>
|
|
1200
681
|
</tr>
|
|
1201
682
|
|
|
@@ -1264,8 +745,8 @@ is clicked.</p>
|
|
|
1264
745
|
|
|
1265
746
|
<tr>
|
|
1266
747
|
<td class="col-md-4">
|
|
1267
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1268
|
-
class="link-to-prism">src/lib/directives/form.directive.ts:
|
|
748
|
+
<div class="io-line">Defined in <a href="" data-line="294"
|
|
749
|
+
class="link-to-prism">src/lib/directives/form.directive.ts:294</a></div>
|
|
1269
750
|
</td>
|
|
1270
751
|
</tr>
|
|
1271
752
|
|
|
@@ -1333,8 +814,8 @@ is clicked.</p>
|
|
|
1333
814
|
|
|
1334
815
|
<tr>
|
|
1335
816
|
<td class="col-md-4">
|
|
1336
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1337
|
-
class="link-to-prism">src/lib/directives/form.directive.ts:
|
|
817
|
+
<div class="io-line">Defined in <a href="" data-line="463"
|
|
818
|
+
class="link-to-prism">src/lib/directives/form.directive.ts:463</a></div>
|
|
1338
819
|
</td>
|
|
1339
820
|
</tr>
|
|
1340
821
|
|
|
@@ -1372,8 +853,8 @@ is clicked.</p>
|
|
|
1372
853
|
|
|
1373
854
|
<tr>
|
|
1374
855
|
<td class="col-md-4">
|
|
1375
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1376
|
-
class="link-to-prism">src/lib/directives/form.directive.ts:
|
|
856
|
+
<div class="io-line">Defined in <a href="" data-line="509"
|
|
857
|
+
class="link-to-prism">src/lib/directives/form.directive.ts:509</a></div>
|
|
1377
858
|
</td>
|
|
1378
859
|
</tr>
|
|
1379
860
|
|
|
@@ -1441,8 +922,8 @@ is clicked.</p>
|
|
|
1441
922
|
|
|
1442
923
|
<tr>
|
|
1443
924
|
<td class="col-md-4">
|
|
1444
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1445
|
-
class="link-to-prism">src/lib/directives/form.directive.ts:
|
|
925
|
+
<div class="io-line">Defined in <a href="" data-line="523"
|
|
926
|
+
class="link-to-prism">src/lib/directives/form.directive.ts:523</a></div>
|
|
1446
927
|
</td>
|
|
1447
928
|
</tr>
|
|
1448
929
|
|
|
@@ -1480,41 +961,713 @@ is clicked.</p>
|
|
|
1480
961
|
<div class="io-description">
|
|
1481
962
|
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
1482
963
|
|
|
1483
|
-
</div>
|
|
1484
|
-
<div class="io-description">
|
|
1485
|
-
|
|
1486
|
-
</div>
|
|
1487
|
-
</td>
|
|
1488
|
-
</tr>
|
|
964
|
+
</div>
|
|
965
|
+
<div class="io-description">
|
|
966
|
+
|
|
967
|
+
</div>
|
|
968
|
+
</td>
|
|
969
|
+
</tr>
|
|
970
|
+
</tbody>
|
|
971
|
+
</table>
|
|
972
|
+
</section>
|
|
973
|
+
<section data-compodoc="block-properties">
|
|
974
|
+
|
|
975
|
+
<h3 id="inputs">
|
|
976
|
+
Properties
|
|
977
|
+
</h3>
|
|
978
|
+
<table class="table table-sm table-bordered">
|
|
979
|
+
<tbody>
|
|
980
|
+
<tr>
|
|
981
|
+
<td class="col-md-4">
|
|
982
|
+
<a name="_formDefinition"></a>
|
|
983
|
+
<span class="name">
|
|
984
|
+
<span class="modifier">Protected</span>
|
|
985
|
+
<span ><b>_formDefinition</b></span>
|
|
986
|
+
<a href="#_formDefinition"><span class="icon ion-ios-link"></span></a>
|
|
987
|
+
</span>
|
|
988
|
+
</td>
|
|
989
|
+
</tr>
|
|
990
|
+
<tr>
|
|
991
|
+
<td class="col-md-4">
|
|
992
|
+
<i>Type : </i> <code><a href="../interfaces/FormDefinition.html" target="_self" >FormDefinition<T></a></code>
|
|
993
|
+
|
|
994
|
+
</td>
|
|
995
|
+
</tr>
|
|
996
|
+
<tr>
|
|
997
|
+
<td class="col-md-4">
|
|
998
|
+
<div class="io-line">Defined in <a href="" data-line="187" class="link-to-prism">src/lib/directives/form.directive.ts:187</a></div>
|
|
999
|
+
</td>
|
|
1000
|
+
</tr>
|
|
1001
|
+
|
|
1002
|
+
|
|
1003
|
+
</tbody>
|
|
1004
|
+
</table>
|
|
1005
|
+
<table class="table table-sm table-bordered">
|
|
1006
|
+
<tbody>
|
|
1007
|
+
<tr>
|
|
1008
|
+
<td class="col-md-4">
|
|
1009
|
+
<a name="cdr"></a>
|
|
1010
|
+
<span class="name">
|
|
1011
|
+
<span class="modifier">Readonly</span>
|
|
1012
|
+
<span class="deprecated-name"><b>cdr</b></span>
|
|
1013
|
+
<a href="#cdr"><span class="icon ion-ios-link"></span></a>
|
|
1014
|
+
</span>
|
|
1015
|
+
</td>
|
|
1016
|
+
</tr>
|
|
1017
|
+
<tr>
|
|
1018
|
+
<td class="col-md-4 deprecated">
|
|
1019
|
+
the directive does not rely on manual change detection anymore
|
|
1020
|
+
</td>
|
|
1021
|
+
</tr>
|
|
1022
|
+
<tr>
|
|
1023
|
+
<td class="col-md-4">
|
|
1024
|
+
<i>Default value : </i><code>inject<ChangeDetectorRef>(ChangeDetectorRef)</code>
|
|
1025
|
+
</td>
|
|
1026
|
+
</tr>
|
|
1027
|
+
<tr>
|
|
1028
|
+
<td class="col-md-4">
|
|
1029
|
+
<div class="io-line">Defined in <a href="" data-line="114" class="link-to-prism">src/lib/directives/form.directive.ts:114</a></div>
|
|
1030
|
+
</td>
|
|
1031
|
+
</tr>
|
|
1032
|
+
|
|
1033
|
+
|
|
1034
|
+
</tbody>
|
|
1035
|
+
</table>
|
|
1036
|
+
<table class="table table-sm table-bordered">
|
|
1037
|
+
<tbody>
|
|
1038
|
+
<tr>
|
|
1039
|
+
<td class="col-md-4">
|
|
1040
|
+
<a name="context"></a>
|
|
1041
|
+
<span class="name">
|
|
1042
|
+
<span class="modifier">Public</span>
|
|
1043
|
+
<span class="modifier">Readonly</span>
|
|
1044
|
+
<span ><b>context</b></span>
|
|
1045
|
+
<a href="#context"><span class="icon ion-ios-link"></span></a>
|
|
1046
|
+
</span>
|
|
1047
|
+
</td>
|
|
1048
|
+
</tr>
|
|
1049
|
+
<tr>
|
|
1050
|
+
<td class="col-md-4">
|
|
1051
|
+
<i>Default value : </i><code>input<unknown | null>(null)</code>
|
|
1052
|
+
</td>
|
|
1053
|
+
</tr>
|
|
1054
|
+
<tr>
|
|
1055
|
+
<td class="col-md-4">
|
|
1056
|
+
<div class="io-line">Defined in <a href="" data-line="133" class="link-to-prism">src/lib/directives/form.directive.ts:133</a></div>
|
|
1057
|
+
</td>
|
|
1058
|
+
</tr>
|
|
1059
|
+
|
|
1060
|
+
|
|
1061
|
+
</tbody>
|
|
1062
|
+
</table>
|
|
1063
|
+
<table class="table table-sm table-bordered">
|
|
1064
|
+
<tbody>
|
|
1065
|
+
<tr>
|
|
1066
|
+
<td class="col-md-4">
|
|
1067
|
+
<a name="currentContext"></a>
|
|
1068
|
+
<span class="name">
|
|
1069
|
+
<span class="modifier">Protected</span>
|
|
1070
|
+
<span class="modifier">Readonly</span>
|
|
1071
|
+
<span ><b>currentContext</b></span>
|
|
1072
|
+
<a href="#currentContext"><span class="icon ion-ios-link"></span></a>
|
|
1073
|
+
</span>
|
|
1074
|
+
</td>
|
|
1075
|
+
</tr>
|
|
1076
|
+
<tr>
|
|
1077
|
+
<td class="col-md-4">
|
|
1078
|
+
<i>Default value : </i><code>computed<unknown | null>(() => this.context() ?? this.injectedContext)</code>
|
|
1079
|
+
</td>
|
|
1080
|
+
</tr>
|
|
1081
|
+
<tr>
|
|
1082
|
+
<td class="col-md-4">
|
|
1083
|
+
<div class="io-line">Defined in <a href="" data-line="150" class="link-to-prism">src/lib/directives/form.directive.ts:150</a></div>
|
|
1084
|
+
</td>
|
|
1085
|
+
</tr>
|
|
1086
|
+
|
|
1087
|
+
<tr>
|
|
1088
|
+
<td class="col-md-4">
|
|
1089
|
+
<div class="io-description"><p>The context: the input value or, as fallback, the value provided by the RXAP_FORM_CONTEXT token</p>
|
|
1090
|
+
</div>
|
|
1091
|
+
</td>
|
|
1092
|
+
</tr>
|
|
1093
|
+
|
|
1094
|
+
</tbody>
|
|
1095
|
+
</table>
|
|
1096
|
+
<table class="table table-sm table-bordered">
|
|
1097
|
+
<tbody>
|
|
1098
|
+
<tr>
|
|
1099
|
+
<td class="col-md-4">
|
|
1100
|
+
<a name="currentInitial"></a>
|
|
1101
|
+
<span class="name">
|
|
1102
|
+
<span class="modifier">Protected</span>
|
|
1103
|
+
<span class="modifier">Readonly</span>
|
|
1104
|
+
<span ><b>currentInitial</b></span>
|
|
1105
|
+
<a href="#currentInitial"><span class="icon ion-ios-link"></span></a>
|
|
1106
|
+
</span>
|
|
1107
|
+
</td>
|
|
1108
|
+
</tr>
|
|
1109
|
+
<tr>
|
|
1110
|
+
<td class="col-md-4">
|
|
1111
|
+
<i>Default value : </i><code>computed<T | null>(() => {
|
|
1112
|
+
const initial = this.initial();
|
|
1113
|
+
if (initial) {
|
|
1114
|
+
return initial;
|
|
1115
|
+
}
|
|
1116
|
+
const injected = this.injectedInitial;
|
|
1117
|
+
return injected && typeof injected === 'object' && !Array.isArray(injected) ? injected : null;
|
|
1118
|
+
})</code>
|
|
1119
|
+
</td>
|
|
1120
|
+
</tr>
|
|
1121
|
+
<tr>
|
|
1122
|
+
<td class="col-md-4">
|
|
1123
|
+
<div class="io-line">Defined in <a href="" data-line="138" class="link-to-prism">src/lib/directives/form.directive.ts:138</a></div>
|
|
1124
|
+
</td>
|
|
1125
|
+
</tr>
|
|
1126
|
+
|
|
1127
|
+
<tr>
|
|
1128
|
+
<td class="col-md-4">
|
|
1129
|
+
<div class="io-description"><p>The initial value: the input value or, as fallback, the value provided by the RXAP_FORM_INITIAL_STATE token</p>
|
|
1130
|
+
</div>
|
|
1131
|
+
</td>
|
|
1132
|
+
</tr>
|
|
1133
|
+
|
|
1134
|
+
</tbody>
|
|
1135
|
+
</table>
|
|
1136
|
+
<table class="table table-sm table-bordered">
|
|
1137
|
+
<tbody>
|
|
1138
|
+
<tr>
|
|
1139
|
+
<td class="col-md-4">
|
|
1140
|
+
<a name="currentLoadFailedMethod"></a>
|
|
1141
|
+
<span class="name">
|
|
1142
|
+
<span class="modifier">Protected</span>
|
|
1143
|
+
<span class="modifier">Readonly</span>
|
|
1144
|
+
<span ><b>currentLoadFailedMethod</b></span>
|
|
1145
|
+
<a href="#currentLoadFailedMethod"><span class="icon ion-ios-link"></span></a>
|
|
1146
|
+
</span>
|
|
1147
|
+
</td>
|
|
1148
|
+
</tr>
|
|
1149
|
+
<tr>
|
|
1150
|
+
<td class="col-md-4">
|
|
1151
|
+
<i>Default value : </i><code>computed(() => this.loadFailedMethod() ?? this.injectedLoadFailedMethod)</code>
|
|
1152
|
+
</td>
|
|
1153
|
+
</tr>
|
|
1154
|
+
<tr>
|
|
1155
|
+
<td class="col-md-4">
|
|
1156
|
+
<div class="io-line">Defined in <a href="" data-line="204" class="link-to-prism">src/lib/directives/form.directive.ts:204</a></div>
|
|
1157
|
+
</td>
|
|
1158
|
+
</tr>
|
|
1159
|
+
|
|
1160
|
+
|
|
1161
|
+
</tbody>
|
|
1162
|
+
</table>
|
|
1163
|
+
<table class="table table-sm table-bordered">
|
|
1164
|
+
<tbody>
|
|
1165
|
+
<tr>
|
|
1166
|
+
<td class="col-md-4">
|
|
1167
|
+
<a name="currentLoadMethod"></a>
|
|
1168
|
+
<span class="name">
|
|
1169
|
+
<span class="modifier">Protected</span>
|
|
1170
|
+
<span class="modifier">Readonly</span>
|
|
1171
|
+
<span ><b>currentLoadMethod</b></span>
|
|
1172
|
+
<a href="#currentLoadMethod"><span class="icon ion-ios-link"></span></a>
|
|
1173
|
+
</span>
|
|
1174
|
+
</td>
|
|
1175
|
+
</tr>
|
|
1176
|
+
<tr>
|
|
1177
|
+
<td class="col-md-4">
|
|
1178
|
+
<i>Default value : </i><code>computed(() => this.loadMethod() ?? this.injectedLoadMethod)</code>
|
|
1179
|
+
</td>
|
|
1180
|
+
</tr>
|
|
1181
|
+
<tr>
|
|
1182
|
+
<td class="col-md-4">
|
|
1183
|
+
<div class="io-line">Defined in <a href="" data-line="203" class="link-to-prism">src/lib/directives/form.directive.ts:203</a></div>
|
|
1184
|
+
</td>
|
|
1185
|
+
</tr>
|
|
1186
|
+
|
|
1187
|
+
|
|
1188
|
+
</tbody>
|
|
1189
|
+
</table>
|
|
1190
|
+
<table class="table table-sm table-bordered">
|
|
1191
|
+
<tbody>
|
|
1192
|
+
<tr>
|
|
1193
|
+
<td class="col-md-4">
|
|
1194
|
+
<a name="currentLoadSuccessfulMethod"></a>
|
|
1195
|
+
<span class="name">
|
|
1196
|
+
<span class="modifier">Protected</span>
|
|
1197
|
+
<span class="modifier">Readonly</span>
|
|
1198
|
+
<span ><b>currentLoadSuccessfulMethod</b></span>
|
|
1199
|
+
<a href="#currentLoadSuccessfulMethod"><span class="icon ion-ios-link"></span></a>
|
|
1200
|
+
</span>
|
|
1201
|
+
</td>
|
|
1202
|
+
</tr>
|
|
1203
|
+
<tr>
|
|
1204
|
+
<td class="col-md-4">
|
|
1205
|
+
<i>Default value : </i><code>computed(() => this.loadSuccessfulMethod() ?? this.injectedLoadSuccessfulMethod)</code>
|
|
1206
|
+
</td>
|
|
1207
|
+
</tr>
|
|
1208
|
+
<tr>
|
|
1209
|
+
<td class="col-md-4">
|
|
1210
|
+
<div class="io-line">Defined in <a href="" data-line="205" class="link-to-prism">src/lib/directives/form.directive.ts:205</a></div>
|
|
1211
|
+
</td>
|
|
1212
|
+
</tr>
|
|
1213
|
+
|
|
1214
|
+
|
|
1215
|
+
</tbody>
|
|
1216
|
+
</table>
|
|
1217
|
+
<table class="table table-sm table-bordered">
|
|
1218
|
+
<tbody>
|
|
1219
|
+
<tr>
|
|
1220
|
+
<td class="col-md-4">
|
|
1221
|
+
<a name="currentSubmitFailedMethod"></a>
|
|
1222
|
+
<span class="name">
|
|
1223
|
+
<span class="modifier">Protected</span>
|
|
1224
|
+
<span class="modifier">Readonly</span>
|
|
1225
|
+
<span ><b>currentSubmitFailedMethod</b></span>
|
|
1226
|
+
<a href="#currentSubmitFailedMethod"><span class="icon ion-ios-link"></span></a>
|
|
1227
|
+
</span>
|
|
1228
|
+
</td>
|
|
1229
|
+
</tr>
|
|
1230
|
+
<tr>
|
|
1231
|
+
<td class="col-md-4">
|
|
1232
|
+
<i>Default value : </i><code>computed(() => this.submitFailedMethod() ?? this.injectedSubmitFailedMethod)</code>
|
|
1233
|
+
</td>
|
|
1234
|
+
</tr>
|
|
1235
|
+
<tr>
|
|
1236
|
+
<td class="col-md-4">
|
|
1237
|
+
<div class="io-line">Defined in <a href="" data-line="206" class="link-to-prism">src/lib/directives/form.directive.ts:206</a></div>
|
|
1238
|
+
</td>
|
|
1239
|
+
</tr>
|
|
1240
|
+
|
|
1241
|
+
|
|
1242
|
+
</tbody>
|
|
1243
|
+
</table>
|
|
1244
|
+
<table class="table table-sm table-bordered">
|
|
1245
|
+
<tbody>
|
|
1246
|
+
<tr>
|
|
1247
|
+
<td class="col-md-4">
|
|
1248
|
+
<a name="currentSubmitMethod"></a>
|
|
1249
|
+
<span class="name">
|
|
1250
|
+
<span class="modifier">Protected</span>
|
|
1251
|
+
<span class="modifier">Readonly</span>
|
|
1252
|
+
<span ><b>currentSubmitMethod</b></span>
|
|
1253
|
+
<a href="#currentSubmitMethod"><span class="icon ion-ios-link"></span></a>
|
|
1254
|
+
</span>
|
|
1255
|
+
</td>
|
|
1256
|
+
</tr>
|
|
1257
|
+
<tr>
|
|
1258
|
+
<td class="col-md-4">
|
|
1259
|
+
<i>Default value : </i><code>computed(() => this.submitMethod() ?? this.injectedSubmitMethod)</code>
|
|
1260
|
+
</td>
|
|
1261
|
+
</tr>
|
|
1262
|
+
<tr>
|
|
1263
|
+
<td class="col-md-4">
|
|
1264
|
+
<div class="io-line">Defined in <a href="" data-line="202" class="link-to-prism">src/lib/directives/form.directive.ts:202</a></div>
|
|
1265
|
+
</td>
|
|
1266
|
+
</tr>
|
|
1267
|
+
|
|
1268
|
+
|
|
1269
|
+
</tbody>
|
|
1270
|
+
</table>
|
|
1271
|
+
<table class="table table-sm table-bordered">
|
|
1272
|
+
<tbody>
|
|
1273
|
+
<tr>
|
|
1274
|
+
<td class="col-md-4">
|
|
1275
|
+
<a name="currentSubmitSuccessfulMethod"></a>
|
|
1276
|
+
<span class="name">
|
|
1277
|
+
<span class="modifier">Protected</span>
|
|
1278
|
+
<span class="modifier">Readonly</span>
|
|
1279
|
+
<span ><b>currentSubmitSuccessfulMethod</b></span>
|
|
1280
|
+
<a href="#currentSubmitSuccessfulMethod"><span class="icon ion-ios-link"></span></a>
|
|
1281
|
+
</span>
|
|
1282
|
+
</td>
|
|
1283
|
+
</tr>
|
|
1284
|
+
<tr>
|
|
1285
|
+
<td class="col-md-4">
|
|
1286
|
+
<i>Default value : </i><code>computed(() => this.submitSuccessfulMethod() ?? this.injectedSubmitSuccessfulMethod)</code>
|
|
1287
|
+
</td>
|
|
1288
|
+
</tr>
|
|
1289
|
+
<tr>
|
|
1290
|
+
<td class="col-md-4">
|
|
1291
|
+
<div class="io-line">Defined in <a href="" data-line="207" class="link-to-prism">src/lib/directives/form.directive.ts:207</a></div>
|
|
1292
|
+
</td>
|
|
1293
|
+
</tr>
|
|
1294
|
+
|
|
1295
|
+
|
|
1296
|
+
</tbody>
|
|
1297
|
+
</table>
|
|
1298
|
+
<table class="table table-sm table-bordered">
|
|
1299
|
+
<tbody>
|
|
1300
|
+
<tr>
|
|
1301
|
+
<td class="col-md-4">
|
|
1302
|
+
<a name="form"></a>
|
|
1303
|
+
<span class="name">
|
|
1304
|
+
<span class="modifier">Public</span>
|
|
1305
|
+
<span class="modifier"></span>
|
|
1306
|
+
<span ><b>form</b></span>
|
|
1307
|
+
<a href="#form"><span class="icon ion-ios-link"></span></a>
|
|
1308
|
+
</span>
|
|
1309
|
+
</td>
|
|
1310
|
+
</tr>
|
|
1311
|
+
<tr>
|
|
1312
|
+
<td class="col-md-4">
|
|
1313
|
+
<i>Type : </i> <code><a href="../classes/RxapFormGroup.html" target="_self" >RxapFormGroup<T></a></code>
|
|
1314
|
+
|
|
1315
|
+
</td>
|
|
1316
|
+
</tr>
|
|
1317
|
+
<tr>
|
|
1318
|
+
<td class="col-md-4">
|
|
1319
|
+
<div class="io-line">Defined in <a href="" data-line="129" class="link-to-prism">src/lib/directives/form.directive.ts:129</a></div>
|
|
1320
|
+
</td>
|
|
1321
|
+
</tr>
|
|
1322
|
+
|
|
1323
|
+
|
|
1324
|
+
</tbody>
|
|
1325
|
+
</table>
|
|
1326
|
+
<table class="table table-sm table-bordered">
|
|
1327
|
+
<tbody>
|
|
1328
|
+
<tr>
|
|
1329
|
+
<td class="col-md-4">
|
|
1330
|
+
<a name="formDefinitionBuilder"></a>
|
|
1331
|
+
<span class="name">
|
|
1332
|
+
<span class="modifier">Protected</span>
|
|
1333
|
+
<span class="modifier">Readonly</span>
|
|
1334
|
+
<span ><b>formDefinitionBuilder</b></span>
|
|
1335
|
+
<a href="#formDefinitionBuilder"><span class="icon ion-ios-link"></span></a>
|
|
1336
|
+
</span>
|
|
1337
|
+
</td>
|
|
1338
|
+
</tr>
|
|
1339
|
+
<tr>
|
|
1340
|
+
<td class="col-md-4">
|
|
1341
|
+
<i>Default value : </i><code>inject<RxapFormBuilder | null>(RXAP_FORM_DEFINITION_BUILDER, { skipSelf: true, optional: true }) ?? null</code>
|
|
1342
|
+
</td>
|
|
1343
|
+
</tr>
|
|
1344
|
+
<tr>
|
|
1345
|
+
<td class="col-md-4">
|
|
1346
|
+
<div class="io-line">Defined in <a href="" data-line="115" class="link-to-prism">src/lib/directives/form.directive.ts:115</a></div>
|
|
1347
|
+
</td>
|
|
1348
|
+
</tr>
|
|
1349
|
+
|
|
1350
|
+
|
|
1351
|
+
</tbody>
|
|
1352
|
+
</table>
|
|
1353
|
+
<table class="table table-sm table-bordered">
|
|
1354
|
+
<tbody>
|
|
1355
|
+
<tr>
|
|
1356
|
+
<td class="col-md-4">
|
|
1357
|
+
<a name="initial"></a>
|
|
1358
|
+
<span class="name">
|
|
1359
|
+
<span class="modifier">Public</span>
|
|
1360
|
+
<span class="modifier">Readonly</span>
|
|
1361
|
+
<span ><b>initial</b></span>
|
|
1362
|
+
<a href="#initial"><span class="icon ion-ios-link"></span></a>
|
|
1363
|
+
</span>
|
|
1364
|
+
</td>
|
|
1365
|
+
</tr>
|
|
1366
|
+
<tr>
|
|
1367
|
+
<td class="col-md-4">
|
|
1368
|
+
<i>Default value : </i><code>input<T | null>(null)</code>
|
|
1369
|
+
</td>
|
|
1370
|
+
</tr>
|
|
1371
|
+
<tr>
|
|
1372
|
+
<td class="col-md-4">
|
|
1373
|
+
<div class="io-line">Defined in <a href="" data-line="131" class="link-to-prism">src/lib/directives/form.directive.ts:131</a></div>
|
|
1374
|
+
</td>
|
|
1375
|
+
</tr>
|
|
1376
|
+
|
|
1377
|
+
|
|
1378
|
+
</tbody>
|
|
1379
|
+
</table>
|
|
1380
|
+
<table class="table table-sm table-bordered">
|
|
1381
|
+
<tbody>
|
|
1382
|
+
<tr>
|
|
1383
|
+
<td class="col-md-4">
|
|
1384
|
+
<a name="invalidSubmit"></a>
|
|
1385
|
+
<span class="name">
|
|
1386
|
+
<span class="modifier">Public</span>
|
|
1387
|
+
<span class="modifier">Readonly</span>
|
|
1388
|
+
<span ><b>invalidSubmit</b></span>
|
|
1389
|
+
<a href="#invalidSubmit"><span class="icon ion-ios-link"></span></a>
|
|
1390
|
+
</span>
|
|
1391
|
+
</td>
|
|
1392
|
+
</tr>
|
|
1393
|
+
<tr>
|
|
1394
|
+
<td class="col-md-4">
|
|
1395
|
+
<i>Default value : </i><code>output<Record<string, any>>()</code>
|
|
1396
|
+
</td>
|
|
1397
|
+
</tr>
|
|
1398
|
+
<tr>
|
|
1399
|
+
<td class="col-md-4">
|
|
1400
|
+
<div class="io-line">Defined in <a href="" data-line="161" class="link-to-prism">src/lib/directives/form.directive.ts:161</a></div>
|
|
1401
|
+
</td>
|
|
1402
|
+
</tr>
|
|
1403
|
+
|
|
1404
|
+
|
|
1405
|
+
</tbody>
|
|
1406
|
+
</table>
|
|
1407
|
+
<table class="table table-sm table-bordered">
|
|
1408
|
+
<tbody>
|
|
1409
|
+
<tr>
|
|
1410
|
+
<td class="col-md-4">
|
|
1411
|
+
<a name="loaded"></a>
|
|
1412
|
+
<span class="name">
|
|
1413
|
+
<span class="modifier">Public</span>
|
|
1414
|
+
<span class="modifier">Readonly</span>
|
|
1415
|
+
<span ><b>loaded</b></span>
|
|
1416
|
+
<a href="#loaded"><span class="icon ion-ios-link"></span></a>
|
|
1417
|
+
</span>
|
|
1418
|
+
</td>
|
|
1419
|
+
</tr>
|
|
1420
|
+
<tr>
|
|
1421
|
+
<td class="col-md-4">
|
|
1422
|
+
<i>Default value : </i><code>toSignal(this.loaded$, { initialValue: false })</code>
|
|
1423
|
+
</td>
|
|
1424
|
+
</tr>
|
|
1425
|
+
<tr>
|
|
1426
|
+
<td class="col-md-4">
|
|
1427
|
+
<div class="io-line">Defined in <a href="" data-line="174" class="link-to-prism">src/lib/directives/form.directive.ts:174</a></div>
|
|
1428
|
+
</td>
|
|
1429
|
+
</tr>
|
|
1430
|
+
|
|
1431
|
+
|
|
1432
|
+
</tbody>
|
|
1433
|
+
</table>
|
|
1434
|
+
<table class="table table-sm table-bordered">
|
|
1435
|
+
<tbody>
|
|
1436
|
+
<tr>
|
|
1437
|
+
<td class="col-md-4">
|
|
1438
|
+
<a name="loaded$"></a>
|
|
1439
|
+
<span class="name">
|
|
1440
|
+
<span class="modifier">Public</span>
|
|
1441
|
+
<span class="modifier">Readonly</span>
|
|
1442
|
+
<span ><b>loaded$</b></span>
|
|
1443
|
+
<a href="#loaded$"><span class="icon ion-ios-link"></span></a>
|
|
1444
|
+
</span>
|
|
1445
|
+
</td>
|
|
1446
|
+
</tr>
|
|
1447
|
+
<tr>
|
|
1448
|
+
<td class="col-md-4">
|
|
1449
|
+
<i>Default value : </i><code>new ToggleSubject()</code>
|
|
1450
|
+
</td>
|
|
1451
|
+
</tr>
|
|
1452
|
+
<tr>
|
|
1453
|
+
<td class="col-md-4">
|
|
1454
|
+
<div class="io-line">Defined in <a href="" data-line="168" class="link-to-prism">src/lib/directives/form.directive.ts:168</a></div>
|
|
1455
|
+
</td>
|
|
1456
|
+
</tr>
|
|
1457
|
+
|
|
1458
|
+
|
|
1459
|
+
</tbody>
|
|
1460
|
+
</table>
|
|
1461
|
+
<table class="table table-sm table-bordered">
|
|
1462
|
+
<tbody>
|
|
1463
|
+
<tr>
|
|
1464
|
+
<td class="col-md-4">
|
|
1465
|
+
<a name="loadFailedMethod"></a>
|
|
1466
|
+
<span class="name">
|
|
1467
|
+
<span class="modifier">Public</span>
|
|
1468
|
+
<span class="modifier">Readonly</span>
|
|
1469
|
+
<span ><b>loadFailedMethod</b></span>
|
|
1470
|
+
<a href="#loadFailedMethod"><span class="icon ion-ios-link"></span></a>
|
|
1471
|
+
</span>
|
|
1472
|
+
</td>
|
|
1473
|
+
</tr>
|
|
1474
|
+
<tr>
|
|
1475
|
+
<td class="col-md-4">
|
|
1476
|
+
<i>Default value : </i><code>input<FormLoadFailedMethod | null>(null)</code>
|
|
1477
|
+
</td>
|
|
1478
|
+
</tr>
|
|
1479
|
+
<tr>
|
|
1480
|
+
<td class="col-md-4">
|
|
1481
|
+
<div class="io-line">Defined in <a href="" data-line="193" class="link-to-prism">src/lib/directives/form.directive.ts:193</a></div>
|
|
1482
|
+
</td>
|
|
1483
|
+
</tr>
|
|
1484
|
+
|
|
1485
|
+
|
|
1486
|
+
</tbody>
|
|
1487
|
+
</table>
|
|
1488
|
+
<table class="table table-sm table-bordered">
|
|
1489
|
+
<tbody>
|
|
1490
|
+
<tr>
|
|
1491
|
+
<td class="col-md-4">
|
|
1492
|
+
<a name="loading"></a>
|
|
1493
|
+
<span class="name">
|
|
1494
|
+
<span class="modifier">Public</span>
|
|
1495
|
+
<span class="modifier">Readonly</span>
|
|
1496
|
+
<span ><b>loading</b></span>
|
|
1497
|
+
<a href="#loading"><span class="icon ion-ios-link"></span></a>
|
|
1498
|
+
</span>
|
|
1499
|
+
</td>
|
|
1500
|
+
</tr>
|
|
1501
|
+
<tr>
|
|
1502
|
+
<td class="col-md-4">
|
|
1503
|
+
<i>Default value : </i><code>toSignal(this.loading$, { initialValue: false })</code>
|
|
1504
|
+
</td>
|
|
1505
|
+
</tr>
|
|
1506
|
+
<tr>
|
|
1507
|
+
<td class="col-md-4">
|
|
1508
|
+
<div class="io-line">Defined in <a href="" data-line="173" class="link-to-prism">src/lib/directives/form.directive.ts:173</a></div>
|
|
1509
|
+
</td>
|
|
1510
|
+
</tr>
|
|
1511
|
+
|
|
1512
|
+
|
|
1513
|
+
</tbody>
|
|
1514
|
+
</table>
|
|
1515
|
+
<table class="table table-sm table-bordered">
|
|
1516
|
+
<tbody>
|
|
1517
|
+
<tr>
|
|
1518
|
+
<td class="col-md-4">
|
|
1519
|
+
<a name="loading$"></a>
|
|
1520
|
+
<span class="name">
|
|
1521
|
+
<span class="modifier">Public</span>
|
|
1522
|
+
<span class="modifier">Readonly</span>
|
|
1523
|
+
<span ><b>loading$</b></span>
|
|
1524
|
+
<a href="#loading$"><span class="icon ion-ios-link"></span></a>
|
|
1525
|
+
</span>
|
|
1526
|
+
</td>
|
|
1527
|
+
</tr>
|
|
1528
|
+
<tr>
|
|
1529
|
+
<td class="col-md-4">
|
|
1530
|
+
<i>Default value : </i><code>new ToggleSubject()</code>
|
|
1531
|
+
</td>
|
|
1532
|
+
</tr>
|
|
1533
|
+
<tr>
|
|
1534
|
+
<td class="col-md-4">
|
|
1535
|
+
<div class="io-line">Defined in <a href="" data-line="167" class="link-to-prism">src/lib/directives/form.directive.ts:167</a></div>
|
|
1536
|
+
</td>
|
|
1537
|
+
</tr>
|
|
1538
|
+
|
|
1539
|
+
|
|
1540
|
+
</tbody>
|
|
1541
|
+
</table>
|
|
1542
|
+
<table class="table table-sm table-bordered">
|
|
1543
|
+
<tbody>
|
|
1544
|
+
<tr>
|
|
1545
|
+
<td class="col-md-4">
|
|
1546
|
+
<a name="loadingError"></a>
|
|
1547
|
+
<span class="name">
|
|
1548
|
+
<span class="modifier">Public</span>
|
|
1549
|
+
<span class="modifier">Readonly</span>
|
|
1550
|
+
<span ><b>loadingError</b></span>
|
|
1551
|
+
<a href="#loadingError"><span class="icon ion-ios-link"></span></a>
|
|
1552
|
+
</span>
|
|
1553
|
+
</td>
|
|
1554
|
+
</tr>
|
|
1555
|
+
<tr>
|
|
1556
|
+
<td class="col-md-4">
|
|
1557
|
+
<i>Default value : </i><code>toSignal(this.loadingError$, { initialValue: null })</code>
|
|
1558
|
+
</td>
|
|
1559
|
+
</tr>
|
|
1560
|
+
<tr>
|
|
1561
|
+
<td class="col-md-4">
|
|
1562
|
+
<div class="io-line">Defined in <a href="" data-line="175" class="link-to-prism">src/lib/directives/form.directive.ts:175</a></div>
|
|
1563
|
+
</td>
|
|
1564
|
+
</tr>
|
|
1565
|
+
|
|
1566
|
+
|
|
1567
|
+
</tbody>
|
|
1568
|
+
</table>
|
|
1569
|
+
<table class="table table-sm table-bordered">
|
|
1570
|
+
<tbody>
|
|
1571
|
+
<tr>
|
|
1572
|
+
<td class="col-md-4">
|
|
1573
|
+
<a name="loadingError$"></a>
|
|
1574
|
+
<span class="name">
|
|
1575
|
+
<span class="modifier">Public</span>
|
|
1576
|
+
<span class="modifier">Readonly</span>
|
|
1577
|
+
<span ><b>loadingError$</b></span>
|
|
1578
|
+
<a href="#loadingError$"><span class="icon ion-ios-link"></span></a>
|
|
1579
|
+
</span>
|
|
1580
|
+
</td>
|
|
1581
|
+
</tr>
|
|
1582
|
+
<tr>
|
|
1583
|
+
<td class="col-md-4">
|
|
1584
|
+
<i>Default value : </i><code>new BehaviorSubject<Error | null>(null)</code>
|
|
1585
|
+
</td>
|
|
1586
|
+
</tr>
|
|
1587
|
+
<tr>
|
|
1588
|
+
<td class="col-md-4">
|
|
1589
|
+
<div class="io-line">Defined in <a href="" data-line="169" class="link-to-prism">src/lib/directives/form.directive.ts:169</a></div>
|
|
1590
|
+
</td>
|
|
1591
|
+
</tr>
|
|
1592
|
+
|
|
1593
|
+
|
|
1594
|
+
</tbody>
|
|
1595
|
+
</table>
|
|
1596
|
+
<table class="table table-sm table-bordered">
|
|
1597
|
+
<tbody>
|
|
1598
|
+
<tr>
|
|
1599
|
+
<td class="col-md-4">
|
|
1600
|
+
<a name="loadingIndicatorService"></a>
|
|
1601
|
+
<span class="name">
|
|
1602
|
+
<span class="modifier">Protected</span>
|
|
1603
|
+
<span class="modifier">Readonly</span>
|
|
1604
|
+
<span ><b>loadingIndicatorService</b></span>
|
|
1605
|
+
<a href="#loadingIndicatorService"><span class="icon ion-ios-link"></span></a>
|
|
1606
|
+
</span>
|
|
1607
|
+
</td>
|
|
1608
|
+
</tr>
|
|
1609
|
+
<tr>
|
|
1610
|
+
<td class="col-md-4">
|
|
1611
|
+
<i>Default value : </i><code>inject<LoadingIndicatorService | null>(LoadingIndicatorService, { optional: true }) ?? null</code>
|
|
1612
|
+
</td>
|
|
1613
|
+
</tr>
|
|
1614
|
+
<tr>
|
|
1615
|
+
<td class="col-md-4">
|
|
1616
|
+
<div class="io-line">Defined in <a href="" data-line="116" class="link-to-prism">src/lib/directives/form.directive.ts:116</a></div>
|
|
1617
|
+
</td>
|
|
1618
|
+
</tr>
|
|
1619
|
+
|
|
1620
|
+
|
|
1621
|
+
</tbody>
|
|
1622
|
+
</table>
|
|
1623
|
+
<table class="table table-sm table-bordered">
|
|
1624
|
+
<tbody>
|
|
1625
|
+
<tr>
|
|
1626
|
+
<td class="col-md-4">
|
|
1627
|
+
<a name="loadMethod"></a>
|
|
1628
|
+
<span class="name">
|
|
1629
|
+
<span class="modifier">Public</span>
|
|
1630
|
+
<span class="modifier">Readonly</span>
|
|
1631
|
+
<span ><b>loadMethod</b></span>
|
|
1632
|
+
<a href="#loadMethod"><span class="icon ion-ios-link"></span></a>
|
|
1633
|
+
</span>
|
|
1634
|
+
</td>
|
|
1635
|
+
</tr>
|
|
1636
|
+
<tr>
|
|
1637
|
+
<td class="col-md-4">
|
|
1638
|
+
<i>Default value : </i><code>input<FormLoadMethod | null>(null)</code>
|
|
1639
|
+
</td>
|
|
1640
|
+
</tr>
|
|
1641
|
+
<tr>
|
|
1642
|
+
<td class="col-md-4">
|
|
1643
|
+
<div class="io-line">Defined in <a href="" data-line="191" class="link-to-prism">src/lib/directives/form.directive.ts:191</a></div>
|
|
1644
|
+
</td>
|
|
1645
|
+
</tr>
|
|
1646
|
+
|
|
1647
|
+
|
|
1489
1648
|
</tbody>
|
|
1490
1649
|
</table>
|
|
1491
|
-
</section>
|
|
1492
|
-
<section data-compodoc="block-properties">
|
|
1493
|
-
|
|
1494
|
-
<h3 id="inputs">
|
|
1495
|
-
Properties
|
|
1496
|
-
</h3>
|
|
1497
1650
|
<table class="table table-sm table-bordered">
|
|
1498
1651
|
<tbody>
|
|
1499
1652
|
<tr>
|
|
1500
1653
|
<td class="col-md-4">
|
|
1501
|
-
<a name="
|
|
1654
|
+
<a name="loadSuccessfulMethod"></a>
|
|
1502
1655
|
<span class="name">
|
|
1503
|
-
<span class="modifier">
|
|
1504
|
-
|
|
1505
|
-
<
|
|
1656
|
+
<span class="modifier">Public</span>
|
|
1657
|
+
<span class="modifier">Readonly</span>
|
|
1658
|
+
<span ><b>loadSuccessfulMethod</b></span>
|
|
1659
|
+
<a href="#loadSuccessfulMethod"><span class="icon ion-ios-link"></span></a>
|
|
1506
1660
|
</span>
|
|
1507
1661
|
</td>
|
|
1508
1662
|
</tr>
|
|
1509
1663
|
<tr>
|
|
1510
1664
|
<td class="col-md-4">
|
|
1511
|
-
<i>
|
|
1512
|
-
|
|
1665
|
+
<i>Default value : </i><code>input<FormLoadSuccessfulMethod | null>(null)</code>
|
|
1513
1666
|
</td>
|
|
1514
1667
|
</tr>
|
|
1515
1668
|
<tr>
|
|
1516
1669
|
<td class="col-md-4">
|
|
1517
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1670
|
+
<div class="io-line">Defined in <a href="" data-line="195" class="link-to-prism">src/lib/directives/form.directive.ts:195</a></div>
|
|
1518
1671
|
</td>
|
|
1519
1672
|
</tr>
|
|
1520
1673
|
|
|
@@ -1525,37 +1678,35 @@ is clicked.</p>
|
|
|
1525
1678
|
<tbody>
|
|
1526
1679
|
<tr>
|
|
1527
1680
|
<td class="col-md-4">
|
|
1528
|
-
<a name="
|
|
1681
|
+
<a name="rxapSubmit"></a>
|
|
1529
1682
|
<span class="name">
|
|
1530
|
-
<span class="modifier"></span>
|
|
1531
1683
|
<span class="modifier">Public</span>
|
|
1532
1684
|
<span class="modifier">Readonly</span>
|
|
1533
|
-
<span ><b>
|
|
1534
|
-
<a href="#
|
|
1685
|
+
<span ><b>rxapSubmit</b></span>
|
|
1686
|
+
<a href="#rxapSubmit"><span class="icon ion-ios-link"></span></a>
|
|
1535
1687
|
</span>
|
|
1536
1688
|
</td>
|
|
1537
1689
|
</tr>
|
|
1538
1690
|
<tr>
|
|
1539
1691
|
<td class="col-md-4">
|
|
1540
|
-
<i>
|
|
1541
|
-
|
|
1542
|
-
</td>
|
|
1543
|
-
</tr>
|
|
1544
|
-
<tr>
|
|
1545
|
-
<td class="col-md-4">
|
|
1546
|
-
<b>Decorators : </b>
|
|
1547
|
-
<br />
|
|
1548
|
-
<code>
|
|
1549
|
-
@Inject(ChangeDetectorRef)<br />
|
|
1550
|
-
</code>
|
|
1692
|
+
<i>Default value : </i><code>output<any>()</code>
|
|
1551
1693
|
</td>
|
|
1552
1694
|
</tr>
|
|
1553
1695
|
<tr>
|
|
1554
1696
|
<td class="col-md-4">
|
|
1555
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1697
|
+
<div class="io-line">Defined in <a href="" data-line="159" class="link-to-prism">src/lib/directives/form.directive.ts:159</a></div>
|
|
1556
1698
|
</td>
|
|
1557
1699
|
</tr>
|
|
1558
1700
|
|
|
1701
|
+
<tr>
|
|
1702
|
+
<td class="col-md-4">
|
|
1703
|
+
<div class="io-description"><p>Emits when the submit method is executed without errors. The result of the
|
|
1704
|
+
submit method is passed as event object.</p>
|
|
1705
|
+
<p>If no submit method is defined then emit after the submit button
|
|
1706
|
+
is clicked.</p>
|
|
1707
|
+
</div>
|
|
1708
|
+
</td>
|
|
1709
|
+
</tr>
|
|
1559
1710
|
|
|
1560
1711
|
</tbody>
|
|
1561
1712
|
</table>
|
|
@@ -1563,23 +1714,23 @@ is clicked.</p>
|
|
|
1563
1714
|
<tbody>
|
|
1564
1715
|
<tr>
|
|
1565
1716
|
<td class="col-md-4">
|
|
1566
|
-
<a name="
|
|
1717
|
+
<a name="submitError"></a>
|
|
1567
1718
|
<span class="name">
|
|
1568
1719
|
<span class="modifier">Public</span>
|
|
1569
1720
|
<span class="modifier">Readonly</span>
|
|
1570
|
-
<span ><b>
|
|
1571
|
-
<a href="#
|
|
1721
|
+
<span ><b>submitError</b></span>
|
|
1722
|
+
<a href="#submitError"><span class="icon ion-ios-link"></span></a>
|
|
1572
1723
|
</span>
|
|
1573
1724
|
</td>
|
|
1574
1725
|
</tr>
|
|
1575
1726
|
<tr>
|
|
1576
1727
|
<td class="col-md-4">
|
|
1577
|
-
<i>Default value : </i><code>
|
|
1728
|
+
<i>Default value : </i><code>toSignal(this.submitError$, { initialValue: null })</code>
|
|
1578
1729
|
</td>
|
|
1579
1730
|
</tr>
|
|
1580
1731
|
<tr>
|
|
1581
1732
|
<td class="col-md-4">
|
|
1582
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1733
|
+
<div class="io-line">Defined in <a href="" data-line="172" class="link-to-prism">src/lib/directives/form.directive.ts:172</a></div>
|
|
1583
1734
|
</td>
|
|
1584
1735
|
</tr>
|
|
1585
1736
|
|
|
@@ -1590,24 +1741,23 @@ is clicked.</p>
|
|
|
1590
1741
|
<tbody>
|
|
1591
1742
|
<tr>
|
|
1592
1743
|
<td class="col-md-4">
|
|
1593
|
-
<a name="
|
|
1744
|
+
<a name="submitError$"></a>
|
|
1594
1745
|
<span class="name">
|
|
1595
1746
|
<span class="modifier">Public</span>
|
|
1596
|
-
<span class="modifier"
|
|
1597
|
-
<span ><b>
|
|
1598
|
-
<a href="#
|
|
1747
|
+
<span class="modifier">Readonly</span>
|
|
1748
|
+
<span ><b>submitError$</b></span>
|
|
1749
|
+
<a href="#submitError$"><span class="icon ion-ios-link"></span></a>
|
|
1599
1750
|
</span>
|
|
1600
1751
|
</td>
|
|
1601
1752
|
</tr>
|
|
1602
1753
|
<tr>
|
|
1603
1754
|
<td class="col-md-4">
|
|
1604
|
-
<i>
|
|
1605
|
-
|
|
1755
|
+
<i>Default value : </i><code>new BehaviorSubject<Error | null>(null)</code>
|
|
1606
1756
|
</td>
|
|
1607
1757
|
</tr>
|
|
1608
1758
|
<tr>
|
|
1609
1759
|
<td class="col-md-4">
|
|
1610
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1760
|
+
<div class="io-line">Defined in <a href="" data-line="166" class="link-to-prism">src/lib/directives/form.directive.ts:166</a></div>
|
|
1611
1761
|
</td>
|
|
1612
1762
|
</tr>
|
|
1613
1763
|
|
|
@@ -1618,23 +1768,23 @@ is clicked.</p>
|
|
|
1618
1768
|
<tbody>
|
|
1619
1769
|
<tr>
|
|
1620
1770
|
<td class="col-md-4">
|
|
1621
|
-
<a name="
|
|
1771
|
+
<a name="submitFailedMethod"></a>
|
|
1622
1772
|
<span class="name">
|
|
1623
1773
|
<span class="modifier">Public</span>
|
|
1624
1774
|
<span class="modifier">Readonly</span>
|
|
1625
|
-
<span ><b>
|
|
1626
|
-
<a href="#
|
|
1775
|
+
<span ><b>submitFailedMethod</b></span>
|
|
1776
|
+
<a href="#submitFailedMethod"><span class="icon ion-ios-link"></span></a>
|
|
1627
1777
|
</span>
|
|
1628
1778
|
</td>
|
|
1629
1779
|
</tr>
|
|
1630
1780
|
<tr>
|
|
1631
1781
|
<td class="col-md-4">
|
|
1632
|
-
<i>Default value : </i><code>
|
|
1782
|
+
<i>Default value : </i><code>input<FormSubmitFailedMethod | null>(null)</code>
|
|
1633
1783
|
</td>
|
|
1634
1784
|
</tr>
|
|
1635
1785
|
<tr>
|
|
1636
1786
|
<td class="col-md-4">
|
|
1637
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1787
|
+
<div class="io-line">Defined in <a href="" data-line="197" class="link-to-prism">src/lib/directives/form.directive.ts:197</a></div>
|
|
1638
1788
|
</td>
|
|
1639
1789
|
</tr>
|
|
1640
1790
|
|
|
@@ -1645,23 +1795,23 @@ is clicked.</p>
|
|
|
1645
1795
|
<tbody>
|
|
1646
1796
|
<tr>
|
|
1647
1797
|
<td class="col-md-4">
|
|
1648
|
-
<a name="
|
|
1798
|
+
<a name="submitMethod"></a>
|
|
1649
1799
|
<span class="name">
|
|
1650
1800
|
<span class="modifier">Public</span>
|
|
1651
1801
|
<span class="modifier">Readonly</span>
|
|
1652
|
-
<span ><b>
|
|
1653
|
-
<a href="#
|
|
1802
|
+
<span ><b>submitMethod</b></span>
|
|
1803
|
+
<a href="#submitMethod"><span class="icon ion-ios-link"></span></a>
|
|
1654
1804
|
</span>
|
|
1655
1805
|
</td>
|
|
1656
1806
|
</tr>
|
|
1657
1807
|
<tr>
|
|
1658
1808
|
<td class="col-md-4">
|
|
1659
|
-
<i>Default value : </i><code>
|
|
1809
|
+
<i>Default value : </i><code>input<FormSubmitMethod<any> | null>(null)</code>
|
|
1660
1810
|
</td>
|
|
1661
1811
|
</tr>
|
|
1662
1812
|
<tr>
|
|
1663
1813
|
<td class="col-md-4">
|
|
1664
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1814
|
+
<div class="io-line">Defined in <a href="" data-line="189" class="link-to-prism">src/lib/directives/form.directive.ts:189</a></div>
|
|
1665
1815
|
</td>
|
|
1666
1816
|
</tr>
|
|
1667
1817
|
|
|
@@ -1672,23 +1822,23 @@ is clicked.</p>
|
|
|
1672
1822
|
<tbody>
|
|
1673
1823
|
<tr>
|
|
1674
1824
|
<td class="col-md-4">
|
|
1675
|
-
<a name="
|
|
1825
|
+
<a name="submitSuccessful$"></a>
|
|
1676
1826
|
<span class="name">
|
|
1677
1827
|
<span class="modifier">Public</span>
|
|
1678
1828
|
<span class="modifier">Readonly</span>
|
|
1679
|
-
<span ><b>
|
|
1680
|
-
<a href="#
|
|
1829
|
+
<span ><b>submitSuccessful$</b></span>
|
|
1830
|
+
<a href="#submitSuccessful$"><span class="icon ion-ios-link"></span></a>
|
|
1681
1831
|
</span>
|
|
1682
1832
|
</td>
|
|
1683
1833
|
</tr>
|
|
1684
1834
|
<tr>
|
|
1685
1835
|
<td class="col-md-4">
|
|
1686
|
-
<i>Default value : </i><code>
|
|
1836
|
+
<i>Default value : </i><code>output<any>({ alias: 'submitSuccessful' })</code>
|
|
1687
1837
|
</td>
|
|
1688
1838
|
</tr>
|
|
1689
1839
|
<tr>
|
|
1690
1840
|
<td class="col-md-4">
|
|
1691
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1841
|
+
<div class="io-line">Defined in <a href="" data-line="163" class="link-to-prism">src/lib/directives/form.directive.ts:163</a></div>
|
|
1692
1842
|
</td>
|
|
1693
1843
|
</tr>
|
|
1694
1844
|
|
|
@@ -1699,23 +1849,23 @@ is clicked.</p>
|
|
|
1699
1849
|
<tbody>
|
|
1700
1850
|
<tr>
|
|
1701
1851
|
<td class="col-md-4">
|
|
1702
|
-
<a name="
|
|
1852
|
+
<a name="submitSuccessfulMethod"></a>
|
|
1703
1853
|
<span class="name">
|
|
1704
1854
|
<span class="modifier">Public</span>
|
|
1705
1855
|
<span class="modifier">Readonly</span>
|
|
1706
|
-
<span ><b>
|
|
1707
|
-
<a href="#
|
|
1856
|
+
<span ><b>submitSuccessfulMethod</b></span>
|
|
1857
|
+
<a href="#submitSuccessfulMethod"><span class="icon ion-ios-link"></span></a>
|
|
1708
1858
|
</span>
|
|
1709
1859
|
</td>
|
|
1710
1860
|
</tr>
|
|
1711
1861
|
<tr>
|
|
1712
1862
|
<td class="col-md-4">
|
|
1713
|
-
<i>Default value : </i><code>
|
|
1863
|
+
<i>Default value : </i><code>input<FormSubmitSuccessfulMethod | null>(null)</code>
|
|
1714
1864
|
</td>
|
|
1715
1865
|
</tr>
|
|
1716
1866
|
<tr>
|
|
1717
1867
|
<td class="col-md-4">
|
|
1718
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1868
|
+
<div class="io-line">Defined in <a href="" data-line="199" class="link-to-prism">src/lib/directives/form.directive.ts:199</a></div>
|
|
1719
1869
|
</td>
|
|
1720
1870
|
</tr>
|
|
1721
1871
|
|
|
@@ -1726,23 +1876,23 @@ is clicked.</p>
|
|
|
1726
1876
|
<tbody>
|
|
1727
1877
|
<tr>
|
|
1728
1878
|
<td class="col-md-4">
|
|
1729
|
-
<a name="
|
|
1879
|
+
<a name="submitting"></a>
|
|
1730
1880
|
<span class="name">
|
|
1731
1881
|
<span class="modifier">Public</span>
|
|
1732
1882
|
<span class="modifier">Readonly</span>
|
|
1733
|
-
<span ><b>
|
|
1734
|
-
<a href="#
|
|
1883
|
+
<span ><b>submitting</b></span>
|
|
1884
|
+
<a href="#submitting"><span class="icon ion-ios-link"></span></a>
|
|
1735
1885
|
</span>
|
|
1736
1886
|
</td>
|
|
1737
1887
|
</tr>
|
|
1738
1888
|
<tr>
|
|
1739
1889
|
<td class="col-md-4">
|
|
1740
|
-
<i>Default value : </i><code>
|
|
1890
|
+
<i>Default value : </i><code>toSignal(this.submitting$, { initialValue: false })</code>
|
|
1741
1891
|
</td>
|
|
1742
1892
|
</tr>
|
|
1743
1893
|
<tr>
|
|
1744
1894
|
<td class="col-md-4">
|
|
1745
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1895
|
+
<div class="io-line">Defined in <a href="" data-line="171" class="link-to-prism">src/lib/directives/form.directive.ts:171</a></div>
|
|
1746
1896
|
</td>
|
|
1747
1897
|
</tr>
|
|
1748
1898
|
|
|
@@ -1769,188 +1919,53 @@ is clicked.</p>
|
|
|
1769
1919
|
</tr>
|
|
1770
1920
|
<tr>
|
|
1771
1921
|
<td class="col-md-4">
|
|
1772
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1922
|
+
<div class="io-line">Defined in <a href="" data-line="165" class="link-to-prism">src/lib/directives/form.directive.ts:165</a></div>
|
|
1773
1923
|
</td>
|
|
1774
1924
|
</tr>
|
|
1775
1925
|
|
|
1776
1926
|
|
|
1777
1927
|
</tbody>
|
|
1778
1928
|
</table>
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
<
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
</tr>
|
|
1793
|
-
|
|
1794
|
-
<tr>
|
|
1795
|
-
<td class="col-md-4">
|
|
1796
|
-
<span class="accessor"><b>get</b><code>submitting()</code></span>
|
|
1797
|
-
</td>
|
|
1798
|
-
</tr>
|
|
1799
|
-
<tr>
|
|
1800
|
-
<td class="col-md-4">
|
|
1801
|
-
<div class="io-line">Defined in <a href="" data-line="145" class="link-to-prism">src/lib/directives/form.directive.ts:145</a></div>
|
|
1802
|
-
</td>
|
|
1803
|
-
</tr>
|
|
1804
|
-
|
|
1805
|
-
</tbody>
|
|
1806
|
-
</table>
|
|
1807
|
-
<table class="table table-sm table-bordered">
|
|
1808
|
-
<tbody>
|
|
1809
|
-
<tr>
|
|
1810
|
-
<td class="col-md-4">
|
|
1811
|
-
<a name="submitError"></a>
|
|
1812
|
-
<span class="name"><b>submitError</b><a href="#submitError"><span class="icon ion-ios-link"></span></a></span>
|
|
1813
|
-
</td>
|
|
1814
|
-
</tr>
|
|
1815
|
-
|
|
1816
|
-
<tr>
|
|
1817
|
-
<td class="col-md-4">
|
|
1818
|
-
<span class="accessor"><b>get</b><code>submitError()</code></span>
|
|
1819
|
-
</td>
|
|
1820
|
-
</tr>
|
|
1821
|
-
<tr>
|
|
1822
|
-
<td class="col-md-4">
|
|
1823
|
-
<div class="io-line">Defined in <a href="" data-line="150" class="link-to-prism">src/lib/directives/form.directive.ts:150</a></div>
|
|
1824
|
-
</td>
|
|
1825
|
-
</tr>
|
|
1826
|
-
|
|
1827
|
-
</tbody>
|
|
1828
|
-
</table>
|
|
1829
|
-
<table class="table table-sm table-bordered">
|
|
1830
|
-
<tbody>
|
|
1831
|
-
<tr>
|
|
1832
|
-
<td class="col-md-4">
|
|
1833
|
-
<a name="loading"></a>
|
|
1834
|
-
<span class="name"><b>loading</b><a href="#loading"><span class="icon ion-ios-link"></span></a></span>
|
|
1835
|
-
</td>
|
|
1836
|
-
</tr>
|
|
1837
|
-
|
|
1838
|
-
<tr>
|
|
1839
|
-
<td class="col-md-4">
|
|
1840
|
-
<span class="accessor"><b>get</b><code>loading()</code></span>
|
|
1841
|
-
</td>
|
|
1842
|
-
</tr>
|
|
1843
|
-
<tr>
|
|
1844
|
-
<td class="col-md-4">
|
|
1845
|
-
<div class="io-line">Defined in <a href="" data-line="155" class="link-to-prism">src/lib/directives/form.directive.ts:155</a></div>
|
|
1846
|
-
</td>
|
|
1847
|
-
</tr>
|
|
1848
|
-
|
|
1849
|
-
</tbody>
|
|
1850
|
-
</table>
|
|
1851
|
-
<table class="table table-sm table-bordered">
|
|
1852
|
-
<tbody>
|
|
1853
|
-
<tr>
|
|
1854
|
-
<td class="col-md-4">
|
|
1855
|
-
<a name="loaded"></a>
|
|
1856
|
-
<span class="name"><b>loaded</b><a href="#loaded"><span class="icon ion-ios-link"></span></a></span>
|
|
1857
|
-
</td>
|
|
1858
|
-
</tr>
|
|
1859
|
-
|
|
1860
|
-
<tr>
|
|
1861
|
-
<td class="col-md-4">
|
|
1862
|
-
<span class="accessor"><b>get</b><code>loaded()</code></span>
|
|
1863
|
-
</td>
|
|
1864
|
-
</tr>
|
|
1865
|
-
<tr>
|
|
1866
|
-
<td class="col-md-4">
|
|
1867
|
-
<div class="io-line">Defined in <a href="" data-line="160" class="link-to-prism">src/lib/directives/form.directive.ts:160</a></div>
|
|
1868
|
-
</td>
|
|
1869
|
-
</tr>
|
|
1870
|
-
|
|
1871
|
-
</tbody>
|
|
1872
|
-
</table>
|
|
1873
|
-
<table class="table table-sm table-bordered">
|
|
1874
|
-
<tbody>
|
|
1875
|
-
<tr>
|
|
1876
|
-
<td class="col-md-4">
|
|
1877
|
-
<a name="loadingError"></a>
|
|
1878
|
-
<span class="name"><b>loadingError</b><a href="#loadingError"><span class="icon ion-ios-link"></span></a></span>
|
|
1879
|
-
</td>
|
|
1880
|
-
</tr>
|
|
1881
|
-
|
|
1882
|
-
<tr>
|
|
1883
|
-
<td class="col-md-4">
|
|
1884
|
-
<span class="accessor"><b>get</b><code>loadingError()</code></span>
|
|
1885
|
-
</td>
|
|
1886
|
-
</tr>
|
|
1887
|
-
<tr>
|
|
1888
|
-
<td class="col-md-4">
|
|
1889
|
-
<div class="io-line">Defined in <a href="" data-line="165" class="link-to-prism">src/lib/directives/form.directive.ts:165</a></div>
|
|
1890
|
-
</td>
|
|
1891
|
-
</tr>
|
|
1892
|
-
|
|
1893
|
-
</tbody>
|
|
1894
|
-
</table>
|
|
1895
|
-
<table class="table table-sm table-bordered">
|
|
1896
|
-
<tbody>
|
|
1897
|
-
<tr>
|
|
1898
|
-
<td class="col-md-4">
|
|
1899
|
-
<a name="useFormDefinition"></a>
|
|
1900
|
-
<span class="name"><b>useFormDefinition</b><a href="#useFormDefinition"><span class="icon ion-ios-link"></span></a></span>
|
|
1901
|
-
</td>
|
|
1902
|
-
</tr>
|
|
1903
|
-
|
|
1904
|
-
|
|
1929
|
+
<table class="table table-sm table-bordered">
|
|
1930
|
+
<tbody>
|
|
1931
|
+
<tr>
|
|
1932
|
+
<td class="col-md-4">
|
|
1933
|
+
<a name="useFormDefinition"></a>
|
|
1934
|
+
<span class="name">
|
|
1935
|
+
<span class="modifier">Public</span>
|
|
1936
|
+
<span class="modifier">Readonly</span>
|
|
1937
|
+
<span ><b>useFormDefinition</b></span>
|
|
1938
|
+
<a href="#useFormDefinition"><span class="icon ion-ios-link"></span></a>
|
|
1939
|
+
</span>
|
|
1940
|
+
</td>
|
|
1941
|
+
</tr>
|
|
1905
1942
|
<tr>
|
|
1906
1943
|
<td class="col-md-4">
|
|
1907
|
-
<
|
|
1944
|
+
<i>Default value : </i><code>input<FormDefinition<T> | ''>('', { alias: 'rxapForm' })</code>
|
|
1908
1945
|
</td>
|
|
1909
1946
|
</tr>
|
|
1910
|
-
<tr>
|
|
1911
|
-
<td class="col-md-4">
|
|
1912
|
-
<div class="io-line">Defined in <a href="" data-line="170" class="link-to-prism">src/lib/directives/form.directive.ts:170</a></div>
|
|
1913
|
-
</td>
|
|
1914
|
-
</tr>
|
|
1915
1947
|
<tr>
|
|
1916
1948
|
<td class="col-md-4">
|
|
1917
|
-
|
|
1918
|
-
<div class="io-description">
|
|
1919
|
-
<b>Parameters :</b>
|
|
1920
|
-
<table class="params">
|
|
1921
|
-
<thead>
|
|
1922
|
-
<tr>
|
|
1923
|
-
<td>Name</td>
|
|
1924
|
-
<td>Type</td>
|
|
1925
|
-
<td>Optional</td>
|
|
1926
|
-
</tr>
|
|
1927
|
-
</thead>
|
|
1928
|
-
<tbody>
|
|
1929
|
-
<tr>
|
|
1930
|
-
<td>value</td>
|
|
1931
|
-
|
|
1932
|
-
<td>
|
|
1933
|
-
<code><a href="../interfaces/FormDefinition.html" target="_self" >FormDefinition<T> | string</a></code>
|
|
1934
|
-
</td>
|
|
1935
|
-
|
|
1936
|
-
<td>
|
|
1937
|
-
No
|
|
1938
|
-
</td>
|
|
1939
|
-
|
|
1940
|
-
</tr>
|
|
1941
|
-
</tbody>
|
|
1942
|
-
</table>
|
|
1943
|
-
</div>
|
|
1944
|
-
<div>
|
|
1945
|
-
</div>
|
|
1946
|
-
<div class="io-description">
|
|
1947
|
-
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
1948
|
-
|
|
1949
|
-
</div>
|
|
1949
|
+
<div class="io-line">Defined in <a href="" data-line="181" class="link-to-prism">src/lib/directives/form.directive.ts:181</a></div>
|
|
1950
1950
|
</td>
|
|
1951
1951
|
</tr>
|
|
1952
|
-
|
|
1953
|
-
|
|
1952
|
+
|
|
1953
|
+
<tr>
|
|
1954
|
+
<td class="col-md-4">
|
|
1955
|
+
<div class="io-description"><p>The form definition instance. Overrides the form definition provided by the
|
|
1956
|
+
RXAP_FORM_DEFINITION token or the RXAP_FORM_DEFINITION_BUILDER</p>
|
|
1957
|
+
</div>
|
|
1958
|
+
</td>
|
|
1959
|
+
</tr>
|
|
1960
|
+
|
|
1961
|
+
</tbody>
|
|
1962
|
+
</table>
|
|
1963
|
+
</section>
|
|
1964
|
+
|
|
1965
|
+
<section data-compodoc="block-accessors">
|
|
1966
|
+
<h3 id="accessors">
|
|
1967
|
+
Accessors
|
|
1968
|
+
</h3>
|
|
1954
1969
|
<table class="table table-sm table-bordered">
|
|
1955
1970
|
<tbody>
|
|
1956
1971
|
<tr>
|
|
@@ -1967,7 +1982,7 @@ is clicked.</p>
|
|
|
1967
1982
|
</tr>
|
|
1968
1983
|
<tr>
|
|
1969
1984
|
<td class="col-md-4">
|
|
1970
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1985
|
+
<div class="io-line">Defined in <a href="" data-line="183" class="link-to-prism">src/lib/directives/form.directive.ts:183</a></div>
|
|
1971
1986
|
</td>
|
|
1972
1987
|
</tr>
|
|
1973
1988
|
|
|
@@ -1979,25 +1994,8 @@ is clicked.</p>
|
|
|
1979
1994
|
|
|
1980
1995
|
|
|
1981
1996
|
<div class="tab-pane fade tab-source-code" id="source">
|
|
1982
|
-
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
1983
|
-
|
|
1984
|
-
Directive,
|
|
1985
|
-
EventEmitter,
|
|
1986
|
-
forwardRef,
|
|
1987
|
-
HostBinding,
|
|
1988
|
-
Inject,
|
|
1989
|
-
input,
|
|
1990
|
-
Input,
|
|
1991
|
-
isDevMode,
|
|
1992
|
-
model,
|
|
1993
|
-
OnChanges,
|
|
1994
|
-
OnDestroy,
|
|
1995
|
-
OnInit,
|
|
1996
|
-
Optional,
|
|
1997
|
-
Output,
|
|
1998
|
-
SimpleChanges,
|
|
1999
|
-
SkipSelf,
|
|
2000
|
-
} from '@angular/core';
|
|
1997
|
+
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { ChangeDetectorRef, computed, Directive, forwardRef, inject, input, isDevMode, OnChanges, OnDestroy, OnInit, output, SimpleChanges } from '@angular/core';
|
|
1998
|
+
import { toSignal } from '@angular/core/rxjs-interop';
|
|
2001
1999
|
import {
|
|
2002
2000
|
ControlContainer,
|
|
2003
2001
|
FormGroupDirective,
|
|
@@ -2090,7 +2088,14 @@ import {
|
|
|
2090
2088
|
// endregion
|
|
2091
2089
|
],
|
|
2092
2090
|
|
|
2093
|
-
host: {
|
|
2091
|
+
host: {
|
|
2092
|
+
'(reset)': 'onReset()',
|
|
2093
|
+
'[class.rxap-submitting]': 'submitting()',
|
|
2094
|
+
'[class.rxap-submit-error]': '!!submitError()',
|
|
2095
|
+
'[class.rxap-loading]': 'loading()',
|
|
2096
|
+
'[class.rxap-loaded]': 'loaded()',
|
|
2097
|
+
'[class.rxap-loading-error]': '!!loadingError()',
|
|
2098
|
+
},
|
|
2094
2099
|
// eslint-disable-next-line @angular-eslint/no-outputs-metadata-property
|
|
2095
2100
|
outputs: [ 'ngSubmit' ],
|
|
2096
2101
|
exportAs: 'rxapForm',
|
|
@@ -2099,11 +2104,46 @@ import {
|
|
|
2099
2104
|
export class FormDirective<T = any>
|
|
2100
2105
|
extends FormGroupDirective
|
|
2101
2106
|
implements OnInit, OnChanges, OnDestroy {
|
|
2107
|
+
/**
|
|
2108
|
+
* @deprecated the directive does not rely on manual change detection anymore
|
|
2109
|
+
*/
|
|
2110
|
+
readonly cdr = inject<ChangeDetectorRef>(ChangeDetectorRef);
|
|
2111
|
+
protected readonly formDefinitionBuilder = inject<RxapFormBuilder | null>(RXAP_FORM_DEFINITION_BUILDER, { skipSelf: true, optional: true }) ?? null;
|
|
2112
|
+
protected readonly loadingIndicatorService = inject<LoadingIndicatorService | null>(LoadingIndicatorService, { optional: true }) ?? null;
|
|
2113
|
+
|
|
2114
|
+
// skip self, bc the tokens are set to null in the providers of this directive
|
|
2115
|
+
private readonly injectedSubmitMethod = inject<FormSubmitMethod<any> | null>(RXAP_FORM_SUBMIT_METHOD, { skipSelf: true, optional: true }) ?? null;
|
|
2116
|
+
private readonly injectedLoadMethod = inject<FormLoadMethod | null>(RXAP_FORM_LOAD_METHOD, { skipSelf: true, optional: true }) ?? null;
|
|
2117
|
+
private readonly injectedLoadFailedMethod = inject<FormLoadFailedMethod | null>(RXAP_FORM_LOAD_FAILED_METHOD, { skipSelf: true, optional: true }) ?? null;
|
|
2118
|
+
private readonly injectedLoadSuccessfulMethod = inject<FormLoadSuccessfulMethod | null>(RXAP_FORM_LOAD_SUCCESSFUL_METHOD, { skipSelf: true, optional: true }) ?? null;
|
|
2119
|
+
private readonly injectedSubmitFailedMethod = inject<FormSubmitFailedMethod | null>(RXAP_FORM_SUBMIT_FAILED_METHOD, { skipSelf: true, optional: true }) ?? null;
|
|
2120
|
+
private readonly injectedSubmitSuccessfulMethod = inject<FormSubmitSuccessfulMethod | null>(RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD, { skipSelf: true, optional: true }) ?? null;
|
|
2121
|
+
private readonly injectedFormDefinition = inject<FormDefinition | null>(RXAP_FORM_DEFINITION, { optional: true }) ?? null;
|
|
2122
|
+
private readonly injectedContext = inject(RXAP_FORM_CONTEXT, { optional: true }) ?? null;
|
|
2123
|
+
private readonly injectedInitial = inject<T | null>(RXAP_FORM_INITIAL_STATE, { optional: true }) ?? null;
|
|
2124
|
+
|
|
2102
2125
|
public override form!: RxapFormGroup<T>;
|
|
2103
2126
|
|
|
2104
|
-
public readonly initial =
|
|
2127
|
+
public readonly initial = input<T | null>(null);
|
|
2128
|
+
|
|
2129
|
+
public readonly context = input<unknown | null>(null);
|
|
2130
|
+
|
|
2131
|
+
/**
|
|
2132
|
+
* The initial value: the input value or, as fallback, the value provided by the RXAP_FORM_INITIAL_STATE token
|
|
2133
|
+
*/
|
|
2134
|
+
protected readonly currentInitial = computed<T | null>(() => {
|
|
2135
|
+
const initial = this.initial();
|
|
2136
|
+
if (initial) {
|
|
2137
|
+
return initial;
|
|
2138
|
+
}
|
|
2139
|
+
const injected = this.injectedInitial;
|
|
2140
|
+
return injected && typeof injected === 'object' && !Array.isArray(injected) ? injected : null;
|
|
2141
|
+
});
|
|
2105
2142
|
|
|
2106
|
-
|
|
2143
|
+
/**
|
|
2144
|
+
* The context: the input value or, as fallback, the value provided by the RXAP_FORM_CONTEXT token
|
|
2145
|
+
*/
|
|
2146
|
+
protected readonly currentContext = computed<unknown | null>(() => this.context() ?? this.injectedContext);
|
|
2107
2147
|
|
|
2108
2148
|
/**
|
|
2109
2149
|
* Emits when the submit method is executed without errors. The result of the
|
|
@@ -2112,156 +2152,86 @@ export class FormDirective<T = any>
|
|
|
2112
2152
|
* If no submit method is defined then emit after the submit button
|
|
2113
2153
|
* is clicked.
|
|
2114
2154
|
*/
|
|
2115
|
-
|
|
2116
|
-
public rxapSubmit = new EventEmitter();
|
|
2117
|
-
|
|
2118
|
-
@Output()
|
|
2119
|
-
public invalidSubmit = new EventEmitter<Record<string, any>>();
|
|
2120
|
-
|
|
2121
|
-
// eslint-disable-next-line @angular-eslint/no-output-rename
|
|
2122
|
-
@Output('submitSuccessful')
|
|
2123
|
-
public submitSuccessful$ = new EventEmitter();
|
|
2124
|
-
|
|
2125
|
-
@HostBinding('class.rxap-submitting')
|
|
2126
|
-
public get submitting(): boolean {
|
|
2127
|
-
return this.submitting$.value;
|
|
2128
|
-
}
|
|
2155
|
+
public readonly rxapSubmit = output<any>();
|
|
2129
2156
|
|
|
2130
|
-
|
|
2131
|
-
public get submitError(): Error | null {
|
|
2132
|
-
return this.submitError$.value;
|
|
2133
|
-
}
|
|
2157
|
+
public readonly invalidSubmit = output<Record<string, any>>();
|
|
2134
2158
|
|
|
2135
|
-
|
|
2136
|
-
public get loading(): boolean {
|
|
2137
|
-
return this.loading$.value;
|
|
2138
|
-
}
|
|
2159
|
+
public readonly submitSuccessful$ = output<any>({ alias: 'submitSuccessful' });
|
|
2139
2160
|
|
|
2140
|
-
|
|
2141
|
-
public
|
|
2142
|
-
|
|
2143
|
-
|
|
2161
|
+
public readonly submitting$ = new ToggleSubject();
|
|
2162
|
+
public readonly submitError$ = new BehaviorSubject<Error | null>(null);
|
|
2163
|
+
public readonly loading$ = new ToggleSubject();
|
|
2164
|
+
public readonly loaded$ = new ToggleSubject();
|
|
2165
|
+
public readonly loadingError$ = new BehaviorSubject<Error | null>(null);
|
|
2144
2166
|
|
|
2145
|
-
|
|
2146
|
-
public
|
|
2147
|
-
|
|
2148
|
-
}
|
|
2167
|
+
public readonly submitting = toSignal(this.submitting$, { initialValue: false });
|
|
2168
|
+
public readonly submitError = toSignal(this.submitError$, { initialValue: null });
|
|
2169
|
+
public readonly loading = toSignal(this.loading$, { initialValue: false });
|
|
2170
|
+
public readonly loaded = toSignal(this.loaded$, { initialValue: false });
|
|
2171
|
+
public readonly loadingError = toSignal(this.loadingError$, { initialValue: null });
|
|
2149
2172
|
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
}
|
|
2156
|
-
}
|
|
2173
|
+
/**
|
|
2174
|
+
* The form definition instance. Overrides the form definition provided by the
|
|
2175
|
+
* RXAP_FORM_DEFINITION token or the RXAP_FORM_DEFINITION_BUILDER
|
|
2176
|
+
*/
|
|
2177
|
+
public readonly useFormDefinition = input<FormDefinition<T> | ''>('', { alias: 'rxapForm' });
|
|
2157
2178
|
|
|
2158
2179
|
public get formDefinition(): FormDefinition<T> {
|
|
2159
2180
|
return this._formDefinition;
|
|
2160
2181
|
}
|
|
2161
2182
|
|
|
2162
|
-
public readonly submitting$ = new ToggleSubject();
|
|
2163
|
-
public readonly submitError$ = new BehaviorSubject<Error | null>(null);
|
|
2164
|
-
public readonly loading$ = new ToggleSubject();
|
|
2165
|
-
public readonly loaded$ = new ToggleSubject();
|
|
2166
|
-
public readonly loadingError$ = new BehaviorSubject<Error | null>(null);
|
|
2167
|
-
|
|
2168
2183
|
protected _formDefinition!: FormDefinition<T>;
|
|
2169
2184
|
|
|
2170
|
-
|
|
2171
|
-
public submitMethod: FormSubmitMethod<any> | null = null;
|
|
2185
|
+
public readonly submitMethod = input<FormSubmitMethod<any> | null>(null);
|
|
2172
2186
|
|
|
2173
|
-
|
|
2174
|
-
public loadMethod: FormLoadMethod | null = null;
|
|
2187
|
+
public readonly loadMethod = input<FormLoadMethod | null>(null);
|
|
2175
2188
|
|
|
2176
|
-
|
|
2177
|
-
public loadFailedMethod: FormLoadFailedMethod | null = null;
|
|
2189
|
+
public readonly loadFailedMethod = input<FormLoadFailedMethod | null>(null);
|
|
2178
2190
|
|
|
2179
|
-
|
|
2180
|
-
public loadSuccessfulMethod: FormLoadSuccessfulMethod | null = null;
|
|
2191
|
+
public readonly loadSuccessfulMethod = input<FormLoadSuccessfulMethod | null>(null);
|
|
2181
2192
|
|
|
2182
|
-
|
|
2183
|
-
public submitFailedMethod: FormSubmitFailedMethod | null = null;
|
|
2193
|
+
public readonly submitFailedMethod = input<FormSubmitFailedMethod | null>(null);
|
|
2184
2194
|
|
|
2185
|
-
|
|
2186
|
-
|
|
2195
|
+
public readonly submitSuccessfulMethod = input<FormSubmitSuccessfulMethod | null>(null);
|
|
2196
|
+
|
|
2197
|
+
// the input value has precedence over the value provided by the injection token
|
|
2198
|
+
protected readonly currentSubmitMethod = computed(() => this.submitMethod() ?? this.injectedSubmitMethod);
|
|
2199
|
+
protected readonly currentLoadMethod = computed(() => this.loadMethod() ?? this.injectedLoadMethod);
|
|
2200
|
+
protected readonly currentLoadFailedMethod = computed(() => this.loadFailedMethod() ?? this.injectedLoadFailedMethod);
|
|
2201
|
+
protected readonly currentLoadSuccessfulMethod = computed(() => this.loadSuccessfulMethod() ?? this.injectedLoadSuccessfulMethod);
|
|
2202
|
+
protected readonly currentSubmitFailedMethod = computed(() => this.submitFailedMethod() ?? this.injectedSubmitFailedMethod);
|
|
2203
|
+
protected readonly currentSubmitSuccessfulMethod = computed(() => this.submitSuccessfulMethod() ?? this.injectedSubmitSuccessfulMethod);
|
|
2187
2204
|
|
|
2188
2205
|
private _autoSubmitSubscription = new Subscription();
|
|
2189
2206
|
|
|
2190
|
-
constructor(
|
|
2191
|
-
@Inject(ChangeDetectorRef) public readonly cdr: ChangeDetectorRef,
|
|
2192
|
-
@Optional()
|
|
2193
|
-
@Inject(RXAP_FORM_DEFINITION)
|
|
2194
|
-
formDefinition: FormDefinition | null = null,
|
|
2195
|
-
// skip self, bc the token is set to null
|
|
2196
|
-
@SkipSelf()
|
|
2197
|
-
@Optional()
|
|
2198
|
-
@Inject(RXAP_FORM_SUBMIT_METHOD)
|
|
2199
|
-
submitMethod: FormSubmitMethod<any> | null = null,
|
|
2200
|
-
// skip self, bc the token is set to null
|
|
2201
|
-
@SkipSelf()
|
|
2202
|
-
@Optional()
|
|
2203
|
-
@Inject(RXAP_FORM_LOAD_METHOD)
|
|
2204
|
-
loadMethod: FormLoadMethod | null = null,
|
|
2205
|
-
// skip self, bc the token is set to null
|
|
2206
|
-
@SkipSelf()
|
|
2207
|
-
@Optional()
|
|
2208
|
-
@Inject(RXAP_FORM_LOAD_FAILED_METHOD)
|
|
2209
|
-
loadFailedMethod: FormLoadFailedMethod | null = null,
|
|
2210
|
-
// skip self, bc the token is set to null
|
|
2211
|
-
@SkipSelf()
|
|
2212
|
-
@Optional()
|
|
2213
|
-
@Inject(RXAP_FORM_LOAD_SUCCESSFUL_METHOD)
|
|
2214
|
-
loadSuccessfulMethod: FormLoadSuccessfulMethod | null = null,
|
|
2215
|
-
// skip self, bc the token is set to null
|
|
2216
|
-
@SkipSelf()
|
|
2217
|
-
@Optional()
|
|
2218
|
-
@Inject(RXAP_FORM_SUBMIT_FAILED_METHOD)
|
|
2219
|
-
submitFailedMethod: FormSubmitFailedMethod | null = null,
|
|
2220
|
-
// skip self, bc the token is set to null
|
|
2221
|
-
@SkipSelf()
|
|
2222
|
-
@Optional()
|
|
2223
|
-
@Inject(RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD)
|
|
2224
|
-
submitSuccessfulMethod: FormSubmitSuccessfulMethod | null = null,
|
|
2225
|
-
// skip self, bc the token is set to null
|
|
2226
|
-
@SkipSelf()
|
|
2227
|
-
@Optional()
|
|
2228
|
-
@Inject(RXAP_FORM_DEFINITION_BUILDER)
|
|
2229
|
-
protected readonly formDefinitionBuilder: RxapFormBuilder | null = null,
|
|
2230
|
-
@Optional()
|
|
2231
|
-
@Inject(LoadingIndicatorService)
|
|
2232
|
-
protected readonly loadingIndicatorService: LoadingIndicatorService | null = null,
|
|
2233
|
-
@Optional()
|
|
2234
|
-
@Inject(RXAP_FORM_CONTEXT)
|
|
2235
|
-
context: unknown = null,
|
|
2236
|
-
@Optional()
|
|
2237
|
-
@Inject(RXAP_FORM_INITIAL_STATE)
|
|
2238
|
-
initial: T | null = null,
|
|
2239
|
-
) {
|
|
2207
|
+
constructor() {
|
|
2240
2208
|
super([], []);
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
this.loadSuccessfulMethod = loadSuccessfulMethod ?? this.loadSuccessfulMethod;
|
|
2245
|
-
this.submitFailedMethod = submitFailedMethod ?? this.submitFailedMethod;
|
|
2246
|
-
this.submitSuccessfulMethod = submitSuccessfulMethod ?? this.submitSuccessfulMethod;
|
|
2247
|
-
if (!formDefinition && formDefinitionBuilder) {
|
|
2248
|
-
formDefinition = formDefinitionBuilder.build<FormDefinition>();
|
|
2209
|
+
let formDefinition = this.injectedFormDefinition;
|
|
2210
|
+
if (!formDefinition && this.formDefinitionBuilder) {
|
|
2211
|
+
formDefinition = this.formDefinitionBuilder.build<FormDefinition>();
|
|
2249
2212
|
}
|
|
2250
2213
|
if (formDefinition) {
|
|
2251
|
-
this._formDefinition = formDefinition;
|
|
2252
|
-
this.form = formDefinition.rxapFormGroup;
|
|
2214
|
+
this._formDefinition = formDefinition as FormDefinition<T>;
|
|
2215
|
+
this.form = formDefinition.rxapFormGroup as RxapFormGroup<T>;
|
|
2253
2216
|
}
|
|
2254
2217
|
this.loadingIndicatorService?.attachLoading(this.loading$);
|
|
2255
2218
|
this.loadingIndicatorService?.attachLoading(this.submitting$);
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2219
|
+
}
|
|
2220
|
+
|
|
2221
|
+
/**
|
|
2222
|
+
* Applies the form definition passed with the rxapForm input
|
|
2223
|
+
*/
|
|
2224
|
+
private applyFormDefinitionInput() {
|
|
2225
|
+
const value = this.useFormDefinition();
|
|
2226
|
+
if (value) {
|
|
2227
|
+
this._formDefinition = value as any;
|
|
2228
|
+
this.form = value.rxapFormGroup;
|
|
2261
2229
|
}
|
|
2262
2230
|
}
|
|
2263
2231
|
|
|
2264
2232
|
public override ngOnChanges(changes: SimpleChanges) {
|
|
2233
|
+
// the form must be set before the FormGroupDirective validates its presence
|
|
2234
|
+
this.applyFormDefinitionInput();
|
|
2265
2235
|
super.ngOnChanges(changes);
|
|
2266
2236
|
|
|
2267
2237
|
const formChange = changes['form'];
|
|
@@ -2272,6 +2242,7 @@ export class FormDirective<T = any>
|
|
|
2272
2242
|
}
|
|
2273
2243
|
|
|
2274
2244
|
public ngOnInit() {
|
|
2245
|
+
this.applyFormDefinitionInput();
|
|
2275
2246
|
if (!this._formDefinition) {
|
|
2276
2247
|
// TODO : replace with rxap error
|
|
2277
2248
|
throw new Error('The form definition instance is not defined');
|
|
@@ -2399,18 +2370,19 @@ export class FormDirective<T = any>
|
|
|
2399
2370
|
}
|
|
2400
2371
|
|
|
2401
2372
|
protected loadInitialState(form: RxapFormGroup): void {
|
|
2402
|
-
const initial = this.
|
|
2403
|
-
if (initial
|
|
2373
|
+
const initial = this.currentInitial();
|
|
2374
|
+
if (initial) {
|
|
2404
2375
|
if (isDevMode()) {
|
|
2405
2376
|
console.log('use the value from input initial');
|
|
2406
2377
|
}
|
|
2407
2378
|
form.patchValue(initial, { setInitialValue: true });
|
|
2408
2379
|
} else {
|
|
2409
|
-
|
|
2380
|
+
const loadMethod = this.currentLoadMethod();
|
|
2381
|
+
if (loadMethod) {
|
|
2410
2382
|
this.loading$.enable();
|
|
2411
2383
|
|
|
2412
2384
|
try {
|
|
2413
|
-
const resultOrPromise =
|
|
2385
|
+
const resultOrPromise = loadMethod.call({ context: this.currentContext(), initial: this.currentInitial() });
|
|
2414
2386
|
if (isPromise(resultOrPromise)) {
|
|
2415
2387
|
resultOrPromise
|
|
2416
2388
|
.then((value) => {
|
|
@@ -2424,7 +2396,6 @@ export class FormDirective<T = any>
|
|
|
2424
2396
|
})
|
|
2425
2397
|
.finally(() => {
|
|
2426
2398
|
this.loading$.disable();
|
|
2427
|
-
this.cdr.detectChanges();
|
|
2428
2399
|
});
|
|
2429
2400
|
} else if (isObject(resultOrPromise)) {
|
|
2430
2401
|
form.patchValue(resultOrPromise, { setInitialValue: true });
|
|
@@ -2450,8 +2421,9 @@ export class FormDirective<T = any>
|
|
|
2450
2421
|
}
|
|
2451
2422
|
|
|
2452
2423
|
protected loadSuccessful(value: any) {
|
|
2453
|
-
|
|
2454
|
-
|
|
2424
|
+
const loadSuccessfulMethod = this.currentLoadSuccessfulMethod();
|
|
2425
|
+
if (loadSuccessfulMethod) {
|
|
2426
|
+
loadSuccessfulMethod.call(value);
|
|
2455
2427
|
} else if (isDevMode()) {
|
|
2456
2428
|
console.warn(
|
|
2457
2429
|
'The load successful is not defined for: ' + this.form.controlId,
|
|
@@ -2462,8 +2434,9 @@ export class FormDirective<T = any>
|
|
|
2462
2434
|
protected loadFailed(error: Error) {
|
|
2463
2435
|
console.debug('Load Error:', error);
|
|
2464
2436
|
console.error('Load Error:', error.message);
|
|
2465
|
-
|
|
2466
|
-
|
|
2437
|
+
const loadFailedMethod = this.currentLoadFailedMethod();
|
|
2438
|
+
if (loadFailedMethod) {
|
|
2439
|
+
loadFailedMethod?.call(error);
|
|
2467
2440
|
} else if (isDevMode()) {
|
|
2468
2441
|
console.warn('The form loading failed for: ' + this.form.controlId);
|
|
2469
2442
|
}
|
|
@@ -2485,12 +2458,13 @@ export class FormDirective<T = any>
|
|
|
2485
2458
|
|
|
2486
2459
|
protected submit() {
|
|
2487
2460
|
const value = this.getSubmitValue();
|
|
2488
|
-
|
|
2461
|
+
const submitMethod = this.currentSubmitMethod();
|
|
2462
|
+
if (submitMethod) {
|
|
2489
2463
|
Reflect.set(this, 'submitted', false);
|
|
2490
2464
|
this.submitting$.enable();
|
|
2491
2465
|
this.submitError$.next(null);
|
|
2492
2466
|
try {
|
|
2493
|
-
const resultOrPromise =
|
|
2467
|
+
const resultOrPromise = submitMethod.call(value, this.currentContext(), this.currentInitial());
|
|
2494
2468
|
if (isPromise(resultOrPromise)) {
|
|
2495
2469
|
resultOrPromise
|
|
2496
2470
|
.then((result) => {
|
|
@@ -2504,7 +2478,6 @@ export class FormDirective<T = any>
|
|
|
2504
2478
|
})
|
|
2505
2479
|
.finally(() => {
|
|
2506
2480
|
this.submitting$.disable();
|
|
2507
|
-
this.cdr.detectChanges();
|
|
2508
2481
|
});
|
|
2509
2482
|
} else {
|
|
2510
2483
|
Reflect.set(this, 'submitted', true);
|
|
@@ -2532,8 +2505,9 @@ export class FormDirective<T = any>
|
|
|
2532
2505
|
protected submitFailed(error: Error) {
|
|
2533
2506
|
console.debug('Submit Error:', error);
|
|
2534
2507
|
console.error('Submit Error:', error.message);
|
|
2535
|
-
|
|
2536
|
-
|
|
2508
|
+
const submitFailedMethod = this.currentSubmitFailedMethod();
|
|
2509
|
+
if (submitFailedMethod) {
|
|
2510
|
+
submitFailedMethod.call(error);
|
|
2537
2511
|
} else if (isDevMode()) {
|
|
2538
2512
|
console.warn(
|
|
2539
2513
|
'The form submit failed method is not defined for: ' +
|
|
@@ -2543,9 +2517,10 @@ export class FormDirective<T = any>
|
|
|
2543
2517
|
}
|
|
2544
2518
|
|
|
2545
2519
|
protected submitSuccessful(value: any) {
|
|
2546
|
-
this.submitSuccessful$.
|
|
2547
|
-
|
|
2548
|
-
|
|
2520
|
+
this.submitSuccessful$.emit(value);
|
|
2521
|
+
const submitSuccessfulMethod = this.currentSubmitSuccessfulMethod();
|
|
2522
|
+
if (submitSuccessfulMethod) {
|
|
2523
|
+
submitSuccessfulMethod.call(value);
|
|
2549
2524
|
} else if (isDevMode()) {
|
|
2550
2525
|
console.warn(
|
|
2551
2526
|
'The form submit successful method is not defined for: ' +
|