@rxap/forms 19.0.4 → 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 +12 -0
- package/compodoc/changelog.html +10 -0
- package/compodoc/dependencies.html +8 -8
- package/compodoc/directives/FormDirective.html +2 -2
- 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 +20 -25
- package/fesm2022/rxap-forms.mjs.map +1 -1
- package/lib/directives/form-submit.directive.d.ts +9 -7
- package/package.json +18 -18
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **ControlInsertedFn**: (`index`, `controlOrDefinition`) => `void`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/forms/src/lib/model.ts:126](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/forms/src/lib/model.ts:126](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/model.ts#L126)
|
|
8
8
|
|
|
9
9
|
## Parameters
|
|
10
10
|
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> **ControlPath**: (`string` \| `number`)[] \| `string`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/forms/src/lib/types.ts:67](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/forms/src/lib/types.ts:67](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/types.ts#L67)
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **ControlRemovedFn**: (`index`) => `void`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/forms/src/lib/model.ts:130](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/forms/src/lib/model.ts:130](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/model.ts#L130)
|
|
8
8
|
|
|
9
9
|
## Parameters
|
|
10
10
|
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> **ControlState**: `"VALID"` \| `"INVALID"` \| `"PENDING"` \| `"DISABLED"`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/forms/src/lib/types.ts:68](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/forms/src/lib/types.ts:68](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/types.ts#L68)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> **EmitEvent**: `Pick`\<[`ControlOptions`](../wiki/Interface.ControlOptions), `"emitEvent"`\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/forms/src/lib/types.ts:66](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/forms/src/lib/types.ts:66](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/types.ts#L66)
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **ExtractAbstractControl**\<`T`, `U`\>: `T` *extends* [`KeyValueControls`](../wiki/TypeAlias.KeyValueControls)\<`any`\> ? `{ [K in keyof U]: AbstractControl<U[K]> }` : `T`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/forms/src/lib/types.ts:109](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/forms/src/lib/types.ts:109](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/types.ts#L109)
|
|
8
8
|
|
|
9
9
|
## Type Parameters
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **ExtractStrings**\<`T`\>: `Extract`\<keyof `T`, `string`\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/forms/src/lib/types.ts:79](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/forms/src/lib/types.ts:79](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/types.ts#L79)
|
|
8
8
|
|
|
9
9
|
## Type Parameters
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **FormBuilderFn**\<`T`, `Data`\>: (`state`, `options`) => `T` \| [`RxapFormControl`](../wiki/Class.RxapFormControl)
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/forms/src/lib/model.ts:121](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/forms/src/lib/model.ts:121](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/model.ts#L121)
|
|
8
8
|
|
|
9
9
|
## Type Parameters
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **FormType**\<`T`\>: `Partial`\<[`FormDefinition`](../wiki/Interface.FormDefinition)\<`T`\>\> & \{ \[K in keyof T\]: T\[K\] extends (infer U)\[\] ? FormDefinitionArray\<FormType\<U\>\> \| FormDefinitionArray\<RxapFormControl\<U\>\> \| RxapFormControl\<T\[K\]\> \| RxapFormArray\<U\> : T\[K\] extends Record\<string, any\> ? FormType\<T\[K\]\> & Partial\<FormDefinition\<T\[K\]\>\> \| RxapFormControl\<T\[K\]\> : RxapFormControl\<NonEmpty\<T\[K\]\>\> \}
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/forms/src/lib/model.ts:88](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/forms/src/lib/model.ts:88](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/model.ts#L88)
|
|
8
8
|
|
|
9
9
|
## Type Parameters
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **KeyValueControls**\<`T`\>: `{ [K in keyof T]: T[K] extends RxapFormControl<T[K]> ? RxapFormControl<T[K]> : T[K] extends RxapFormGroup<T[K]> ? RxapFormGroup<T[K]> : T[K] extends RxapFormArray<ArrayType<T[K]>> ? RxapFormArray<ArrayType<T[K]>> : AbstractControl<T[K]> }`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/forms/src/lib/types.ts:100](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/forms/src/lib/types.ts:100](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/types.ts#L100)
|
|
8
8
|
|
|
9
9
|
## Type Parameters
|
|
10
10
|
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> **OnlySelf**: `Pick`\<[`ControlOptions`](../wiki/Interface.ControlOptions), `"onlySelf"`\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/forms/src/lib/types.ts:65](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/forms/src/lib/types.ts:65](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/types.ts#L65)
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **OrBoxedValue**\<`T`\>: `T` \| [`BoxedValue`](../wiki/Interface.BoxedValue)\<`T`\> \| () => `T`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/forms/src/lib/types.ts:96](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/forms/src/lib/types.ts:96](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/types.ts#L96)
|
|
8
8
|
|
|
9
9
|
## Type Parameters
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **RxapAbstractControlOptions**\<`T`\>: [`_RxapAbstractControlOptions`](../wiki/Interface._RxapAbstractControlOptions) & `T`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/forms/src/lib/model.ts:45](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/forms/src/lib/model.ts:45](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/model.ts#L45)
|
|
8
8
|
|
|
9
9
|
## Type Parameters
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **SetValueFn**\<`T`\>: (`value`, `options`?) => `void`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/forms/src/lib/model.ts:119](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/forms/src/lib/model.ts:119](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/model.ts#L119)
|
|
8
8
|
|
|
9
9
|
## Type Parameters
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **ValidationErrors**\<`T`\>: `T`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/forms/src/lib/types.ts:15](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/forms/src/lib/types.ts:15](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/types.ts#L15)
|
|
8
8
|
|
|
9
9
|
## Type Parameters
|
|
10
10
|
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> **Validator**: [`ValidatorFn`](../wiki/TypeAlias.ValidatorFn) \| [`ValidatorFn`](../wiki/TypeAlias.ValidatorFn)[]
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/forms/src/lib/types.ts:28](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/forms/src/lib/types.ts:28](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/types.ts#L28)
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **ValidatorFn**\<`T`, `E`\>: (`control`) => [`ValidationErrors`](../wiki/TypeAlias.ValidationErrors)\<`E`\> \| `null`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/forms/src/lib/types.ts:16](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/forms/src/lib/types.ts:16](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/types.ts#L16)
|
|
8
8
|
|
|
9
9
|
## Type Parameters
|
|
10
10
|
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> **ValidatorOrOpts**: [`ValidatorFn`](../wiki/TypeAlias.ValidatorFn) \| [`ValidatorFn`](../wiki/TypeAlias.ValidatorFn)[] \| [`AbstractControlOptions`](../wiki/Interface.AbstractControlOptions) \| `null`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/forms/src/lib/types.ts:26](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/forms/src/lib/types.ts:26](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/types.ts#L26)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **RXAP\_FORM\_CONTEXT**: `InjectionToken`\<`unknown`\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/forms/src/lib/tokens.ts:4](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/forms/src/lib/tokens.ts:4](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/tokens.ts#L4)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **RXAP\_FORM\_DEFINITION**: `InjectionToken`\<[`FormDefinition`](../wiki/Interface.FormDefinition)\<`any`, `any`, `any`\>\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/forms/src/lib/directives/tokens.ts:9](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/forms/src/lib/directives/tokens.ts:9](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/directives/tokens.ts#L9)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **RXAP\_FORM\_DEFINITION\_BUILDER**: `InjectionToken`\<[`RxapFormBuilder`](../wiki/Class.RxapFormBuilder)\<`any`, [`FormType`](../wiki/TypeAlias.FormType)\<`any`\>\>\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/forms/src/lib/directives/tokens.ts:11](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/forms/src/lib/directives/tokens.ts:11](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/directives/tokens.ts#L11)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **RXAP\_FORM\_INITIAL\_STATE**: `InjectionToken`\<`unknown`\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/forms/src/lib/tokens.ts:3](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/forms/src/lib/tokens.ts:3](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/tokens.ts#L3)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **RXAP\_FORM\_LOAD\_FAILED\_METHOD**: `InjectionToken`\<[`FormLoadMethod`](../wiki/Interface.FormLoadMethod)\<`any`\>\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/forms/src/lib/directives/tokens.ts:22](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/forms/src/lib/directives/tokens.ts:22](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/directives/tokens.ts#L22)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **RXAP\_FORM\_LOAD\_METHOD**: `InjectionToken`\<[`FormLoadMethod`](../wiki/Interface.FormLoadMethod)\<`any`\>\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/forms/src/lib/directives/tokens.ts:20](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/forms/src/lib/directives/tokens.ts:20](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/directives/tokens.ts#L20)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **RXAP\_FORM\_LOAD\_SUCCESSFUL\_METHOD**: `InjectionToken`\<[`FormLoadMethod`](../wiki/Interface.FormLoadMethod)\<`any`\>\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/forms/src/lib/directives/tokens.ts:24](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/forms/src/lib/directives/tokens.ts:24](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/directives/tokens.ts#L24)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **RXAP\_FORM\_SUBMIT\_FAILED\_METHOD**: `InjectionToken`\<[`FormSubmitMethod`](../wiki/Interface.FormSubmitMethod)\<`any`\>\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/forms/src/lib/directives/tokens.ts:15](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/forms/src/lib/directives/tokens.ts:15](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/directives/tokens.ts#L15)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **RXAP\_FORM\_SUBMIT\_METHOD**: `InjectionToken`\<[`FormSubmitMethod`](../wiki/Interface.FormSubmitMethod)\<`any`\>\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/forms/src/lib/directives/tokens.ts:13](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/forms/src/lib/directives/tokens.ts:13](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/directives/tokens.ts#L13)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **RXAP\_FORM\_SUBMIT\_SUCCESSFUL\_METHOD**: `InjectionToken`\<[`FormSubmitMethod`](../wiki/Interface.FormSubmitMethod)\<`any`\>\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/forms/src/lib/directives/tokens.ts:17](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/forms/src/lib/directives/tokens.ts:17](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/directives/tokens.ts#L17)
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **RxapValidators**: `object`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/forms/src/lib/validators/index.ts:17](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/forms/src/lib/validators/index.ts:17](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/validators/index.ts#L17)
|
|
8
8
|
|
|
9
9
|
## Type declaration
|
|
10
10
|
|
package/docs/wiki/globals.md
CHANGED
package/fesm2022/rxap-forms.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isEmail, isIP, isMobilePhone, isPort, isURL, isUUID } from '@rxap/validator';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { Directive, Host, SkipSelf, Input, HostListener, forwardRef, Optional, Self, Inject, InjectionToken, isDevMode, Injector, input, EventEmitter, ChangeDetectorRef, Output, HostBinding, TemplateRef, ViewContainerRef, NgModule } from '@angular/core';
|
|
3
|
+
import { Directive, Host, SkipSelf, Input, HostListener, forwardRef, Optional, Self, Inject, InjectionToken, isDevMode, Injector, input, EventEmitter, ChangeDetectorRef, Output, HostBinding, TemplateRef, ViewContainerRef, output, computed, NgModule } from '@angular/core';
|
|
4
4
|
import * as i1 from '@angular/forms';
|
|
5
5
|
import { FormControlName, NG_VALIDATORS, NG_ASYNC_VALIDATORS, NG_VALUE_ACCESSOR, NgControl, FormGroupName, ControlContainer, UntypedFormArray, AbstractControl, UntypedFormGroup, UntypedFormControl, Validators, FormGroupDirective } from '@angular/forms';
|
|
6
6
|
import { startWith, filter, tap, map, distinctUntilChanged, debounceTime, take } from 'rxjs/operators';
|
|
@@ -12,6 +12,7 @@ import { merge, defer, of, EMPTY, Subject, isObservable, BehaviorSubject, Subscr
|
|
|
12
12
|
import { GetDefinitionMetadata, DefinitionMetadata } from '@rxap/definition';
|
|
13
13
|
import { getMetadata, setMetadataMapSet, setMetadataMap } from '@rxap/reflect-metadata';
|
|
14
14
|
import { ConfirmClick } from '@rxap/directives';
|
|
15
|
+
import { toSignal } from '@angular/core/rxjs-interop';
|
|
15
16
|
import * as i2$1 from '@angular/router';
|
|
16
17
|
import { Router } from '@angular/router';
|
|
17
18
|
|
|
@@ -2048,8 +2049,8 @@ class FormDirective extends FormGroupDirective {
|
|
|
2048
2049
|
else if (typeof this._formDefinition['toJSON'] === 'function') {
|
|
2049
2050
|
value = this._formDefinition.toJSON();
|
|
2050
2051
|
}
|
|
2051
|
-
value = value ?? this.form.value;
|
|
2052
|
-
return
|
|
2052
|
+
value = value ?? clone(this.form.value);
|
|
2053
|
+
return value;
|
|
2053
2054
|
}
|
|
2054
2055
|
submit() {
|
|
2055
2056
|
const value = this.getSubmitValue();
|
|
@@ -2579,16 +2580,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
2579
2580
|
}] }] });
|
|
2580
2581
|
|
|
2581
2582
|
class FormSubmitDirective extends ConfirmClick {
|
|
2582
|
-
set resetAfterSubmit(value) {
|
|
2583
|
-
this._resetAfterSubmit = coerceBoolean(value);
|
|
2584
|
-
}
|
|
2585
2583
|
constructor(formDirective, router = null) {
|
|
2586
2584
|
super();
|
|
2587
2585
|
this.formDirective = formDirective;
|
|
2588
2586
|
this.router = router;
|
|
2589
|
-
this.type = 'button';
|
|
2590
|
-
this.
|
|
2591
|
-
this.
|
|
2587
|
+
this.type = input('button');
|
|
2588
|
+
this.resetAfterSubmit = input(false, { transform: coerceBoolean });
|
|
2589
|
+
this.navigateAfterSubmit = input();
|
|
2590
|
+
this.afterSubmit = output();
|
|
2591
|
+
this.disableWhileSubmitting = input(true);
|
|
2592
|
+
this.submitting = toSignal(this.formDirective.submitting$, { initialValue: false });
|
|
2593
|
+
this.disabled = computed(() => this.disableWhileSubmitting() && this.submitting());
|
|
2592
2594
|
}
|
|
2593
2595
|
execute() {
|
|
2594
2596
|
this.formDirective.form.markAllAsDirty();
|
|
@@ -2597,14 +2599,15 @@ class FormSubmitDirective extends ConfirmClick {
|
|
|
2597
2599
|
this.subscription = this.formDirective.rxapSubmit.pipe(take(1), tap(value => {
|
|
2598
2600
|
const clonedValue = clone(value);
|
|
2599
2601
|
this.afterSubmit.emit(clonedValue);
|
|
2600
|
-
if (this.
|
|
2602
|
+
if (this.resetAfterSubmit()) {
|
|
2601
2603
|
this.formDirective.reset();
|
|
2602
2604
|
}
|
|
2603
|
-
|
|
2605
|
+
const navigateAfterSubmit = this.navigateAfterSubmit();
|
|
2606
|
+
if (Array.isArray(navigateAfterSubmit)) {
|
|
2604
2607
|
if (!this.router) {
|
|
2605
2608
|
throw new Error('Could not resolve the router!');
|
|
2606
2609
|
}
|
|
2607
|
-
return this.router.navigate(
|
|
2610
|
+
return this.router.navigate(navigateAfterSubmit);
|
|
2608
2611
|
}
|
|
2609
2612
|
return Promise.resolve();
|
|
2610
2613
|
})).subscribe();
|
|
@@ -2614,7 +2617,7 @@ class FormSubmitDirective extends ConfirmClick {
|
|
|
2614
2617
|
this.subscription?.unsubscribe();
|
|
2615
2618
|
}
|
|
2616
2619
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: FormSubmitDirective, deps: [{ token: FormDirective }, { token: Router, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2617
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
2620
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.1", type: FormSubmitDirective, isStandalone: true, selector: "[rxapFormSubmit]", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, resetAfterSubmit: { classPropertyName: "resetAfterSubmit", publicName: "resetAfterSubmit", isSignal: true, isRequired: false, transformFunction: null }, navigateAfterSubmit: { classPropertyName: "navigateAfterSubmit", publicName: "navigateAfterSubmit", isSignal: true, isRequired: false, transformFunction: null }, disableWhileSubmitting: { classPropertyName: "disableWhileSubmitting", publicName: "disableWhileSubmitting", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { afterSubmit: "afterSubmit" }, host: { listeners: { "click": "onClick()", "confirmed": "onConfirm()" }, properties: { "disabled": "disabled()", "type": "type()" } }, exportAs: ["rxapFormSubmit"], usesInheritance: true, ngImport: i0 }); }
|
|
2618
2621
|
}
|
|
2619
2622
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: FormSubmitDirective, decorators: [{
|
|
2620
2623
|
type: Directive,
|
|
@@ -2623,8 +2626,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
2623
2626
|
host: {
|
|
2624
2627
|
'(click)': 'onClick()',
|
|
2625
2628
|
'(confirmed)': 'onConfirm()',
|
|
2629
|
+
'[disabled]': 'disabled()',
|
|
2630
|
+
'[type]': 'type()',
|
|
2626
2631
|
},
|
|
2627
2632
|
standalone: true,
|
|
2633
|
+
exportAs: 'rxapFormSubmit',
|
|
2628
2634
|
}]
|
|
2629
2635
|
}], ctorParameters: () => [{ type: FormDirective, decorators: [{
|
|
2630
2636
|
type: Inject,
|
|
@@ -2634,18 +2640,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
2634
2640
|
}, {
|
|
2635
2641
|
type: Inject,
|
|
2636
2642
|
args: [Router]
|
|
2637
|
-
}] }]
|
|
2638
|
-
type: HostBinding,
|
|
2639
|
-
args: ['type']
|
|
2640
|
-
}, {
|
|
2641
|
-
type: Input
|
|
2642
|
-
}], resetAfterSubmit: [{
|
|
2643
|
-
type: Input
|
|
2644
|
-
}], navigateAfterSubmit: [{
|
|
2645
|
-
type: Input
|
|
2646
|
-
}], afterSubmit: [{
|
|
2647
|
-
type: Output
|
|
2648
|
-
}] } });
|
|
2643
|
+
}] }] });
|
|
2649
2644
|
|
|
2650
2645
|
class FormSubmittingDirective {
|
|
2651
2646
|
constructor(formDirective, template, viewContainerRef) {
|