@rxap/forms 19.0.5-dev.0 → 19.1.0-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/compodoc/changelog.html +5 -0
- package/compodoc/directives/FormSubmitDirective.html +225 -170
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +1278 -1148
- 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 +5 -5
- 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 +6 -6
- package/docs/html/classes/FormDirective.html +15 -15
- package/docs/html/classes/FormGroupNameDirective.html +6 -6
- package/docs/html/classes/FormLoadedDirective.html +4 -4
- package/docs/html/classes/FormLoadingDirective.html +4 -4
- package/docs/html/classes/FormLoadingErrorDirective.html +4 -4
- package/docs/html/classes/FormResetDirective.html +2 -2
- package/docs/html/classes/FormSubmitDirective.html +8 -5
- package/docs/html/classes/FormSubmitFailedDirective.html +4 -4
- package/docs/html/classes/FormSubmitInvalidDirective.html +4 -4
- package/docs/html/classes/FormSubmitSuccessfulDirective.html +4 -4
- package/docs/html/classes/FormSubmittingDirective.html +4 -4
- package/docs/html/classes/ParentControlContainerDirective.html +2 -2
- package/docs/html/classes/RxapFormArray.html +34 -34
- 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/classes/RxapFormsModule.html +2 -2
- 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 +7 -7
- package/docs/markdown/classes/FormControlMarkDirtyDirective.md +4 -4
- package/docs/markdown/classes/FormControlMarkPristineDirective.md +4 -4
- package/docs/markdown/classes/FormControlMarkTouchedDirective.md +4 -4
- package/docs/markdown/classes/FormControlMarkUntouchedDirective.md +4 -4
- package/docs/markdown/classes/FormControlNameDirective.md +5 -5
- package/docs/markdown/classes/FormDirective.md +42 -42
- package/docs/markdown/classes/FormGroupNameDirective.md +5 -5
- package/docs/markdown/classes/FormLoadedDirective.md +5 -5
- package/docs/markdown/classes/FormLoadingDirective.md +5 -5
- package/docs/markdown/classes/FormLoadingErrorDirective.md +5 -5
- package/docs/markdown/classes/FormResetDirective.md +8 -8
- package/docs/markdown/classes/FormSubmitDirective.md +43 -31
- package/docs/markdown/classes/FormSubmitFailedDirective.md +5 -5
- package/docs/markdown/classes/FormSubmitInvalidDirective.md +5 -5
- package/docs/markdown/classes/FormSubmitSuccessfulDirective.md +5 -5
- package/docs/markdown/classes/FormSubmittingDirective.md +5 -5
- 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 +50 -50
- package/docs/markdown/classes/RxapFormGroup.md +74 -74
- package/docs/markdown/classes/RxapFormsModule.md +2 -2
- 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 -2
- 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 +9 -9
- 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 +6 -6
- package/docs/wiki/Class.FormControlMarkDirtyDirective.md +3 -3
- package/docs/wiki/Class.FormControlMarkPristineDirective.md +3 -3
- package/docs/wiki/Class.FormControlMarkTouchedDirective.md +3 -3
- package/docs/wiki/Class.FormControlMarkUntouchedDirective.md +3 -3
- package/docs/wiki/Class.FormControlNameDirective.md +4 -4
- package/docs/wiki/Class.FormDirective.md +41 -41
- package/docs/wiki/Class.FormGroupNameDirective.md +4 -4
- package/docs/wiki/Class.FormLoadedDirective.md +4 -4
- package/docs/wiki/Class.FormLoadingDirective.md +4 -4
- package/docs/wiki/Class.FormLoadingErrorDirective.md +4 -4
- package/docs/wiki/Class.FormResetDirective.md +7 -7
- package/docs/wiki/Class.FormSubmitDirective.md +42 -30
- package/docs/wiki/Class.FormSubmitFailedDirective.md +4 -4
- package/docs/wiki/Class.FormSubmitInvalidDirective.md +4 -4
- package/docs/wiki/Class.FormSubmitSuccessfulDirective.md +4 -4
- package/docs/wiki/Class.FormSubmittingDirective.md +4 -4
- 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 +49 -49
- package/docs/wiki/Class.RxapFormGroup.md +73 -73
- package/docs/wiki/Class.RxapFormsModule.md +1 -1
- 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 +8 -8
- 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/globals.md +1 -1
- package/fesm2022/rxap-forms.mjs +18 -23
- package/fesm2022/rxap-forms.mjs.map +1 -1
- package/lib/directives/form-submit.directive.d.ts +9 -7
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [19.1.0-dev.0](https://gitlab.com/rxap/packages/compare/@rxap/forms@19.0.5-dev.0...@rxap/forms@19.1.0-dev.0) (2025-08-12)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **forms:** enhance form-submit directive with reactive inputs and computed bindings ([f226593](https://gitlab.com/rxap/packages/commit/f22659321d1888c655929b4958f3528c3ed8660d))
|
|
11
|
+
|
|
6
12
|
## [19.0.5-dev.0](https://gitlab.com/rxap/packages/compare/@rxap/forms@19.0.4...@rxap/forms@19.0.5-dev.0) (2025-07-23)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
package/compodoc/changelog.html
CHANGED
|
@@ -85,6 +85,11 @@
|
|
|
85
85
|
<h1>Change Log</h1>
|
|
86
86
|
<p>All notable changes to this project will be documented in this file.
|
|
87
87
|
See <a href="https://conventionalcommits.org">Conventional Commits</a> for commit guidelines.</p>
|
|
88
|
+
<h1><a href="https://gitlab.com/rxap/packages/compare/@rxap/forms@19.0.5-dev.0...@rxap/forms@19.1.0-dev.0">19.1.0-dev.0</a> (2025-08-12)</h1>
|
|
89
|
+
<h3>Features</h3>
|
|
90
|
+
<ul>
|
|
91
|
+
<li><strong>forms:</strong> enhance form-submit directive with reactive inputs and computed bindings (<a href="https://gitlab.com/rxap/packages/commit/f22659321d1888c655929b4958f3528c3ed8660d">f226593</a>)</li>
|
|
92
|
+
</ul>
|
|
88
93
|
<h2><a href="https://gitlab.com/rxap/packages/compare/@rxap/forms@19.0.4...@rxap/forms@19.0.5-dev.0">19.0.5-dev.0</a> (2025-07-23)</h2>
|
|
89
94
|
<h3>Bug Fixes</h3>
|
|
90
95
|
<ul>
|
|
@@ -150,6 +150,10 @@
|
|
|
150
150
|
</tr>
|
|
151
151
|
|
|
152
152
|
|
|
153
|
+
<tr>
|
|
154
|
+
<td class="col-md-3">exportAs</td>
|
|
155
|
+
<td class="col-md-9"><code>rxapFormSubmit</code></td>
|
|
156
|
+
</tr>
|
|
153
157
|
|
|
154
158
|
</tbody>
|
|
155
159
|
</table>
|
|
@@ -159,18 +163,37 @@
|
|
|
159
163
|
<h3 id="index">Index</h3>
|
|
160
164
|
<table class="table table-sm table-bordered index-table">
|
|
161
165
|
<tbody>
|
|
162
|
-
|
|
163
166
|
<tr>
|
|
164
167
|
<td class="col-md-4">
|
|
165
|
-
<h6><b>
|
|
168
|
+
<h6><b>Properties</b></h6>
|
|
166
169
|
</td>
|
|
167
170
|
</tr>
|
|
168
171
|
<tr>
|
|
169
172
|
<td class="col-md-4">
|
|
170
173
|
<ul class="index-list">
|
|
171
174
|
<li>
|
|
172
|
-
<span class="modifier">
|
|
173
|
-
<a href="#
|
|
175
|
+
<span class="modifier">Public</span>
|
|
176
|
+
<a href="#afterSubmit" >afterSubmit</a>
|
|
177
|
+
</li>
|
|
178
|
+
<li>
|
|
179
|
+
<a href="#disabled" >disabled</a>
|
|
180
|
+
</li>
|
|
181
|
+
<li>
|
|
182
|
+
<a href="#disableWhileSubmitting" >disableWhileSubmitting</a>
|
|
183
|
+
</li>
|
|
184
|
+
<li>
|
|
185
|
+
<span class="modifier">Public</span>
|
|
186
|
+
<a href="#navigateAfterSubmit" >navigateAfterSubmit</a>
|
|
187
|
+
</li>
|
|
188
|
+
<li>
|
|
189
|
+
<a href="#resetAfterSubmit" >resetAfterSubmit</a>
|
|
190
|
+
</li>
|
|
191
|
+
<li>
|
|
192
|
+
<a href="#submitting" >submitting</a>
|
|
193
|
+
</li>
|
|
194
|
+
<li>
|
|
195
|
+
<span class="modifier">Public</span>
|
|
196
|
+
<a href="#type" >type</a>
|
|
174
197
|
</li>
|
|
175
198
|
</ul>
|
|
176
199
|
</td>
|
|
@@ -178,20 +201,15 @@
|
|
|
178
201
|
|
|
179
202
|
<tr>
|
|
180
203
|
<td class="col-md-4">
|
|
181
|
-
<h6><b>
|
|
204
|
+
<h6><b>Methods</b></h6>
|
|
182
205
|
</td>
|
|
183
206
|
</tr>
|
|
184
207
|
<tr>
|
|
185
208
|
<td class="col-md-4">
|
|
186
209
|
<ul class="index-list">
|
|
187
210
|
<li>
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
<li>
|
|
191
|
-
<a href="#resetAfterSubmit" >resetAfterSubmit</a>
|
|
192
|
-
</li>
|
|
193
|
-
<li>
|
|
194
|
-
<a href="#type" >type</a>
|
|
211
|
+
<span class="modifier">Protected</span>
|
|
212
|
+
<a href="#execute" >execute</a>
|
|
195
213
|
</li>
|
|
196
214
|
</ul>
|
|
197
215
|
</td>
|
|
@@ -199,14 +217,14 @@
|
|
|
199
217
|
|
|
200
218
|
<tr>
|
|
201
219
|
<td class="col-md-4">
|
|
202
|
-
<h6><b>
|
|
220
|
+
<h6><b>Inputs</b></h6>
|
|
203
221
|
</td>
|
|
204
222
|
</tr>
|
|
205
223
|
<tr>
|
|
206
224
|
<td class="col-md-4">
|
|
207
225
|
<ul class="index-list">
|
|
208
226
|
<li>
|
|
209
|
-
<a href="#
|
|
227
|
+
<a href="#disableWhileSubmitting" >disableWhileSubmitting</a>
|
|
210
228
|
</li>
|
|
211
229
|
</ul>
|
|
212
230
|
</td>
|
|
@@ -214,20 +232,7 @@
|
|
|
214
232
|
|
|
215
233
|
|
|
216
234
|
|
|
217
|
-
|
|
218
|
-
<td class="col-md-4">
|
|
219
|
-
<h6><b>Accessors</b></h6>
|
|
220
|
-
</td>
|
|
221
|
-
</tr>
|
|
222
|
-
<tr>
|
|
223
|
-
<td class="col-md-4">
|
|
224
|
-
<ul class="index-list">
|
|
225
|
-
<li>
|
|
226
|
-
<a href="#resetAfterSubmit" >resetAfterSubmit</a>
|
|
227
|
-
</li>
|
|
228
|
-
</ul>
|
|
229
|
-
</td>
|
|
230
|
-
</tr>
|
|
235
|
+
|
|
231
236
|
</tbody>
|
|
232
237
|
</table>
|
|
233
238
|
</section>
|
|
@@ -299,95 +304,24 @@
|
|
|
299
304
|
<tbody>
|
|
300
305
|
<tr>
|
|
301
306
|
<td class="col-md-4">
|
|
302
|
-
<a name="
|
|
303
|
-
<b>
|
|
307
|
+
<a name="disableWhileSubmitting"></a>
|
|
308
|
+
<b>disableWhileSubmitting</b>
|
|
304
309
|
</td>
|
|
305
310
|
</tr>
|
|
306
311
|
<tr>
|
|
307
312
|
<td class="col-md-4">
|
|
308
|
-
<i>
|
|
309
|
-
|
|
313
|
+
<i>Default value : </i><code>true</code>
|
|
310
314
|
</td>
|
|
311
315
|
</tr>
|
|
312
316
|
<tr>
|
|
313
317
|
<td class="col-md-2" colspan="2">
|
|
314
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
315
|
-
</td>
|
|
316
|
-
</tr>
|
|
317
|
-
</tbody>
|
|
318
|
-
</table>
|
|
319
|
-
<table class="table table-sm table-bordered">
|
|
320
|
-
<tbody>
|
|
321
|
-
<tr>
|
|
322
|
-
<td class="col-md-4">
|
|
323
|
-
<a name="resetAfterSubmit"></a>
|
|
324
|
-
<b>resetAfterSubmit</b>
|
|
325
|
-
</td>
|
|
326
|
-
</tr>
|
|
327
|
-
<tr>
|
|
328
|
-
<td class="col-md-4">
|
|
329
|
-
<i>Type : </i> <code>boolean | string</code>
|
|
330
|
-
|
|
331
|
-
</td>
|
|
332
|
-
</tr>
|
|
333
|
-
<tr>
|
|
334
|
-
<td class="col-md-2" colspan="2">
|
|
335
|
-
<div class="io-line">Defined in <a href="" data-line="40" class="link-to-prism">src/lib/directives/form-submit.directive.ts:40</a></div>
|
|
336
|
-
</td>
|
|
337
|
-
</tr>
|
|
338
|
-
</tbody>
|
|
339
|
-
</table>
|
|
340
|
-
<table class="table table-sm table-bordered">
|
|
341
|
-
<tbody>
|
|
342
|
-
<tr>
|
|
343
|
-
<td class="col-md-4">
|
|
344
|
-
<a name="type"></a>
|
|
345
|
-
<b>type</b>
|
|
346
|
-
</td>
|
|
347
|
-
</tr>
|
|
348
|
-
<tr>
|
|
349
|
-
<td class="col-md-4">
|
|
350
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
351
|
-
|
|
352
|
-
</td>
|
|
353
|
-
</tr>
|
|
354
|
-
<tr>
|
|
355
|
-
<td class="col-md-4">
|
|
356
|
-
<i>Default value : </i><code>'button'</code>
|
|
357
|
-
</td>
|
|
358
|
-
</tr>
|
|
359
|
-
<tr>
|
|
360
|
-
<td class="col-md-2" colspan="2">
|
|
361
|
-
<div class="io-line">Defined in <a href="" data-line="37" class="link-to-prism">src/lib/directives/form-submit.directive.ts:37</a></div>
|
|
318
|
+
<div class="io-line">Defined in <a href="" data-line="46" class="link-to-prism">src/lib/directives/form-submit.directive.ts:46</a></div>
|
|
362
319
|
</td>
|
|
363
320
|
</tr>
|
|
364
321
|
</tbody>
|
|
365
322
|
</table>
|
|
366
323
|
</section>
|
|
367
|
-
<section data-compodoc="block-outputs">
|
|
368
|
-
<h3 id="outputs">Outputs</h3>
|
|
369
|
-
<table class="table table-sm table-bordered">
|
|
370
|
-
<tbody>
|
|
371
|
-
<tr>
|
|
372
|
-
<td class="col-md-4">
|
|
373
|
-
<a name="afterSubmit"></a>
|
|
374
|
-
<b>afterSubmit</b>
|
|
375
|
-
</td>
|
|
376
|
-
</tr>
|
|
377
|
-
<tr>
|
|
378
|
-
<td class="col-md-4">
|
|
379
|
-
<i>Type : </i> <code>EventEmitter</code>
|
|
380
324
|
|
|
381
|
-
</td>
|
|
382
|
-
</tr>
|
|
383
|
-
<tr>
|
|
384
|
-
<td class="col-md-2" colspan="2">
|
|
385
|
-
<div class="io-line">Defined in <a href="" data-line="48" class="link-to-prism">src/lib/directives/form-submit.directive.ts:48</a></div>
|
|
386
|
-
</td>
|
|
387
|
-
</tr>
|
|
388
|
-
</tbody>
|
|
389
|
-
</table>
|
|
390
|
-
</section>
|
|
391
325
|
|
|
392
326
|
|
|
393
327
|
<section data-compodoc="block-methods">
|
|
@@ -435,86 +369,206 @@
|
|
|
435
369
|
</tbody>
|
|
436
370
|
</table>
|
|
437
371
|
</section>
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
<h3 id="
|
|
441
|
-
|
|
372
|
+
<section data-compodoc="block-properties">
|
|
373
|
+
|
|
374
|
+
<h3 id="inputs">
|
|
375
|
+
Properties
|
|
442
376
|
</h3>
|
|
443
|
-
|
|
444
|
-
|
|
377
|
+
<table class="table table-sm table-bordered">
|
|
378
|
+
<tbody>
|
|
379
|
+
<tr>
|
|
380
|
+
<td class="col-md-4">
|
|
381
|
+
<a name="afterSubmit"></a>
|
|
382
|
+
<span class="name">
|
|
383
|
+
<span class="modifier">Public</span>
|
|
384
|
+
<span ><b>afterSubmit</b></span>
|
|
385
|
+
<a href="#afterSubmit"><span class="icon ion-ios-link"></span></a>
|
|
386
|
+
</span>
|
|
387
|
+
</td>
|
|
388
|
+
</tr>
|
|
445
389
|
<tr>
|
|
446
390
|
<td class="col-md-4">
|
|
447
|
-
<
|
|
448
|
-
<span class="name"><b>resetAfterSubmit</b><a href="#resetAfterSubmit"><span class="icon ion-ios-link"></span></a></span>
|
|
391
|
+
<i>Default value : </i><code>output<any>()</code>
|
|
449
392
|
</td>
|
|
450
393
|
</tr>
|
|
394
|
+
<tr>
|
|
395
|
+
<td class="col-md-4">
|
|
396
|
+
<div class="io-line">Defined in <a href="" data-line="44" class="link-to-prism">src/lib/directives/form-submit.directive.ts:44</a></div>
|
|
397
|
+
</td>
|
|
398
|
+
</tr>
|
|
451
399
|
|
|
452
400
|
|
|
401
|
+
</tbody>
|
|
402
|
+
</table>
|
|
403
|
+
<table class="table table-sm table-bordered">
|
|
404
|
+
<tbody>
|
|
405
|
+
<tr>
|
|
406
|
+
<td class="col-md-4">
|
|
407
|
+
<a name="disabled"></a>
|
|
408
|
+
<span class="name">
|
|
409
|
+
<span ><b>disabled</b></span>
|
|
410
|
+
<a href="#disabled"><span class="icon ion-ios-link"></span></a>
|
|
411
|
+
</span>
|
|
412
|
+
</td>
|
|
413
|
+
</tr>
|
|
453
414
|
<tr>
|
|
454
415
|
<td class="col-md-4">
|
|
455
|
-
<
|
|
416
|
+
<i>Default value : </i><code>computed(() => this.disableWhileSubmitting() && this.submitting())</code>
|
|
456
417
|
</td>
|
|
457
418
|
</tr>
|
|
458
|
-
<tr>
|
|
459
|
-
<td class="col-md-4">
|
|
460
|
-
<div class="io-line">Defined in <a href="" data-line="40" class="link-to-prism">src/lib/directives/form-submit.directive.ts:40</a></div>
|
|
461
|
-
</td>
|
|
462
|
-
</tr>
|
|
463
419
|
<tr>
|
|
464
420
|
<td class="col-md-4">
|
|
421
|
+
<div class="io-line">Defined in <a href="" data-line="50" class="link-to-prism">src/lib/directives/form-submit.directive.ts:50</a></div>
|
|
422
|
+
</td>
|
|
423
|
+
</tr>
|
|
465
424
|
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
</tr>
|
|
489
|
-
</tbody>
|
|
490
|
-
</table>
|
|
491
|
-
</div>
|
|
492
|
-
<div>
|
|
493
|
-
</div>
|
|
494
|
-
<div class="io-description">
|
|
495
|
-
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
496
|
-
|
|
497
|
-
</div>
|
|
425
|
+
|
|
426
|
+
</tbody>
|
|
427
|
+
</table>
|
|
428
|
+
<table class="table table-sm table-bordered">
|
|
429
|
+
<tbody>
|
|
430
|
+
<tr>
|
|
431
|
+
<td class="col-md-4">
|
|
432
|
+
<a name="disableWhileSubmitting"></a>
|
|
433
|
+
<span class="name">
|
|
434
|
+
<span ><b>disableWhileSubmitting</b></span>
|
|
435
|
+
<a href="#disableWhileSubmitting"><span class="icon ion-ios-link"></span></a>
|
|
436
|
+
</span>
|
|
437
|
+
</td>
|
|
438
|
+
</tr>
|
|
439
|
+
<tr>
|
|
440
|
+
<td class="col-md-4">
|
|
441
|
+
<i>Default value : </i><code>true</code>
|
|
442
|
+
</td>
|
|
443
|
+
</tr>
|
|
444
|
+
<tr>
|
|
445
|
+
<td class="col-md-4">
|
|
446
|
+
<div class="io-line">Defined in <a href="" data-line="46" class="link-to-prism">src/lib/directives/form-submit.directive.ts:46</a></div>
|
|
498
447
|
</td>
|
|
499
448
|
</tr>
|
|
500
|
-
|
|
501
|
-
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
</tbody>
|
|
452
|
+
</table>
|
|
453
|
+
<table class="table table-sm table-bordered">
|
|
454
|
+
<tbody>
|
|
455
|
+
<tr>
|
|
456
|
+
<td class="col-md-4">
|
|
457
|
+
<a name="navigateAfterSubmit"></a>
|
|
458
|
+
<span class="name">
|
|
459
|
+
<span class="modifier">Public</span>
|
|
460
|
+
<span ><b>navigateAfterSubmit</b></span>
|
|
461
|
+
<a href="#navigateAfterSubmit"><span class="icon ion-ios-link"></span></a>
|
|
462
|
+
</span>
|
|
463
|
+
</td>
|
|
464
|
+
</tr>
|
|
465
|
+
<tr>
|
|
466
|
+
<td class="col-md-4">
|
|
467
|
+
<i>Default value : </i><code>input<string[]>()</code>
|
|
468
|
+
</td>
|
|
469
|
+
</tr>
|
|
470
|
+
<tr>
|
|
471
|
+
<td class="col-md-4">
|
|
472
|
+
<div class="io-line">Defined in <a href="" data-line="42" class="link-to-prism">src/lib/directives/form-submit.directive.ts:42</a></div>
|
|
473
|
+
</td>
|
|
474
|
+
</tr>
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
</tbody>
|
|
478
|
+
</table>
|
|
479
|
+
<table class="table table-sm table-bordered">
|
|
480
|
+
<tbody>
|
|
481
|
+
<tr>
|
|
482
|
+
<td class="col-md-4">
|
|
483
|
+
<a name="resetAfterSubmit"></a>
|
|
484
|
+
<span class="name">
|
|
485
|
+
<span ><b>resetAfterSubmit</b></span>
|
|
486
|
+
<a href="#resetAfterSubmit"><span class="icon ion-ios-link"></span></a>
|
|
487
|
+
</span>
|
|
488
|
+
</td>
|
|
489
|
+
</tr>
|
|
490
|
+
<tr>
|
|
491
|
+
<td class="col-md-4">
|
|
492
|
+
<i>Default value : </i><code>input<boolean | '', boolean>(false, { transform: coerceBoolean })</code>
|
|
493
|
+
</td>
|
|
494
|
+
</tr>
|
|
495
|
+
<tr>
|
|
496
|
+
<td class="col-md-4">
|
|
497
|
+
<div class="io-line">Defined in <a href="" data-line="40" class="link-to-prism">src/lib/directives/form-submit.directive.ts:40</a></div>
|
|
498
|
+
</td>
|
|
499
|
+
</tr>
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
</tbody>
|
|
503
|
+
</table>
|
|
504
|
+
<table class="table table-sm table-bordered">
|
|
505
|
+
<tbody>
|
|
506
|
+
<tr>
|
|
507
|
+
<td class="col-md-4">
|
|
508
|
+
<a name="submitting"></a>
|
|
509
|
+
<span class="name">
|
|
510
|
+
<span ><b>submitting</b></span>
|
|
511
|
+
<a href="#submitting"><span class="icon ion-ios-link"></span></a>
|
|
512
|
+
</span>
|
|
513
|
+
</td>
|
|
514
|
+
</tr>
|
|
515
|
+
<tr>
|
|
516
|
+
<td class="col-md-4">
|
|
517
|
+
<i>Default value : </i><code>toSignal(this.formDirective.submitting$, { initialValue: false })</code>
|
|
518
|
+
</td>
|
|
519
|
+
</tr>
|
|
520
|
+
<tr>
|
|
521
|
+
<td class="col-md-4">
|
|
522
|
+
<div class="io-line">Defined in <a href="" data-line="48" class="link-to-prism">src/lib/directives/form-submit.directive.ts:48</a></div>
|
|
523
|
+
</td>
|
|
524
|
+
</tr>
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
</tbody>
|
|
528
|
+
</table>
|
|
529
|
+
<table class="table table-sm table-bordered">
|
|
530
|
+
<tbody>
|
|
531
|
+
<tr>
|
|
532
|
+
<td class="col-md-4">
|
|
533
|
+
<a name="type"></a>
|
|
534
|
+
<span class="name">
|
|
535
|
+
<span class="modifier">Public</span>
|
|
536
|
+
<span ><b>type</b></span>
|
|
537
|
+
<a href="#type"><span class="icon ion-ios-link"></span></a>
|
|
538
|
+
</span>
|
|
539
|
+
</td>
|
|
540
|
+
</tr>
|
|
541
|
+
<tr>
|
|
542
|
+
<td class="col-md-4">
|
|
543
|
+
<i>Default value : </i><code>input<'button' | 'submit' | 'reset'>('button')</code>
|
|
544
|
+
</td>
|
|
545
|
+
</tr>
|
|
546
|
+
<tr>
|
|
547
|
+
<td class="col-md-4">
|
|
548
|
+
<div class="io-line">Defined in <a href="" data-line="38" class="link-to-prism">src/lib/directives/form-submit.directive.ts:38</a></div>
|
|
549
|
+
</td>
|
|
550
|
+
</tr>
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
</tbody>
|
|
554
|
+
</table>
|
|
502
555
|
</section>
|
|
503
556
|
|
|
557
|
+
|
|
504
558
|
</div>
|
|
505
559
|
|
|
506
560
|
|
|
507
561
|
<div class="tab-pane fade tab-source-code" id="source">
|
|
508
562
|
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
563
|
+
computed,
|
|
509
564
|
Directive,
|
|
510
|
-
EventEmitter,
|
|
511
|
-
HostBinding,
|
|
512
565
|
Inject,
|
|
513
|
-
|
|
566
|
+
input,
|
|
514
567
|
OnDestroy,
|
|
515
568
|
Optional,
|
|
516
|
-
|
|
569
|
+
output,
|
|
517
570
|
} from '@angular/core';
|
|
571
|
+
import { toSignal } from '@angular/core/rxjs-interop';
|
|
518
572
|
import { Router } from '@angular/router';
|
|
519
573
|
import { ConfirmClick } from '@rxap/directives';
|
|
520
574
|
import {
|
|
@@ -534,27 +588,27 @@ import { FormDirective } from './form.directive';
|
|
|
534
588
|
host: {
|
|
535
589
|
'(click)': 'onClick()',
|
|
536
590
|
'(confirmed)': 'onConfirm()',
|
|
591
|
+
'[disabled]': 'disabled()',
|
|
592
|
+
'[type]': 'type()',
|
|
537
593
|
},
|
|
538
594
|
standalone: true,
|
|
595
|
+
exportAs: 'rxapFormSubmit',
|
|
539
596
|
})
|
|
540
597
|
export class FormSubmitDirective extends ConfirmClick implements OnDestroy {
|
|
541
598
|
|
|
542
|
-
|
|
543
|
-
@Input()
|
|
544
|
-
public type = 'button';
|
|
599
|
+
public type = input<'button' | 'submit' | 'reset'>('button');
|
|
545
600
|
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
601
|
+
resetAfterSubmit = input<boolean | '', boolean>(false, { transform: coerceBoolean });
|
|
602
|
+
|
|
603
|
+
public navigateAfterSubmit = input<string[]>();
|
|
604
|
+
|
|
605
|
+
public afterSubmit = output<any>();
|
|
550
606
|
|
|
551
|
-
|
|
552
|
-
public navigateAfterSubmit?: string[];
|
|
607
|
+
disableWhileSubmitting = input(true);
|
|
553
608
|
|
|
554
|
-
|
|
555
|
-
public afterSubmit = new EventEmitter();
|
|
609
|
+
submitting = toSignal(this.formDirective.submitting$, { initialValue: false });
|
|
556
610
|
|
|
557
|
-
|
|
611
|
+
disabled = computed(() => this.disableWhileSubmitting() && this.submitting())
|
|
558
612
|
|
|
559
613
|
private subscription?: Subscription;
|
|
560
614
|
|
|
@@ -576,16 +630,17 @@ export class FormSubmitDirective extends ConfirmClick implements OnDestroy {
|
|
|
576
630
|
tap(value => {
|
|
577
631
|
const clonedValue = clone(value);
|
|
578
632
|
this.afterSubmit.emit(clonedValue);
|
|
579
|
-
if (this.
|
|
633
|
+
if (this.resetAfterSubmit()) {
|
|
580
634
|
this.formDirective.reset();
|
|
581
635
|
}
|
|
582
|
-
|
|
636
|
+
const navigateAfterSubmit = this.navigateAfterSubmit();
|
|
637
|
+
if (Array.isArray(navigateAfterSubmit)) {
|
|
583
638
|
|
|
584
639
|
if (!this.router) {
|
|
585
640
|
throw new Error('Could not resolve the router!');
|
|
586
641
|
}
|
|
587
642
|
|
|
588
|
-
return this.router.navigate(
|
|
643
|
+
return this.router.navigate(navigateAfterSubmit);
|
|
589
644
|
}
|
|
590
645
|
return Promise.resolve();
|
|
591
646
|
}),
|