@rxap/forms 19.2.0 → 21.0.1-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -0
- package/compodoc/changelog.html +34 -0
- package/compodoc/classes/FormArrayControlManager.html +13 -10
- package/compodoc/classes/RxapFormArray.html +3 -1
- package/compodoc/classes/RxapFormBuilder.html +13 -10
- package/compodoc/classes/RxapFormControl.html +3 -1
- package/compodoc/classes/RxapFormGroup.html +3 -1
- package/compodoc/dependencies.html +13 -13
- package/compodoc/directives/FormControlErrorDirective.html +97 -166
- package/compodoc/directives/FormControlMarkDirtyDirective.html +5 -107
- package/compodoc/directives/FormControlMarkPristineDirective.html +5 -107
- package/compodoc/directives/FormControlMarkTouchedDirective.html +5 -107
- package/compodoc/directives/FormControlMarkUntouchedDirective.html +5 -107
- package/compodoc/directives/FormControlNameDirective.html +12 -124
- package/compodoc/directives/FormDirective.html +1032 -1057
- package/compodoc/directives/FormGroupNameDirective.html +16 -111
- package/compodoc/directives/FormLoadedDirective.html +16 -96
- package/compodoc/directives/FormLoadingDirective.html +16 -96
- package/compodoc/directives/FormLoadingErrorDirective.html +15 -91
- package/compodoc/directives/FormResetDirective.html +47 -101
- package/compodoc/directives/FormSubmitDirective.html +45 -100
- package/compodoc/directives/FormSubmitFailedDirective.html +15 -91
- package/compodoc/directives/FormSubmitInvalidDirective.html +14 -95
- package/compodoc/directives/FormSubmitSuccessfulDirective.html +14 -95
- package/compodoc/directives/FormSubmittingDirective.html +16 -96
- package/compodoc/graph/dependencies.svg +15 -441
- package/compodoc/js/menu-wc.js +0 -77
- package/compodoc/js/menu-wc_es5.js +1 -1
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/modules.html +0 -17
- package/compodoc/overview.html +1 -473
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +13661 -13712
- package/docs/html/assets/hierarchy.js +1 -1
- package/docs/html/assets/navigation.js +1 -1
- package/docs/html/assets/search.js +1 -1
- package/docs/html/classes/ControlValueAccessor.html +5 -5
- package/docs/html/classes/FormArrayControlManager.html +2 -2
- package/docs/html/classes/FormControlErrorDirective.html +3 -12
- package/docs/html/classes/FormControlMarkDirtyDirective.html +2 -2
- package/docs/html/classes/FormControlMarkPristineDirective.html +2 -2
- package/docs/html/classes/FormControlMarkTouchedDirective.html +2 -2
- package/docs/html/classes/FormControlMarkUntouchedDirective.html +2 -2
- package/docs/html/classes/FormControlNameDirective.html +34 -34
- package/docs/html/classes/FormDirective.html +72 -59
- package/docs/html/classes/FormGroupNameDirective.html +29 -29
- package/docs/html/classes/FormLoadedDirective.html +2 -9
- package/docs/html/classes/FormLoadingDirective.html +2 -9
- package/docs/html/classes/FormLoadingErrorDirective.html +2 -9
- package/docs/html/classes/FormResetDirective.html +4 -4
- package/docs/html/classes/FormSubmitDirective.html +4 -4
- package/docs/html/classes/FormSubmitFailedDirective.html +2 -9
- package/docs/html/classes/FormSubmitInvalidDirective.html +2 -9
- package/docs/html/classes/FormSubmitSuccessfulDirective.html +2 -9
- package/docs/html/classes/FormSubmittingDirective.html +2 -9
- package/docs/html/classes/ParentControlContainerDirective.html +2 -2
- package/docs/html/classes/RxapFormArray.html +96 -79
- package/docs/html/classes/RxapFormBuilder.html +2 -2
- package/docs/html/classes/RxapFormControl.html +92 -75
- package/docs/html/classes/RxapFormGroup.html +93 -77
- package/docs/html/enums/MetadataKeys.html +2 -2
- package/docs/html/functions/ControlAsyncValidator.html +1 -1
- package/docs/html/functions/ControlChange.html +1 -1
- package/docs/html/functions/ControlSetValue.html +1 -1
- package/docs/html/functions/ControlValidator.html +1 -1
- package/docs/html/functions/IsArray.html +1 -1
- package/docs/html/functions/IsBoolean.html +1 -1
- package/docs/html/functions/IsComplex.html +1 -1
- package/docs/html/functions/IsDate.html +1 -1
- package/docs/html/functions/IsEmail.html +1 -1
- package/docs/html/functions/IsEnum.html +1 -1
- package/docs/html/functions/IsIP.html +1 -1
- package/docs/html/functions/IsInt.html +1 -1
- package/docs/html/functions/IsNumber-1.html +2 -2
- package/docs/html/functions/IsObject.html +1 -1
- package/docs/html/functions/IsPhoneNumber.html +1 -1
- package/docs/html/functions/IsPort.html +1 -1
- package/docs/html/functions/IsString.html +1 -1
- package/docs/html/functions/IsUUID.html +1 -1
- package/docs/html/functions/IsUrl.html +1 -1
- package/docs/html/functions/RxapForm.html +1 -1
- package/docs/html/functions/ToFormMethod.html +1 -1
- package/docs/html/functions/ToFormSubmitMethod.html +2 -2
- package/docs/html/functions/UseFormArrayControl.html +1 -1
- package/docs/html/functions/UseFormArrayGroup.html +1 -1
- package/docs/html/functions/UseFormControl.html +1 -1
- package/docs/html/functions/UseFormGroup.html +1 -1
- package/docs/html/functions/_IsNumber.html +1 -1
- package/docs/html/functions/controlDisabledWhile.html +1 -1
- package/docs/html/functions/controlDisabled_.html +1 -1
- package/docs/html/functions/controlEnabledWhile.html +1 -1
- package/docs/html/functions/controlEnabled_.html +1 -1
- package/docs/html/functions/controlErrorChanges_.html +1 -1
- package/docs/html/functions/controlReadonly_.html +1 -1
- package/docs/html/functions/controlStatusChanges_.html +1 -1
- package/docs/html/functions/controlValueChanges_.html +1 -1
- package/docs/html/functions/disableControl.html +1 -1
- package/docs/html/functions/enableControl.html +1 -1
- package/docs/html/functions/hasErrorAndDirty.html +1 -1
- package/docs/html/functions/hasErrorAndTouched.html +1 -1
- package/docs/html/functions/isNumber.html +2 -2
- package/docs/html/functions/markAllDirty.html +1 -1
- package/docs/html/functions/markAllPristine.html +1 -1
- package/docs/html/functions/markAllUntouched.html +1 -1
- package/docs/html/functions/mergeControlValidators.html +1 -1
- package/docs/html/functions/selectControlValue_.html +1 -1
- package/docs/html/functions/validateControlOn.html +1 -1
- package/docs/html/hierarchy.html +1 -1
- package/docs/html/index.html +2 -2
- package/docs/html/interfaces/AbstractControl.html +95 -71
- package/docs/html/interfaces/AbstractControlOptions.html +4 -4
- package/docs/html/interfaces/BoxedValue.html +2 -2
- package/docs/html/interfaces/ComplexityOptions.html +2 -2
- package/docs/html/interfaces/ControlOptions.html +3 -3
- package/docs/html/interfaces/ControlSetValueOptions.html +2 -2
- package/docs/html/interfaces/FormArrayOptions.html +4 -4
- package/docs/html/interfaces/FormDefinition.html +6 -6
- package/docs/html/interfaces/FormDefinitionArray.html +43 -36
- package/docs/html/interfaces/FormDefinitionMetadata.html +5 -5
- package/docs/html/interfaces/FormGroupOptions.html +4 -4
- package/docs/html/interfaces/FormLoadFailedMethod.html +2 -2
- package/docs/html/interfaces/FormLoadMethod.html +2 -2
- package/docs/html/interfaces/FormLoadSuccessfulMethod.html +2 -2
- package/docs/html/interfaces/FormOptions.html +4 -4
- package/docs/html/interfaces/FormSubmitFailedMethod.html +2 -2
- package/docs/html/interfaces/FormSubmitMethod.html +2 -2
- package/docs/html/interfaces/FormSubmitSuccessfulMethod.html +2 -2
- package/docs/html/interfaces/InjectableValidator.html +2 -2
- package/docs/html/interfaces/IsNumberOptions.html +3 -3
- package/docs/html/interfaces/NgValidatorsErrors.html +2 -2
- package/docs/html/interfaces/RxapAbstractControlOptionsWithDefinition.html +4 -4
- package/docs/html/interfaces/_RxapAbstractControlOptions.html +4 -4
- package/docs/html/modules.html +1 -1
- package/docs/html/types/AsyncValidator.html +1 -1
- package/docs/html/types/AsyncValidatorFn.html +1 -1
- package/docs/html/types/ChangeFn.html +1 -1
- package/docs/html/types/ControlEventOptions.html +1 -1
- package/docs/html/types/ControlInsertedFn.html +1 -1
- package/docs/html/types/ControlPath.html +1 -1
- package/docs/html/types/ControlRemovedFn.html +1 -1
- package/docs/html/types/ControlState.html +1 -1
- package/docs/html/types/EmitEvent.html +1 -1
- package/docs/html/types/ExtractAbstractControl.html +1 -1
- package/docs/html/types/ExtractStrings.html +1 -1
- package/docs/html/types/FormBuilderFn.html +1 -1
- package/docs/html/types/FormType.html +1 -1
- package/docs/html/types/KeyValueControls.html +1 -1
- package/docs/html/types/OnlySelf.html +1 -1
- package/docs/html/types/OrBoxedValue.html +1 -1
- package/docs/html/types/RxapAbstractControlOptions.html +1 -1
- package/docs/html/types/SetValueFn.html +1 -1
- package/docs/html/types/ValidationErrors.html +1 -1
- package/docs/html/types/Validator.html +1 -1
- package/docs/html/types/ValidatorFn.html +1 -1
- package/docs/html/types/ValidatorOrOpts.html +1 -1
- package/docs/html/variables/RXAP_FORM_CONTEXT.html +1 -1
- package/docs/html/variables/RXAP_FORM_DEFINITION.html +1 -1
- package/docs/html/variables/RXAP_FORM_DEFINITION_BUILDER.html +1 -1
- package/docs/html/variables/RXAP_FORM_INITIAL_STATE.html +1 -1
- package/docs/html/variables/RXAP_FORM_LOAD_FAILED_METHOD.html +1 -1
- package/docs/html/variables/RXAP_FORM_LOAD_METHOD.html +1 -1
- package/docs/html/variables/RXAP_FORM_LOAD_SUCCESSFUL_METHOD.html +1 -1
- package/docs/html/variables/RXAP_FORM_SUBMIT_FAILED_METHOD.html +1 -1
- package/docs/html/variables/RXAP_FORM_SUBMIT_METHOD.html +1 -1
- package/docs/html/variables/RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD.html +1 -1
- package/docs/html/variables/RxapValidators.html +1 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/ControlValueAccessor.md +8 -8
- package/docs/markdown/classes/FormArrayControlManager.md +6 -6
- package/docs/markdown/classes/FormControlErrorDirective.md +8 -68
- package/docs/markdown/classes/FormControlMarkDirtyDirective.md +4 -12
- package/docs/markdown/classes/FormControlMarkPristineDirective.md +4 -12
- package/docs/markdown/classes/FormControlMarkTouchedDirective.md +4 -12
- package/docs/markdown/classes/FormControlMarkUntouchedDirective.md +4 -12
- package/docs/markdown/classes/FormControlNameDirective.md +38 -58
- package/docs/markdown/classes/FormDirective.md +255 -224
- package/docs/markdown/classes/FormGroupNameDirective.md +33 -47
- package/docs/markdown/classes/FormLoadedDirective.md +4 -62
- package/docs/markdown/classes/FormLoadingDirective.md +4 -62
- package/docs/markdown/classes/FormLoadingErrorDirective.md +4 -62
- package/docs/markdown/classes/FormResetDirective.md +15 -35
- package/docs/markdown/classes/FormSubmitDirective.md +33 -57
- package/docs/markdown/classes/FormSubmitFailedDirective.md +4 -62
- package/docs/markdown/classes/FormSubmitInvalidDirective.md +4 -62
- package/docs/markdown/classes/FormSubmitSuccessfulDirective.md +4 -62
- package/docs/markdown/classes/FormSubmittingDirective.md +4 -62
- package/docs/markdown/classes/ParentControlContainerDirective.md +2 -2
- package/docs/markdown/classes/RxapFormArray.md +132 -103
- package/docs/markdown/classes/RxapFormBuilder.md +4 -4
- package/docs/markdown/classes/RxapFormControl.md +127 -103
- package/docs/markdown/classes/RxapFormGroup.md +140 -117
- package/docs/markdown/enumerations/MetadataKeys.md +10 -10
- package/docs/markdown/functions/ControlAsyncValidator.md +2 -2
- package/docs/markdown/functions/ControlChange.md +2 -2
- package/docs/markdown/functions/ControlSetValue.md +2 -2
- package/docs/markdown/functions/ControlValidator.md +2 -2
- package/docs/markdown/functions/IsArray.md +2 -2
- package/docs/markdown/functions/IsBoolean.md +2 -2
- package/docs/markdown/functions/IsComplex.md +2 -2
- package/docs/markdown/functions/IsDate.md +2 -2
- package/docs/markdown/functions/IsEmail.md +2 -2
- package/docs/markdown/functions/IsEnum.md +2 -2
- package/docs/markdown/functions/IsIP.md +2 -2
- package/docs/markdown/functions/IsInt.md +2 -2
- package/docs/markdown/functions/IsNumber-2.md +2 -2
- package/docs/markdown/functions/IsNumber.md +2 -2
- package/docs/markdown/functions/IsObject.md +2 -2
- package/docs/markdown/functions/IsPhoneNumber.md +2 -2
- package/docs/markdown/functions/IsPort.md +2 -2
- package/docs/markdown/functions/IsString.md +2 -2
- package/docs/markdown/functions/IsUUID.md +2 -2
- package/docs/markdown/functions/IsUrl.md +2 -2
- package/docs/markdown/functions/RxapForm.md +2 -2
- package/docs/markdown/functions/ToFormMethod.md +2 -2
- package/docs/markdown/functions/ToFormSubmitMethod.md +2 -2
- package/docs/markdown/functions/UseFormArrayControl.md +2 -2
- package/docs/markdown/functions/UseFormArrayGroup.md +2 -2
- package/docs/markdown/functions/UseFormControl.md +2 -2
- package/docs/markdown/functions/UseFormGroup.md +2 -2
- package/docs/markdown/functions/controlDisabled$.md +2 -2
- package/docs/markdown/functions/controlDisabledWhile.md +2 -2
- package/docs/markdown/functions/controlEnabled$.md +2 -2
- package/docs/markdown/functions/controlEnabledWhile.md +2 -2
- package/docs/markdown/functions/controlErrorChanges$.md +2 -2
- package/docs/markdown/functions/controlReadonly$.md +2 -2
- package/docs/markdown/functions/controlStatusChanges$.md +2 -2
- package/docs/markdown/functions/controlValueChanges$.md +2 -2
- package/docs/markdown/functions/disableControl.md +2 -2
- package/docs/markdown/functions/enableControl.md +2 -2
- package/docs/markdown/functions/hasErrorAndDirty.md +2 -2
- package/docs/markdown/functions/hasErrorAndTouched.md +2 -2
- package/docs/markdown/functions/isNumber-1.md +2 -2
- package/docs/markdown/functions/markAllDirty.md +2 -2
- package/docs/markdown/functions/markAllPristine.md +2 -2
- package/docs/markdown/functions/markAllUntouched.md +2 -2
- package/docs/markdown/functions/mergeControlValidators.md +2 -2
- package/docs/markdown/functions/selectControlValue$.md +2 -2
- package/docs/markdown/functions/validateControlOn.md +2 -2
- package/docs/markdown/globals.md +2 -3
- package/docs/markdown/interfaces/AbstractControl.md +122 -73
- package/docs/markdown/interfaces/AbstractControlOptions.md +6 -6
- package/docs/markdown/interfaces/BoxedValue.md +4 -4
- package/docs/markdown/interfaces/ComplexityOptions.md +12 -12
- package/docs/markdown/interfaces/ControlOptions.md +10 -10
- package/docs/markdown/interfaces/ControlSetValueOptions.md +4 -4
- package/docs/markdown/interfaces/FormArrayOptions.md +16 -16
- package/docs/markdown/interfaces/FormDefinition.md +7 -7
- package/docs/markdown/interfaces/FormDefinitionArray.md +70 -36
- package/docs/markdown/interfaces/FormDefinitionMetadata.md +15 -15
- package/docs/markdown/interfaces/FormGroupOptions.md +13 -13
- package/docs/markdown/interfaces/FormLoadFailedMethod.md +4 -4
- package/docs/markdown/interfaces/FormLoadMethod.md +4 -4
- package/docs/markdown/interfaces/FormLoadSuccessfulMethod.md +4 -4
- package/docs/markdown/interfaces/FormOptions.md +13 -13
- package/docs/markdown/interfaces/FormSubmitFailedMethod.md +4 -4
- package/docs/markdown/interfaces/FormSubmitMethod.md +4 -4
- package/docs/markdown/interfaces/FormSubmitSuccessfulMethod.md +4 -4
- package/docs/markdown/interfaces/InjectableValidator.md +4 -4
- package/docs/markdown/interfaces/IsNumberOptions.md +6 -6
- package/docs/markdown/interfaces/NgValidatorsErrors.md +9 -9
- package/docs/markdown/interfaces/RxapAbstractControlOptions.md +12 -12
- package/docs/markdown/interfaces/RxapAbstractControlOptionsWithDefinition.md +13 -13
- package/docs/markdown/type-aliases/AsyncValidator.md +2 -2
- package/docs/markdown/type-aliases/AsyncValidatorFn.md +2 -2
- package/docs/markdown/type-aliases/ChangeFn.md +2 -2
- package/docs/markdown/type-aliases/ControlEventOptions.md +2 -2
- package/docs/markdown/type-aliases/ControlInsertedFn.md +2 -2
- package/docs/markdown/type-aliases/ControlPath.md +2 -2
- package/docs/markdown/type-aliases/ControlRemovedFn.md +2 -2
- package/docs/markdown/type-aliases/ControlState.md +2 -2
- package/docs/markdown/type-aliases/EmitEvent.md +2 -2
- package/docs/markdown/type-aliases/ExtractAbstractControl.md +2 -2
- package/docs/markdown/type-aliases/ExtractStrings.md +2 -2
- package/docs/markdown/type-aliases/FormBuilderFn.md +2 -2
- package/docs/markdown/type-aliases/FormType.md +2 -2
- package/docs/markdown/type-aliases/KeyValueControls.md +2 -2
- package/docs/markdown/type-aliases/OnlySelf.md +2 -2
- package/docs/markdown/type-aliases/OrBoxedValue.md +2 -2
- package/docs/markdown/type-aliases/RxapAbstractControlOptions.md +2 -2
- package/docs/markdown/type-aliases/SetValueFn.md +2 -2
- package/docs/markdown/type-aliases/ValidationErrors.md +2 -2
- package/docs/markdown/type-aliases/Validator.md +2 -2
- package/docs/markdown/type-aliases/ValidatorFn.md +2 -2
- package/docs/markdown/type-aliases/ValidatorOrOpts.md +2 -2
- package/docs/markdown/variables/RXAP_FORM_CONTEXT.md +2 -2
- package/docs/markdown/variables/RXAP_FORM_DEFINITION.md +2 -2
- package/docs/markdown/variables/RXAP_FORM_DEFINITION_BUILDER.md +2 -2
- package/docs/markdown/variables/RXAP_FORM_INITIAL_STATE.md +2 -2
- package/docs/markdown/variables/RXAP_FORM_LOAD_FAILED_METHOD.md +2 -2
- package/docs/markdown/variables/RXAP_FORM_LOAD_METHOD.md +2 -2
- package/docs/markdown/variables/RXAP_FORM_LOAD_SUCCESSFUL_METHOD.md +2 -2
- package/docs/markdown/variables/RXAP_FORM_SUBMIT_FAILED_METHOD.md +2 -2
- package/docs/markdown/variables/RXAP_FORM_SUBMIT_METHOD.md +2 -2
- package/docs/markdown/variables/RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD.md +2 -2
- package/docs/markdown/variables/RxapValidators.md +2 -2
- package/docs/wiki/Class.ControlValueAccessor.md +7 -7
- package/docs/wiki/Class.FormArrayControlManager.md +5 -5
- package/docs/wiki/Class.FormControlErrorDirective.md +7 -67
- package/docs/wiki/Class.FormControlMarkDirtyDirective.md +3 -11
- package/docs/wiki/Class.FormControlMarkPristineDirective.md +3 -11
- package/docs/wiki/Class.FormControlMarkTouchedDirective.md +3 -11
- package/docs/wiki/Class.FormControlMarkUntouchedDirective.md +3 -11
- package/docs/wiki/Class.FormControlNameDirective.md +37 -57
- package/docs/wiki/Class.FormDirective.md +254 -223
- package/docs/wiki/Class.FormGroupNameDirective.md +32 -46
- package/docs/wiki/Class.FormLoadedDirective.md +3 -61
- package/docs/wiki/Class.FormLoadingDirective.md +3 -61
- package/docs/wiki/Class.FormLoadingErrorDirective.md +3 -61
- package/docs/wiki/Class.FormResetDirective.md +14 -34
- package/docs/wiki/Class.FormSubmitDirective.md +32 -56
- package/docs/wiki/Class.FormSubmitFailedDirective.md +3 -61
- package/docs/wiki/Class.FormSubmitInvalidDirective.md +3 -61
- package/docs/wiki/Class.FormSubmitSuccessfulDirective.md +3 -61
- package/docs/wiki/Class.FormSubmittingDirective.md +3 -61
- package/docs/wiki/Class.ParentControlContainerDirective.md +1 -1
- package/docs/wiki/Class.RxapFormArray.md +131 -102
- package/docs/wiki/Class.RxapFormBuilder.md +3 -3
- package/docs/wiki/Class.RxapFormControl.md +126 -102
- package/docs/wiki/Class.RxapFormGroup.md +139 -116
- package/docs/wiki/Enumeration.MetadataKeys.md +9 -9
- package/docs/wiki/Function.ControlAsyncValidator.md +1 -1
- package/docs/wiki/Function.ControlChange.md +1 -1
- package/docs/wiki/Function.ControlSetValue.md +1 -1
- package/docs/wiki/Function.ControlValidator.md +1 -1
- package/docs/wiki/Function.IsArray.md +1 -1
- package/docs/wiki/Function.IsBoolean.md +1 -1
- package/docs/wiki/Function.IsComplex.md +1 -1
- package/docs/wiki/Function.IsDate.md +1 -1
- package/docs/wiki/Function.IsEmail.md +1 -1
- package/docs/wiki/Function.IsEnum.md +1 -1
- package/docs/wiki/Function.IsIP.md +1 -1
- package/docs/wiki/Function.IsInt.md +1 -1
- package/docs/wiki/Function.IsNumber.md +1 -1
- package/docs/wiki/Function.IsObject.md +1 -1
- package/docs/wiki/Function.IsPhoneNumber.md +1 -1
- package/docs/wiki/Function.IsPort.md +1 -1
- package/docs/wiki/Function.IsString.md +1 -1
- package/docs/wiki/Function.IsUUID.md +1 -1
- package/docs/wiki/Function.IsUrl.md +1 -1
- package/docs/wiki/Function.RxapForm.md +1 -1
- package/docs/wiki/Function.ToFormMethod.md +1 -1
- package/docs/wiki/Function.ToFormSubmitMethod.md +1 -1
- package/docs/wiki/Function.UseFormArrayControl.md +1 -1
- package/docs/wiki/Function.UseFormArrayGroup.md +1 -1
- package/docs/wiki/Function.UseFormControl.md +1 -1
- package/docs/wiki/Function.UseFormGroup.md +1 -1
- package/docs/wiki/Function._IsNumber.md +1 -1
- package/docs/wiki/Function.controlDisabled$.md +1 -1
- package/docs/wiki/Function.controlDisabledWhile.md +1 -1
- package/docs/wiki/Function.controlEnabled$.md +1 -1
- package/docs/wiki/Function.controlEnabledWhile.md +1 -1
- package/docs/wiki/Function.controlErrorChanges$.md +1 -1
- package/docs/wiki/Function.controlReadonly$.md +1 -1
- package/docs/wiki/Function.controlStatusChanges$.md +1 -1
- package/docs/wiki/Function.controlValueChanges$.md +1 -1
- package/docs/wiki/Function.disableControl.md +1 -1
- package/docs/wiki/Function.enableControl.md +1 -1
- package/docs/wiki/Function.hasErrorAndDirty.md +1 -1
- package/docs/wiki/Function.hasErrorAndTouched.md +1 -1
- package/docs/wiki/Function.isNumber.md +1 -1
- package/docs/wiki/Function.markAllDirty.md +1 -1
- package/docs/wiki/Function.markAllPristine.md +1 -1
- package/docs/wiki/Function.markAllUntouched.md +1 -1
- package/docs/wiki/Function.mergeControlValidators.md +1 -1
- package/docs/wiki/Function.selectControlValue$.md +1 -1
- package/docs/wiki/Function.validateControlOn.md +1 -1
- package/docs/wiki/Interface.AbstractControl.md +121 -72
- package/docs/wiki/Interface.AbstractControlOptions.md +5 -5
- package/docs/wiki/Interface.BoxedValue.md +3 -3
- package/docs/wiki/Interface.ComplexityOptions.md +11 -11
- package/docs/wiki/Interface.ControlOptions.md +9 -9
- package/docs/wiki/Interface.ControlSetValueOptions.md +3 -3
- package/docs/wiki/Interface.FormArrayOptions.md +15 -15
- package/docs/wiki/Interface.FormDefinition.md +6 -6
- package/docs/wiki/Interface.FormDefinitionArray.md +69 -35
- package/docs/wiki/Interface.FormDefinitionMetadata.md +14 -14
- package/docs/wiki/Interface.FormGroupOptions.md +12 -12
- package/docs/wiki/Interface.FormLoadFailedMethod.md +3 -3
- package/docs/wiki/Interface.FormLoadMethod.md +3 -3
- package/docs/wiki/Interface.FormLoadSuccessfulMethod.md +3 -3
- package/docs/wiki/Interface.FormOptions.md +12 -12
- package/docs/wiki/Interface.FormSubmitFailedMethod.md +3 -3
- package/docs/wiki/Interface.FormSubmitMethod.md +3 -3
- package/docs/wiki/Interface.FormSubmitSuccessfulMethod.md +3 -3
- package/docs/wiki/Interface.InjectableValidator.md +3 -3
- package/docs/wiki/Interface.IsNumberOptions.md +5 -5
- package/docs/wiki/Interface.NgValidatorsErrors.md +8 -8
- package/docs/wiki/Interface.RxapAbstractControlOptionsWithDefinition.md +12 -12
- package/docs/wiki/Interface._RxapAbstractControlOptions.md +11 -11
- package/docs/wiki/TypeAlias.AsyncValidator.md +1 -1
- package/docs/wiki/TypeAlias.AsyncValidatorFn.md +1 -1
- package/docs/wiki/TypeAlias.ChangeFn.md +1 -1
- package/docs/wiki/TypeAlias.ControlEventOptions.md +1 -1
- package/docs/wiki/TypeAlias.ControlInsertedFn.md +1 -1
- package/docs/wiki/TypeAlias.ControlPath.md +1 -1
- package/docs/wiki/TypeAlias.ControlRemovedFn.md +1 -1
- package/docs/wiki/TypeAlias.ControlState.md +1 -1
- package/docs/wiki/TypeAlias.EmitEvent.md +1 -1
- package/docs/wiki/TypeAlias.ExtractAbstractControl.md +1 -1
- package/docs/wiki/TypeAlias.ExtractStrings.md +1 -1
- package/docs/wiki/TypeAlias.FormBuilderFn.md +1 -1
- package/docs/wiki/TypeAlias.FormType.md +1 -1
- package/docs/wiki/TypeAlias.KeyValueControls.md +1 -1
- package/docs/wiki/TypeAlias.OnlySelf.md +1 -1
- package/docs/wiki/TypeAlias.OrBoxedValue.md +1 -1
- package/docs/wiki/TypeAlias.RxapAbstractControlOptions.md +1 -1
- package/docs/wiki/TypeAlias.SetValueFn.md +1 -1
- package/docs/wiki/TypeAlias.ValidationErrors.md +1 -1
- package/docs/wiki/TypeAlias.Validator.md +1 -1
- package/docs/wiki/TypeAlias.ValidatorFn.md +1 -1
- package/docs/wiki/TypeAlias.ValidatorOrOpts.md +1 -1
- package/docs/wiki/Variable.RXAP_FORM_CONTEXT.md +1 -1
- package/docs/wiki/Variable.RXAP_FORM_DEFINITION.md +1 -1
- package/docs/wiki/Variable.RXAP_FORM_DEFINITION_BUILDER.md +1 -1
- package/docs/wiki/Variable.RXAP_FORM_INITIAL_STATE.md +1 -1
- package/docs/wiki/Variable.RXAP_FORM_LOAD_FAILED_METHOD.md +1 -1
- package/docs/wiki/Variable.RXAP_FORM_LOAD_METHOD.md +1 -1
- package/docs/wiki/Variable.RXAP_FORM_LOAD_SUCCESSFUL_METHOD.md +1 -1
- package/docs/wiki/Variable.RXAP_FORM_SUBMIT_FAILED_METHOD.md +1 -1
- package/docs/wiki/Variable.RXAP_FORM_SUBMIT_METHOD.md +1 -1
- package/docs/wiki/Variable.RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD.md +1 -1
- package/docs/wiki/Variable.RxapValidators.md +1 -1
- package/docs/wiki/_Sidebar.md +0 -1
- package/docs/wiki/globals.md +1 -2
- package/fesm2022/rxap-forms.mjs +1878 -2197
- package/fesm2022/rxap-forms.mjs.map +1 -1
- package/package.json +35 -30
- package/types/rxap-forms.d.ts +969 -0
- package/docs/html/classes/RxapFormsModule.html +0 -2
- package/docs/markdown/classes/RxapFormsModule.md +0 -19
- package/docs/wiki/Class.RxapFormsModule.md +0 -15
- package/index.d.ts +0 -55
- package/lib/control-actions.d.ts +0 -23
- package/lib/control-value-accessor.d.ts +0 -9
- package/lib/decorators/control-async-validator.d.ts +0 -1
- package/lib/decorators/control-change.d.ts +0 -1
- package/lib/decorators/control-set-value.d.ts +0 -5
- package/lib/decorators/control-validator.d.ts +0 -1
- package/lib/decorators/form.d.ts +0 -2
- package/lib/decorators/metadata-keys.d.ts +0 -10
- package/lib/decorators/use-form-array.d.ts +0 -4
- package/lib/decorators/use-form-control.d.ts +0 -2
- package/lib/decorators/use-form-group.d.ts +0 -3
- package/lib/directives/form-control-error.directive.d.ts +0 -22
- package/lib/directives/form-control-mark-dirty.directive.d.ts +0 -9
- package/lib/directives/form-control-mark-pristine.directive.d.ts +0 -9
- package/lib/directives/form-control-mark-touched.directive.d.ts +0 -9
- package/lib/directives/form-control-mark-untouched.directive.d.ts +0 -9
- package/lib/directives/form-control-name.directive.d.ts +0 -16
- package/lib/directives/form-group-name.directive.d.ts +0 -16
- package/lib/directives/form-loaded.directive.d.ts +0 -14
- package/lib/directives/form-loading-error.directive.d.ts +0 -16
- package/lib/directives/form-loading.directive.d.ts +0 -14
- package/lib/directives/form-reset.directive.d.ts +0 -11
- package/lib/directives/form-submit-failed.directive.d.ts +0 -16
- package/lib/directives/form-submit-invalid.directive.d.ts +0 -16
- package/lib/directives/form-submit-successful.directive.d.ts +0 -16
- package/lib/directives/form-submit.directive.d.ts +0 -22
- package/lib/directives/form-submitting.directive.d.ts +0 -14
- package/lib/directives/form.directive.d.ts +0 -62
- package/lib/directives/forms.module.d.ts +0 -23
- package/lib/directives/models.d.ts +0 -29
- package/lib/directives/parent-control-container.directive.d.ts +0 -5
- package/lib/directives/tokens.d.ts +0 -12
- package/lib/form-array.d.ts +0 -76
- package/lib/form-builder.d.ts +0 -96
- package/lib/form-control.d.ts +0 -64
- package/lib/form-group.d.ts +0 -89
- package/lib/model.d.ts +0 -81
- package/lib/tokens.d.ts +0 -3
- package/lib/types.d.ts +0 -100
- package/lib/validators/index.d.ts +0 -32
- package/lib/validators/is-array.d.ts +0 -4
- package/lib/validators/is-boolean.d.ts +0 -4
- package/lib/validators/is-complex.d.ts +0 -17
- package/lib/validators/is-date.d.ts +0 -4
- package/lib/validators/is-email.d.ts +0 -6
- package/lib/validators/is-enum.d.ts +0 -5
- package/lib/validators/is-int.d.ts +0 -6
- package/lib/validators/is-ip.d.ts +0 -5
- package/lib/validators/is-number.d.ts +0 -24
- package/lib/validators/is-object.d.ts +0 -4
- package/lib/validators/is-phone-number.d.ts +0 -7
- package/lib/validators/is-port.d.ts +0 -4
- package/lib/validators/is-string.d.ts +0 -4
- package/lib/validators/is-url.d.ts +0 -6
- package/lib/validators/is-uuid.d.ts +0 -5
|
@@ -153,18 +153,18 @@
|
|
|
153
153
|
<h3 id="index">Index</h3>
|
|
154
154
|
<table class="table table-sm table-bordered index-table">
|
|
155
155
|
<tbody>
|
|
156
|
-
|
|
157
156
|
<tr>
|
|
158
157
|
<td class="col-md-4">
|
|
159
|
-
<h6><b>
|
|
158
|
+
<h6><b>Properties</b></h6>
|
|
160
159
|
</td>
|
|
161
160
|
</tr>
|
|
162
161
|
<tr>
|
|
163
162
|
<td class="col-md-4">
|
|
164
163
|
<ul class="index-list">
|
|
165
164
|
<li>
|
|
166
|
-
<span class="modifier">
|
|
167
|
-
|
|
165
|
+
<span class="modifier">Public</span>
|
|
166
|
+
<span class="modifier">Readonly</span>
|
|
167
|
+
<a href="#type" >type</a>
|
|
168
168
|
</li>
|
|
169
169
|
</ul>
|
|
170
170
|
</td>
|
|
@@ -172,14 +172,15 @@
|
|
|
172
172
|
|
|
173
173
|
<tr>
|
|
174
174
|
<td class="col-md-4">
|
|
175
|
-
<h6><b>
|
|
175
|
+
<h6><b>Methods</b></h6>
|
|
176
176
|
</td>
|
|
177
177
|
</tr>
|
|
178
178
|
<tr>
|
|
179
179
|
<td class="col-md-4">
|
|
180
180
|
<ul class="index-list">
|
|
181
181
|
<li>
|
|
182
|
-
|
|
182
|
+
<span class="modifier">Protected</span>
|
|
183
|
+
<a href="#execute" >execute</a>
|
|
183
184
|
</li>
|
|
184
185
|
</ul>
|
|
185
186
|
</td>
|
|
@@ -188,88 +189,13 @@
|
|
|
188
189
|
|
|
189
190
|
|
|
190
191
|
|
|
192
|
+
|
|
191
193
|
</tbody>
|
|
192
194
|
</table>
|
|
193
195
|
</section>
|
|
194
196
|
|
|
195
|
-
<section data-compodoc="block-constructor">
|
|
196
|
-
<h3 id="constructor">Constructor</h3>
|
|
197
|
-
<table class="table table-sm table-bordered">
|
|
198
|
-
<tbody>
|
|
199
|
-
<tr>
|
|
200
|
-
<td class="col-md-4">
|
|
201
|
-
<code>constructor(formDirective: <a href="../directives/FormDirective.html" target="_self">FormDirective</a>)</code>
|
|
202
|
-
</td>
|
|
203
|
-
</tr>
|
|
204
|
-
<tr>
|
|
205
|
-
<td class="col-md-4">
|
|
206
|
-
<div class="io-line">Defined in <a href="" data-line="22" class="link-to-prism">src/lib/directives/form-reset.directive.ts:22</a></div>
|
|
207
|
-
</td>
|
|
208
|
-
</tr>
|
|
209
197
|
|
|
210
|
-
<tr>
|
|
211
|
-
<td class="col-md-4">
|
|
212
|
-
<div>
|
|
213
|
-
<b>Parameters :</b>
|
|
214
|
-
<table class="params">
|
|
215
|
-
<thead>
|
|
216
|
-
<tr>
|
|
217
|
-
<td>Name</td>
|
|
218
|
-
<td>Type</td>
|
|
219
|
-
<td>Optional</td>
|
|
220
|
-
</tr>
|
|
221
|
-
</thead>
|
|
222
|
-
<tbody>
|
|
223
|
-
<tr>
|
|
224
|
-
<td>formDirective</td>
|
|
225
|
-
|
|
226
|
-
<td>
|
|
227
|
-
<code><a href="../directives/FormDirective.html" target="_self" >FormDirective</a></code>
|
|
228
|
-
</td>
|
|
229
|
-
|
|
230
|
-
<td>
|
|
231
|
-
No
|
|
232
|
-
</td>
|
|
233
|
-
|
|
234
|
-
</tr>
|
|
235
|
-
</tbody>
|
|
236
|
-
</table>
|
|
237
|
-
</div>
|
|
238
|
-
</td>
|
|
239
|
-
</tr>
|
|
240
|
-
</tbody>
|
|
241
|
-
</table>
|
|
242
|
-
</section>
|
|
243
|
-
|
|
244
|
-
<section data-compodoc="block-inputs">
|
|
245
|
-
<h3 id="inputs">Inputs</h3>
|
|
246
|
-
<table class="table table-sm table-bordered">
|
|
247
|
-
<tbody>
|
|
248
|
-
<tr>
|
|
249
|
-
<td class="col-md-4">
|
|
250
|
-
<a name="type"></a>
|
|
251
|
-
<b>type</b>
|
|
252
|
-
</td>
|
|
253
|
-
</tr>
|
|
254
|
-
<tr>
|
|
255
|
-
<td class="col-md-4">
|
|
256
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
257
198
|
|
|
258
|
-
</td>
|
|
259
|
-
</tr>
|
|
260
|
-
<tr>
|
|
261
|
-
<td class="col-md-4">
|
|
262
|
-
<i>Default value : </i><code>'button'</code>
|
|
263
|
-
</td>
|
|
264
|
-
</tr>
|
|
265
|
-
<tr>
|
|
266
|
-
<td class="col-md-2" colspan="2">
|
|
267
|
-
<div class="io-line">Defined in <a href="" data-line="22" class="link-to-prism">src/lib/directives/form-reset.directive.ts:22</a></div>
|
|
268
|
-
</td>
|
|
269
|
-
</tr>
|
|
270
|
-
</tbody>
|
|
271
|
-
</table>
|
|
272
|
-
</section>
|
|
273
199
|
|
|
274
200
|
|
|
275
201
|
|
|
@@ -300,8 +226,8 @@
|
|
|
300
226
|
|
|
301
227
|
<tr>
|
|
302
228
|
<td class="col-md-4">
|
|
303
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
304
|
-
class="link-to-prism">src/lib/directives/form-reset.directive.ts:
|
|
229
|
+
<div class="io-line">Defined in <a href="" data-line="17"
|
|
230
|
+
class="link-to-prism">src/lib/directives/form-reset.directive.ts:17</a></div>
|
|
305
231
|
</td>
|
|
306
232
|
</tr>
|
|
307
233
|
|
|
@@ -318,40 +244,60 @@
|
|
|
318
244
|
</tbody>
|
|
319
245
|
</table>
|
|
320
246
|
</section>
|
|
247
|
+
<section data-compodoc="block-properties">
|
|
248
|
+
|
|
249
|
+
<h3 id="inputs">
|
|
250
|
+
Properties
|
|
251
|
+
</h3>
|
|
252
|
+
<table class="table table-sm table-bordered">
|
|
253
|
+
<tbody>
|
|
254
|
+
<tr>
|
|
255
|
+
<td class="col-md-4">
|
|
256
|
+
<a name="type"></a>
|
|
257
|
+
<span class="name">
|
|
258
|
+
<span class="modifier">Public</span>
|
|
259
|
+
<span class="modifier">Readonly</span>
|
|
260
|
+
<span ><b>type</b></span>
|
|
261
|
+
<a href="#type"><span class="icon ion-ios-link"></span></a>
|
|
262
|
+
</span>
|
|
263
|
+
</td>
|
|
264
|
+
</tr>
|
|
265
|
+
<tr>
|
|
266
|
+
<td class="col-md-4">
|
|
267
|
+
<i>Default value : </i><code>input('button')</code>
|
|
268
|
+
</td>
|
|
269
|
+
</tr>
|
|
270
|
+
<tr>
|
|
271
|
+
<td class="col-md-4">
|
|
272
|
+
<div class="io-line">Defined in <a href="" data-line="15" class="link-to-prism">src/lib/directives/form-reset.directive.ts:15</a></div>
|
|
273
|
+
</td>
|
|
274
|
+
</tr>
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
</tbody>
|
|
278
|
+
</table>
|
|
279
|
+
</section>
|
|
321
280
|
|
|
322
281
|
|
|
323
282
|
</div>
|
|
324
283
|
|
|
325
284
|
|
|
326
285
|
<div class="tab-pane fade tab-source-code" id="source">
|
|
327
|
-
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
328
|
-
Directive,
|
|
329
|
-
HostBinding,
|
|
330
|
-
Inject,
|
|
331
|
-
Input,
|
|
332
|
-
} from '@angular/core';
|
|
286
|
+
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Directive, inject, input } from '@angular/core';
|
|
333
287
|
import { ConfirmClick } from '@rxap/directives';
|
|
334
288
|
import { FormDirective } from './form.directive';
|
|
335
289
|
|
|
336
290
|
@Directive({
|
|
337
291
|
selector: '[rxapFormReset]',
|
|
338
292
|
host: {
|
|
339
|
-
'
|
|
340
|
-
'(confirmed)': 'onConfirm()',
|
|
293
|
+
'[type]': 'type()',
|
|
341
294
|
},
|
|
342
295
|
standalone: true,
|
|
343
296
|
})
|
|
344
297
|
export class FormResetDirective extends ConfirmClick {
|
|
298
|
+
private readonly formDirective = inject<FormDirective>(FormDirective);
|
|
345
299
|
|
|
346
|
-
|
|
347
|
-
@Input()
|
|
348
|
-
public type = 'button';
|
|
349
|
-
|
|
350
|
-
constructor(
|
|
351
|
-
@Inject(FormDirective) private readonly formDirective: FormDirective,
|
|
352
|
-
) {
|
|
353
|
-
super();
|
|
354
|
-
}
|
|
300
|
+
public readonly type = input('button');
|
|
355
301
|
|
|
356
302
|
protected execute() {
|
|
357
303
|
this.formDirective.reset();
|
|
@@ -173,26 +173,37 @@
|
|
|
173
173
|
<ul class="index-list">
|
|
174
174
|
<li>
|
|
175
175
|
<span class="modifier">Public</span>
|
|
176
|
+
<span class="modifier">Readonly</span>
|
|
176
177
|
<a href="#afterSubmit" >afterSubmit</a>
|
|
177
178
|
</li>
|
|
178
179
|
<li>
|
|
180
|
+
<span class="modifier">Public</span>
|
|
181
|
+
<span class="modifier">Readonly</span>
|
|
179
182
|
<a href="#disabled" >disabled</a>
|
|
180
183
|
</li>
|
|
181
184
|
<li>
|
|
185
|
+
<span class="modifier">Public</span>
|
|
186
|
+
<span class="modifier">Readonly</span>
|
|
182
187
|
<a href="#disableWhileSubmitting" >disableWhileSubmitting</a>
|
|
183
188
|
</li>
|
|
184
189
|
<li>
|
|
185
190
|
<span class="modifier">Public</span>
|
|
191
|
+
<span class="modifier">Readonly</span>
|
|
186
192
|
<a href="#navigateAfterSubmit" >navigateAfterSubmit</a>
|
|
187
193
|
</li>
|
|
188
194
|
<li>
|
|
195
|
+
<span class="modifier">Public</span>
|
|
196
|
+
<span class="modifier">Readonly</span>
|
|
189
197
|
<a href="#resetAfterSubmit" >resetAfterSubmit</a>
|
|
190
198
|
</li>
|
|
191
199
|
<li>
|
|
200
|
+
<span class="modifier">Public</span>
|
|
201
|
+
<span class="modifier">Readonly</span>
|
|
192
202
|
<a href="#submitting" >submitting</a>
|
|
193
203
|
</li>
|
|
194
204
|
<li>
|
|
195
205
|
<span class="modifier">Public</span>
|
|
206
|
+
<span class="modifier">Readonly</span>
|
|
196
207
|
<a href="#type" >type</a>
|
|
197
208
|
</li>
|
|
198
209
|
</ul>
|
|
@@ -237,66 +248,6 @@
|
|
|
237
248
|
</table>
|
|
238
249
|
</section>
|
|
239
250
|
|
|
240
|
-
<section data-compodoc="block-constructor">
|
|
241
|
-
<h3 id="constructor">Constructor</h3>
|
|
242
|
-
<table class="table table-sm table-bordered">
|
|
243
|
-
<tbody>
|
|
244
|
-
<tr>
|
|
245
|
-
<td class="col-md-4">
|
|
246
|
-
<code>constructor(formDirective: <a href="../directives/FormDirective.html" target="_self">FormDirective</a>, router: Router | null)</code>
|
|
247
|
-
</td>
|
|
248
|
-
</tr>
|
|
249
|
-
<tr>
|
|
250
|
-
<td class="col-md-4">
|
|
251
|
-
<div class="io-line">Defined in <a href="" data-line="52" class="link-to-prism">src/lib/directives/form-submit.directive.ts:52</a></div>
|
|
252
|
-
</td>
|
|
253
|
-
</tr>
|
|
254
|
-
|
|
255
|
-
<tr>
|
|
256
|
-
<td class="col-md-4">
|
|
257
|
-
<div>
|
|
258
|
-
<b>Parameters :</b>
|
|
259
|
-
<table class="params">
|
|
260
|
-
<thead>
|
|
261
|
-
<tr>
|
|
262
|
-
<td>Name</td>
|
|
263
|
-
<td>Type</td>
|
|
264
|
-
<td>Optional</td>
|
|
265
|
-
</tr>
|
|
266
|
-
</thead>
|
|
267
|
-
<tbody>
|
|
268
|
-
<tr>
|
|
269
|
-
<td>formDirective</td>
|
|
270
|
-
|
|
271
|
-
<td>
|
|
272
|
-
<code><a href="../directives/FormDirective.html" target="_self" >FormDirective</a></code>
|
|
273
|
-
</td>
|
|
274
|
-
|
|
275
|
-
<td>
|
|
276
|
-
No
|
|
277
|
-
</td>
|
|
278
|
-
|
|
279
|
-
</tr>
|
|
280
|
-
<tr>
|
|
281
|
-
<td>router</td>
|
|
282
|
-
|
|
283
|
-
<td>
|
|
284
|
-
<code>Router | null</code>
|
|
285
|
-
</td>
|
|
286
|
-
|
|
287
|
-
<td>
|
|
288
|
-
No
|
|
289
|
-
</td>
|
|
290
|
-
|
|
291
|
-
</tr>
|
|
292
|
-
</tbody>
|
|
293
|
-
</table>
|
|
294
|
-
</div>
|
|
295
|
-
</td>
|
|
296
|
-
</tr>
|
|
297
|
-
</tbody>
|
|
298
|
-
</table>
|
|
299
|
-
</section>
|
|
300
251
|
|
|
301
252
|
<section data-compodoc="block-inputs">
|
|
302
253
|
<h3 id="inputs">Inputs</h3>
|
|
@@ -315,7 +266,7 @@
|
|
|
315
266
|
</tr>
|
|
316
267
|
<tr>
|
|
317
268
|
<td class="col-md-2" colspan="2">
|
|
318
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
269
|
+
<div class="io-line">Defined in <a href="" data-line="39" class="link-to-prism">src/lib/directives/form-submit.directive.ts:39</a></div>
|
|
319
270
|
</td>
|
|
320
271
|
</tr>
|
|
321
272
|
</tbody>
|
|
@@ -351,8 +302,8 @@
|
|
|
351
302
|
|
|
352
303
|
<tr>
|
|
353
304
|
<td class="col-md-4">
|
|
354
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
355
|
-
class="link-to-prism">src/lib/directives/form-submit.directive.ts:
|
|
305
|
+
<div class="io-line">Defined in <a href="" data-line="47"
|
|
306
|
+
class="link-to-prism">src/lib/directives/form-submit.directive.ts:47</a></div>
|
|
356
307
|
</td>
|
|
357
308
|
</tr>
|
|
358
309
|
|
|
@@ -381,6 +332,7 @@
|
|
|
381
332
|
<a name="afterSubmit"></a>
|
|
382
333
|
<span class="name">
|
|
383
334
|
<span class="modifier">Public</span>
|
|
335
|
+
<span class="modifier">Readonly</span>
|
|
384
336
|
<span ><b>afterSubmit</b></span>
|
|
385
337
|
<a href="#afterSubmit"><span class="icon ion-ios-link"></span></a>
|
|
386
338
|
</span>
|
|
@@ -393,7 +345,7 @@
|
|
|
393
345
|
</tr>
|
|
394
346
|
<tr>
|
|
395
347
|
<td class="col-md-4">
|
|
396
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
348
|
+
<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>
|
|
397
349
|
</td>
|
|
398
350
|
</tr>
|
|
399
351
|
|
|
@@ -406,6 +358,8 @@
|
|
|
406
358
|
<td class="col-md-4">
|
|
407
359
|
<a name="disabled"></a>
|
|
408
360
|
<span class="name">
|
|
361
|
+
<span class="modifier">Public</span>
|
|
362
|
+
<span class="modifier">Readonly</span>
|
|
409
363
|
<span ><b>disabled</b></span>
|
|
410
364
|
<a href="#disabled"><span class="icon ion-ios-link"></span></a>
|
|
411
365
|
</span>
|
|
@@ -418,7 +372,7 @@
|
|
|
418
372
|
</tr>
|
|
419
373
|
<tr>
|
|
420
374
|
<td class="col-md-4">
|
|
421
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
375
|
+
<div class="io-line">Defined in <a href="" data-line="43" class="link-to-prism">src/lib/directives/form-submit.directive.ts:43</a></div>
|
|
422
376
|
</td>
|
|
423
377
|
</tr>
|
|
424
378
|
|
|
@@ -431,6 +385,8 @@
|
|
|
431
385
|
<td class="col-md-4">
|
|
432
386
|
<a name="disableWhileSubmitting"></a>
|
|
433
387
|
<span class="name">
|
|
388
|
+
<span class="modifier">Public</span>
|
|
389
|
+
<span class="modifier">Readonly</span>
|
|
434
390
|
<span ><b>disableWhileSubmitting</b></span>
|
|
435
391
|
<a href="#disableWhileSubmitting"><span class="icon ion-ios-link"></span></a>
|
|
436
392
|
</span>
|
|
@@ -443,7 +399,7 @@
|
|
|
443
399
|
</tr>
|
|
444
400
|
<tr>
|
|
445
401
|
<td class="col-md-4">
|
|
446
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
402
|
+
<div class="io-line">Defined in <a href="" data-line="39" class="link-to-prism">src/lib/directives/form-submit.directive.ts:39</a></div>
|
|
447
403
|
</td>
|
|
448
404
|
</tr>
|
|
449
405
|
|
|
@@ -457,6 +413,7 @@
|
|
|
457
413
|
<a name="navigateAfterSubmit"></a>
|
|
458
414
|
<span class="name">
|
|
459
415
|
<span class="modifier">Public</span>
|
|
416
|
+
<span class="modifier">Readonly</span>
|
|
460
417
|
<span ><b>navigateAfterSubmit</b></span>
|
|
461
418
|
<a href="#navigateAfterSubmit"><span class="icon ion-ios-link"></span></a>
|
|
462
419
|
</span>
|
|
@@ -469,7 +426,7 @@
|
|
|
469
426
|
</tr>
|
|
470
427
|
<tr>
|
|
471
428
|
<td class="col-md-4">
|
|
472
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
429
|
+
<div class="io-line">Defined in <a href="" data-line="35" class="link-to-prism">src/lib/directives/form-submit.directive.ts:35</a></div>
|
|
473
430
|
</td>
|
|
474
431
|
</tr>
|
|
475
432
|
|
|
@@ -482,6 +439,8 @@
|
|
|
482
439
|
<td class="col-md-4">
|
|
483
440
|
<a name="resetAfterSubmit"></a>
|
|
484
441
|
<span class="name">
|
|
442
|
+
<span class="modifier">Public</span>
|
|
443
|
+
<span class="modifier">Readonly</span>
|
|
485
444
|
<span ><b>resetAfterSubmit</b></span>
|
|
486
445
|
<a href="#resetAfterSubmit"><span class="icon ion-ios-link"></span></a>
|
|
487
446
|
</span>
|
|
@@ -494,7 +453,7 @@
|
|
|
494
453
|
</tr>
|
|
495
454
|
<tr>
|
|
496
455
|
<td class="col-md-4">
|
|
497
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
456
|
+
<div class="io-line">Defined in <a href="" data-line="33" class="link-to-prism">src/lib/directives/form-submit.directive.ts:33</a></div>
|
|
498
457
|
</td>
|
|
499
458
|
</tr>
|
|
500
459
|
|
|
@@ -507,6 +466,8 @@
|
|
|
507
466
|
<td class="col-md-4">
|
|
508
467
|
<a name="submitting"></a>
|
|
509
468
|
<span class="name">
|
|
469
|
+
<span class="modifier">Public</span>
|
|
470
|
+
<span class="modifier">Readonly</span>
|
|
510
471
|
<span ><b>submitting</b></span>
|
|
511
472
|
<a href="#submitting"><span class="icon ion-ios-link"></span></a>
|
|
512
473
|
</span>
|
|
@@ -519,7 +480,7 @@
|
|
|
519
480
|
</tr>
|
|
520
481
|
<tr>
|
|
521
482
|
<td class="col-md-4">
|
|
522
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
483
|
+
<div class="io-line">Defined in <a href="" data-line="41" class="link-to-prism">src/lib/directives/form-submit.directive.ts:41</a></div>
|
|
523
484
|
</td>
|
|
524
485
|
</tr>
|
|
525
486
|
|
|
@@ -533,6 +494,7 @@
|
|
|
533
494
|
<a name="type"></a>
|
|
534
495
|
<span class="name">
|
|
535
496
|
<span class="modifier">Public</span>
|
|
497
|
+
<span class="modifier">Readonly</span>
|
|
536
498
|
<span ><b>type</b></span>
|
|
537
499
|
<a href="#type"><span class="icon ion-ios-link"></span></a>
|
|
538
500
|
</span>
|
|
@@ -545,7 +507,7 @@
|
|
|
545
507
|
</tr>
|
|
546
508
|
<tr>
|
|
547
509
|
<td class="col-md-4">
|
|
548
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
510
|
+
<div class="io-line">Defined in <a href="" data-line="31" class="link-to-prism">src/lib/directives/form-submit.directive.ts:31</a></div>
|
|
549
511
|
</td>
|
|
550
512
|
</tr>
|
|
551
513
|
|
|
@@ -559,16 +521,8 @@
|
|
|
559
521
|
|
|
560
522
|
|
|
561
523
|
<div class="tab-pane fade tab-source-code" id="source">
|
|
562
|
-
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
563
|
-
|
|
564
|
-
Directive,
|
|
565
|
-
Inject,
|
|
566
|
-
input,
|
|
567
|
-
OnDestroy,
|
|
568
|
-
Optional,
|
|
569
|
-
output,
|
|
570
|
-
} from '@angular/core';
|
|
571
|
-
import { toSignal } from '@angular/core/rxjs-interop';
|
|
524
|
+
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { computed, Directive, inject, input, OnDestroy, output } from '@angular/core';
|
|
525
|
+
import { outputToObservable, toSignal } from '@angular/core/rxjs-interop';
|
|
572
526
|
import { Router } from '@angular/router';
|
|
573
527
|
import { ConfirmClick } from '@rxap/directives';
|
|
574
528
|
import {
|
|
@@ -586,8 +540,6 @@ import { FormDirective } from './form.directive';
|
|
|
586
540
|
selector: '[rxapFormSubmit]',
|
|
587
541
|
|
|
588
542
|
host: {
|
|
589
|
-
'(click)': 'onClick()',
|
|
590
|
-
'(confirmed)': 'onConfirm()',
|
|
591
543
|
'[disabled]': 'disabled()',
|
|
592
544
|
'[type]': 'type()',
|
|
593
545
|
},
|
|
@@ -595,37 +547,30 @@ import { FormDirective } from './form.directive';
|
|
|
595
547
|
exportAs: 'rxapFormSubmit',
|
|
596
548
|
})
|
|
597
549
|
export class FormSubmitDirective extends ConfirmClick implements OnDestroy {
|
|
550
|
+
private readonly formDirective = inject<FormDirective>(FormDirective);
|
|
551
|
+
private readonly router = inject<Router | null>(Router, { optional: true }) ?? null;
|
|
598
552
|
|
|
599
|
-
public type = input<'button' | 'submit' | 'reset'>('button');
|
|
600
553
|
|
|
601
|
-
|
|
554
|
+
public readonly type = input<'button' | 'submit' | 'reset'>('button');
|
|
602
555
|
|
|
603
|
-
public
|
|
556
|
+
public readonly resetAfterSubmit = input<boolean | '', boolean>(false, { transform: coerceBoolean });
|
|
604
557
|
|
|
605
|
-
public
|
|
558
|
+
public readonly navigateAfterSubmit = input<string[]>();
|
|
606
559
|
|
|
607
|
-
|
|
560
|
+
public readonly afterSubmit = output<any>();
|
|
608
561
|
|
|
609
|
-
|
|
562
|
+
public readonly disableWhileSubmitting = input(true);
|
|
610
563
|
|
|
611
|
-
|
|
564
|
+
public readonly submitting = toSignal(this.formDirective.submitting$, { initialValue: false });
|
|
612
565
|
|
|
613
|
-
|
|
566
|
+
public readonly disabled = computed(() => this.disableWhileSubmitting() && this.submitting())
|
|
614
567
|
|
|
615
|
-
|
|
616
|
-
@Inject(FormDirective) private readonly formDirective: FormDirective,
|
|
617
|
-
@Optional()
|
|
618
|
-
@Inject(Router)
|
|
619
|
-
private readonly router: Router | null = null,
|
|
620
|
-
) {
|
|
621
|
-
super();
|
|
622
|
-
}
|
|
568
|
+
private subscription?: Subscription;
|
|
623
569
|
|
|
624
570
|
protected execute() {
|
|
625
571
|
this.formDirective.form.markAllAsDirty();
|
|
626
572
|
this.formDirective.form.markAllAsTouched();
|
|
627
|
-
this.formDirective.
|
|
628
|
-
this.subscription = this.formDirective.rxapSubmit.pipe(
|
|
573
|
+
this.subscription = outputToObservable(this.formDirective.rxapSubmit).pipe(
|
|
629
574
|
take(1),
|
|
630
575
|
tap(value => {
|
|
631
576
|
const clonedValue = clone(value);
|