@rxap/forms 19.2.0-dev.1 → 21.0.1-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 +27 -0
- package/compodoc/changelog.html +24 -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/js/search/search_index.js +2 -2
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +12279 -9865
- package/docs/html/assets/hierarchy.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 +33 -33
- package/docs/html/classes/FormDirective.html +47 -47
- package/docs/html/classes/FormGroupNameDirective.html +28 -28
- 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 +3 -3
- 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 +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/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 +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 +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 +36 -38
- package/docs/markdown/classes/FormDirective.md +139 -91
- package/docs/markdown/classes/FormGroupNameDirective.md +31 -31
- 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 +15 -15
- 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 +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/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 +122 -73
- package/docs/markdown/interfaces/AbstractControlOptions.md +5 -5
- package/docs/markdown/interfaces/BoxedValue.md +4 -4
- package/docs/markdown/interfaces/ComplexityOptions.md +12 -12
- package/docs/markdown/interfaces/ControlOptions.md +10 -10
- package/docs/markdown/interfaces/ControlSetValueOptions.md +4 -4
- package/docs/markdown/interfaces/FormArrayOptions.md +15 -15
- package/docs/markdown/interfaces/FormDefinition.md +7 -7
- package/docs/markdown/interfaces/FormDefinitionArray.md +70 -36
- package/docs/markdown/interfaces/FormDefinitionMetadata.md +14 -14
- package/docs/markdown/interfaces/FormGroupOptions.md +12 -12
- 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 +12 -12
- 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 +11 -11
- package/docs/markdown/interfaces/RxapAbstractControlOptionsWithDefinition.md +12 -12
- 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 +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 +35 -37
- package/docs/wiki/Class.FormDirective.md +138 -90
- package/docs/wiki/Class.FormGroupNameDirective.md +30 -30
- 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 +14 -14
- 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 +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/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 +121 -72
- package/docs/wiki/Interface.AbstractControlOptions.md +4 -4
- package/docs/wiki/Interface.BoxedValue.md +3 -3
- package/docs/wiki/Interface.ComplexityOptions.md +11 -11
- package/docs/wiki/Interface.ControlOptions.md +9 -9
- package/docs/wiki/Interface.ControlSetValueOptions.md +3 -3
- package/docs/wiki/Interface.FormArrayOptions.md +14 -14
- package/docs/wiki/Interface.FormDefinition.md +6 -6
- package/docs/wiki/Interface.FormDefinitionArray.md +69 -35
- package/docs/wiki/Interface.FormDefinitionMetadata.md +13 -13
- package/docs/wiki/Interface.FormGroupOptions.md +11 -11
- 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 +11 -11
- 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 +11 -11
- package/docs/wiki/Interface._RxapAbstractControlOptions.md +10 -10
- 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 +79 -78
- package/fesm2022/rxap-forms.mjs.map +1 -1
- package/package.json +35 -30
- package/types/rxap-forms.d.ts +979 -0
- 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
package/index.d.ts
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
export * from './lib/validators/index';
|
|
2
|
-
export * from './lib/validators/is-array';
|
|
3
|
-
export * from './lib/validators/is-boolean';
|
|
4
|
-
export * from './lib/validators/is-complex';
|
|
5
|
-
export * from './lib/validators/is-date';
|
|
6
|
-
export * from './lib/validators/is-email';
|
|
7
|
-
export * from './lib/validators/is-enum';
|
|
8
|
-
export * from './lib/validators/is-int';
|
|
9
|
-
export * from './lib/validators/is-ip';
|
|
10
|
-
export * from './lib/validators/is-number';
|
|
11
|
-
export * from './lib/validators/is-object';
|
|
12
|
-
export * from './lib/validators/is-phone-number';
|
|
13
|
-
export * from './lib/validators/is-port';
|
|
14
|
-
export * from './lib/validators/is-string';
|
|
15
|
-
export * from './lib/validators/is-url';
|
|
16
|
-
export * from './lib/validators/is-uuid';
|
|
17
|
-
export * from './lib/directives/form-control-error.directive';
|
|
18
|
-
export * from './lib/directives/form-control-mark-dirty.directive';
|
|
19
|
-
export * from './lib/directives/form-control-mark-pristine.directive';
|
|
20
|
-
export * from './lib/directives/form-control-mark-touched.directive';
|
|
21
|
-
export * from './lib/directives/form-control-mark-untouched.directive';
|
|
22
|
-
export * from './lib/directives/form-control-name.directive';
|
|
23
|
-
export * from './lib/directives/form-group-name.directive';
|
|
24
|
-
export * from './lib/directives/form-loaded.directive';
|
|
25
|
-
export * from './lib/directives/form-loading-error.directive';
|
|
26
|
-
export * from './lib/directives/form-loading.directive';
|
|
27
|
-
export * from './lib/directives/form-reset.directive';
|
|
28
|
-
export * from './lib/directives/form-submit-failed.directive';
|
|
29
|
-
export * from './lib/directives/form-submit-invalid.directive';
|
|
30
|
-
export * from './lib/directives/form-submit-successful.directive';
|
|
31
|
-
export * from './lib/directives/form-submit.directive';
|
|
32
|
-
export * from './lib/directives/form-submitting.directive';
|
|
33
|
-
export * from './lib/directives/form.directive';
|
|
34
|
-
export * from './lib/directives/forms.module';
|
|
35
|
-
export * from './lib/directives/models';
|
|
36
|
-
export * from './lib/directives/parent-control-container.directive';
|
|
37
|
-
export * from './lib/directives/tokens';
|
|
38
|
-
export * from './lib/decorators/control-async-validator';
|
|
39
|
-
export * from './lib/decorators/control-change';
|
|
40
|
-
export * from './lib/decorators/control-set-value';
|
|
41
|
-
export * from './lib/decorators/control-validator';
|
|
42
|
-
export * from './lib/decorators/form';
|
|
43
|
-
export * from './lib/decorators/metadata-keys';
|
|
44
|
-
export * from './lib/decorators/use-form-array';
|
|
45
|
-
export * from './lib/decorators/use-form-control';
|
|
46
|
-
export * from './lib/decorators/use-form-group';
|
|
47
|
-
export * from './lib/control-actions';
|
|
48
|
-
export * from './lib/control-value-accessor';
|
|
49
|
-
export * from './lib/form-array';
|
|
50
|
-
export * from './lib/form-builder';
|
|
51
|
-
export * from './lib/form-control';
|
|
52
|
-
export * from './lib/form-group';
|
|
53
|
-
export * from './lib/model';
|
|
54
|
-
export * from './lib/tokens';
|
|
55
|
-
export * from './lib/types';
|
package/lib/control-actions.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Observable, Subscription } from 'rxjs';
|
|
2
|
-
import { AbstractControl, ControlOptions, ControlPath, ControlState, ValidatorFn } from './types';
|
|
3
|
-
import { RxapFormArray } from './form-array';
|
|
4
|
-
import { RxapFormGroup } from './form-group';
|
|
5
|
-
import { RxapFormControl } from './form-control';
|
|
6
|
-
export declare function controlValueChanges$<T>(control: AbstractControl<T>): Observable<T>;
|
|
7
|
-
export declare function controlDisabled$<T>(control: AbstractControl<T>): Observable<boolean>;
|
|
8
|
-
export declare function controlEnabled$<T>(control: AbstractControl<T>): Observable<boolean>;
|
|
9
|
-
export declare function controlReadonly$<T>(control: AbstractControl<T>): Observable<boolean>;
|
|
10
|
-
export declare function controlStatusChanges$<T>(control: AbstractControl<T>): Observable<ControlState>;
|
|
11
|
-
export declare function controlErrorChanges$<E>(control: AbstractControl): Observable<E | null>;
|
|
12
|
-
export declare function enableControl<T>(control: AbstractControl<T>, enabled: boolean, opts?: ControlOptions): void;
|
|
13
|
-
export declare function disableControl<T>(control: AbstractControl<T>, disabled: boolean, opts?: ControlOptions): void;
|
|
14
|
-
export declare function controlDisabledWhile<T>(control: AbstractControl<T>, observable: Observable<boolean>, opts?: ControlOptions): Subscription;
|
|
15
|
-
export declare function controlEnabledWhile<T>(control: AbstractControl<T>, observable: Observable<boolean>, opts?: ControlOptions): Subscription;
|
|
16
|
-
export declare function mergeControlValidators<T, Control extends AbstractControl<T>>(control: Control, validators: ValidatorFn<T> | ValidatorFn<T>[]): void;
|
|
17
|
-
export declare function validateControlOn<T>(control: AbstractControl<T>, validation: Observable<null | object>): Subscription;
|
|
18
|
-
export declare function hasErrorAndTouched<T>(control: AbstractControl<T>, error: string, path?: ControlPath): boolean;
|
|
19
|
-
export declare function hasErrorAndDirty<T>(control: AbstractControl<T>, error: string, path?: ControlPath): boolean;
|
|
20
|
-
export declare function markAllDirty<T>(control: RxapFormArray<T> | RxapFormGroup<T>): void;
|
|
21
|
-
export declare function markAllPristine<T>(control: RxapFormArray<T> | RxapFormGroup<T>): void;
|
|
22
|
-
export declare function markAllUntouched<T>(control: RxapFormArray<T> | RxapFormGroup<T>): void;
|
|
23
|
-
export declare function selectControlValue$<T, R>(control: RxapFormGroup<T> | RxapFormArray<T> | RxapFormControl<T>, mapFn: (state: T) => R): Observable<R>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ControlValueAccessor as NgControlValueAccessor } from '@angular/forms';
|
|
2
|
-
export declare abstract class ControlValueAccessor<T = any> implements NgControlValueAccessor {
|
|
3
|
-
abstract writeValue(value: T): void;
|
|
4
|
-
onChange?: ((value: T | null) => void) | undefined;
|
|
5
|
-
onTouched?: (() => void) | undefined;
|
|
6
|
-
registerOnChange(fn: (value: T | null) => void): void;
|
|
7
|
-
registerOnTouched(fn: () => void): void;
|
|
8
|
-
setDisabledState?: ((isDisabled: boolean) => void) | undefined;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function ControlAsyncValidator(...controlIds: string[]): (target: any, propertyKey: string) => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function ControlChange(...controlIds: string[]): (target: any, propertyKey: string) => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function ControlValidator(...controlIds: string[]): (target: any, propertyKey: string) => void;
|
package/lib/decorators/form.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare enum MetadataKeys {
|
|
2
|
-
CONTROL_VALIDATORS = "rxap/forms/control-validators",
|
|
3
|
-
CONTROL_ASYNC_VALIDATORS = "rxap/forms/control-async-validators",
|
|
4
|
-
CONTROL_CHANGES = "rxap/forms/control-changes",
|
|
5
|
-
CONTROL_SET_VALUE = "rxap/forms/control-set-value",
|
|
6
|
-
FORM_ARRAY_GROUPS = "rxap/forms/form-array-groups",
|
|
7
|
-
FORM_ARRAY_CONTROLS = "rxap/forms/form-array-controls",
|
|
8
|
-
FORM_GROUPS = "rxap/forms/form-groups",
|
|
9
|
-
FORM_CONTROLS = "rxap/forms/form-controls"
|
|
10
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Constructor } from '@rxap/utilities';
|
|
2
|
-
import { RxapAbstractControlOptions } from '../model';
|
|
3
|
-
export declare function UseFormArrayGroup(definition: Constructor, options?: RxapAbstractControlOptions): (target: any, propertyKey: string) => void;
|
|
4
|
-
export declare function UseFormArrayControl(options?: RxapAbstractControlOptions): (target: any, propertyKey: string) => void;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { OnDestroy, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { ControlContainer } from '@angular/forms';
|
|
3
|
-
import { ValidationErrors } from '../types';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated removed use the rxapControlError or rxapControlErrors directive
|
|
7
|
-
*/
|
|
8
|
-
export declare class FormControlErrorDirective implements OnInit, OnDestroy {
|
|
9
|
-
private readonly template;
|
|
10
|
-
private readonly parent;
|
|
11
|
-
private readonly viewContainerRef;
|
|
12
|
-
name: string;
|
|
13
|
-
errorKey: string;
|
|
14
|
-
private subscription?;
|
|
15
|
-
constructor(template: TemplateRef<{
|
|
16
|
-
$implicit: ValidationErrors;
|
|
17
|
-
}>, parent: ControlContainer, viewContainerRef: ViewContainerRef);
|
|
18
|
-
ngOnInit(): void;
|
|
19
|
-
ngOnDestroy(): void;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormControlErrorDirective, [null, { host: true; skipSelf: true; }, null]>;
|
|
21
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlErrorDirective, "[rxapFormControlError]", never, { "name": { "alias": "rxapFormControlErrorFrom"; "required": true; }; "errorKey": { "alias": "rxapFormControlErrorIf"; "required": true; }; }, {}, never, never, true, never>;
|
|
22
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ControlContainer } from '@angular/forms';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class FormControlMarkDirtyDirective {
|
|
4
|
-
private readonly parent;
|
|
5
|
-
constructor(parent: ControlContainer);
|
|
6
|
-
onClick(): void;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormControlMarkDirtyDirective, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlMarkDirtyDirective, "[rxapFormControlMarkDirty]", never, {}, {}, never, never, true, never>;
|
|
9
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ControlContainer } from '@angular/forms';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class FormControlMarkPristineDirective {
|
|
4
|
-
private readonly parent;
|
|
5
|
-
constructor(parent: ControlContainer);
|
|
6
|
-
onClick(): void;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormControlMarkPristineDirective, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlMarkPristineDirective, "[rxapFormControlMarkPristine]", never, {}, {}, never, never, true, never>;
|
|
9
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ControlContainer } from '@angular/forms';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class FormControlMarkTouchedDirective {
|
|
4
|
-
private readonly parent;
|
|
5
|
-
constructor(parent: ControlContainer);
|
|
6
|
-
onClick(): void;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormControlMarkTouchedDirective, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlMarkTouchedDirective, "[rxapFormControlMarkTouched]", never, {}, {}, never, never, true, never>;
|
|
9
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ControlContainer } from '@angular/forms';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class FormControlMarkUntouchedDirective {
|
|
4
|
-
private readonly parent;
|
|
5
|
-
constructor(parent: ControlContainer);
|
|
6
|
-
onClick(): void;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormControlMarkUntouchedDirective, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlMarkUntouchedDirective, "[rxapFormControlMarkUntouched]", never, {}, {}, never, never, true, never>;
|
|
9
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { AsyncValidator, AsyncValidatorFn, ControlContainer, ControlValueAccessor, FormControlName, Validator, ValidatorFn } from '@angular/forms';
|
|
2
|
-
import { RxapFormControl } from '../form-control';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* A full exertion of FormControlName from @angular/forms. The only change is the
|
|
6
|
-
* ability to access the control container outside of the current component
|
|
7
|
-
*
|
|
8
|
-
* @deprecated use the ParentControlContainerDirective
|
|
9
|
-
*/
|
|
10
|
-
export declare class FormControlNameDirective extends FormControlName {
|
|
11
|
-
readonly control: RxapFormControl;
|
|
12
|
-
name: string | number | null;
|
|
13
|
-
constructor(parent: ControlContainer, validators: Array<Validator | ValidatorFn>, asyncValidators: Array<AsyncValidator | AsyncValidatorFn>, valueAccessors: ControlValueAccessor[]);
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormControlNameDirective, [{ optional: true; skipSelf: true; }, { optional: true; self: true; }, { optional: true; self: true; }, { optional: true; self: true; }]>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlNameDirective, "[rxapFormControlName]", ["rxapFormControl"], { "name": { "alias": "rxapFormControlName"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ControlContainer, FormGroupName } from '@angular/forms';
|
|
2
|
-
import { RxapFormGroup } from '../form-group';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* A full exertion of FormGroupName from @angular/forms. The only change is the
|
|
6
|
-
* ability to access the control container outside of the current component
|
|
7
|
-
*
|
|
8
|
-
* @deprecated use the ParentControlContainerDirective
|
|
9
|
-
*/
|
|
10
|
-
export declare class FormGroupNameDirective extends FormGroupName {
|
|
11
|
-
name: string | number | null;
|
|
12
|
-
get control(): RxapFormGroup;
|
|
13
|
-
constructor(parent: ControlContainer, validators: any[], asyncValidators: any[]);
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormGroupNameDirective, [{ optional: true; skipSelf: true; }, { optional: true; self: true; }, { optional: true; self: true; }]>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FormGroupNameDirective, "[rxapFormGroupName]", ["rxapFormGroup"], { "name": { "alias": "rxapFormGroupName"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { FormDirective } from './form.directive';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FormLoadedDirective implements AfterViewInit, OnDestroy {
|
|
5
|
-
private readonly formDirective;
|
|
6
|
-
private readonly template;
|
|
7
|
-
private readonly viewContainerRef;
|
|
8
|
-
private subscription?;
|
|
9
|
-
constructor(formDirective: FormDirective, template: TemplateRef<void>, viewContainerRef: ViewContainerRef);
|
|
10
|
-
ngAfterViewInit(): void;
|
|
11
|
-
ngOnDestroy(): void;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormLoadedDirective, never>;
|
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FormLoadedDirective, "[rxapFormLoaded]", never, {}, {}, never, never, true, never>;
|
|
14
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { FormDirective } from './form.directive';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FormLoadingErrorDirective implements AfterViewInit, OnDestroy {
|
|
5
|
-
private readonly formDirective;
|
|
6
|
-
private readonly template;
|
|
7
|
-
private readonly viewContainerRef;
|
|
8
|
-
private subscription?;
|
|
9
|
-
constructor(formDirective: FormDirective, template: TemplateRef<{
|
|
10
|
-
$implicit: Error;
|
|
11
|
-
}>, viewContainerRef: ViewContainerRef);
|
|
12
|
-
ngAfterViewInit(): void;
|
|
13
|
-
ngOnDestroy(): void;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormLoadingErrorDirective, never>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FormLoadingErrorDirective, "[rxapFormLoadingError]", never, {}, {}, never, never, true, never>;
|
|
16
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { FormDirective } from './form.directive';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FormLoadingDirective implements AfterViewInit, OnDestroy {
|
|
5
|
-
private readonly formDirective;
|
|
6
|
-
private readonly template;
|
|
7
|
-
private readonly viewContainerRef;
|
|
8
|
-
private subscription?;
|
|
9
|
-
constructor(formDirective: FormDirective, template: TemplateRef<void>, viewContainerRef: ViewContainerRef);
|
|
10
|
-
ngAfterViewInit(): void;
|
|
11
|
-
ngOnDestroy(): void;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormLoadingDirective, never>;
|
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FormLoadingDirective, "[rxapFormLoading]", never, {}, {}, never, never, true, never>;
|
|
14
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ConfirmClick } from '@rxap/directives';
|
|
2
|
-
import { FormDirective } from './form.directive';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FormResetDirective extends ConfirmClick {
|
|
5
|
-
private readonly formDirective;
|
|
6
|
-
type: string;
|
|
7
|
-
constructor(formDirective: FormDirective);
|
|
8
|
-
protected execute(): void;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormResetDirective, never>;
|
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FormResetDirective, "[rxapFormReset]", never, { "type": { "alias": "type"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { FormDirective } from './form.directive';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FormSubmitFailedDirective implements AfterViewInit, OnDestroy {
|
|
5
|
-
private readonly formDirective;
|
|
6
|
-
private readonly template;
|
|
7
|
-
private readonly viewContainerRef;
|
|
8
|
-
private subscription?;
|
|
9
|
-
constructor(formDirective: FormDirective, template: TemplateRef<{
|
|
10
|
-
$implicit: Error;
|
|
11
|
-
}>, viewContainerRef: ViewContainerRef);
|
|
12
|
-
ngAfterViewInit(): void;
|
|
13
|
-
ngOnDestroy(): void;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormSubmitFailedDirective, never>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FormSubmitFailedDirective, "[rxapFormSubmitFailed]", never, {}, {}, never, never, true, never>;
|
|
16
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { FormDirective } from './form.directive';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FormSubmitInvalidDirective implements AfterViewInit, OnDestroy {
|
|
5
|
-
private readonly formDirective;
|
|
6
|
-
private readonly template;
|
|
7
|
-
private readonly viewContainerRef;
|
|
8
|
-
private subscription?;
|
|
9
|
-
constructor(formDirective: FormDirective, template: TemplateRef<{
|
|
10
|
-
$implicit: any;
|
|
11
|
-
}>, viewContainerRef: ViewContainerRef);
|
|
12
|
-
ngAfterViewInit(): void;
|
|
13
|
-
ngOnDestroy(): void;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormSubmitInvalidDirective, never>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FormSubmitInvalidDirective, "[rxapFormSubmitInvalid]", never, {}, {}, never, never, true, never>;
|
|
16
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { FormDirective } from './form.directive';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FormSubmitSuccessfulDirective implements AfterViewInit, OnDestroy {
|
|
5
|
-
private readonly formDirective;
|
|
6
|
-
private readonly template;
|
|
7
|
-
private readonly viewContainerRef;
|
|
8
|
-
private subscription?;
|
|
9
|
-
constructor(formDirective: FormDirective, template: TemplateRef<{
|
|
10
|
-
$implicit: any;
|
|
11
|
-
}>, viewContainerRef: ViewContainerRef);
|
|
12
|
-
ngAfterViewInit(): void;
|
|
13
|
-
ngOnDestroy(): void;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormSubmitSuccessfulDirective, never>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FormSubmitSuccessfulDirective, "[rxapFormSubmitSuccessful]", never, {}, {}, never, never, true, never>;
|
|
16
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { Router } from '@angular/router';
|
|
3
|
-
import { ConfirmClick } from '@rxap/directives';
|
|
4
|
-
import { FormDirective } from './form.directive';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class FormSubmitDirective extends ConfirmClick implements OnDestroy {
|
|
7
|
-
private readonly formDirective;
|
|
8
|
-
private readonly router;
|
|
9
|
-
type: import("@angular/core").InputSignal<"submit" | "reset" | "button">;
|
|
10
|
-
resetAfterSubmit: import("@angular/core").InputSignalWithTransform<boolean | "", boolean>;
|
|
11
|
-
navigateAfterSubmit: import("@angular/core").InputSignal<string[] | undefined>;
|
|
12
|
-
afterSubmit: import("@angular/core").OutputEmitterRef<any>;
|
|
13
|
-
disableWhileSubmitting: import("@angular/core").InputSignal<boolean>;
|
|
14
|
-
submitting: import("@angular/core").Signal<boolean>;
|
|
15
|
-
disabled: import("@angular/core").Signal<boolean>;
|
|
16
|
-
private subscription?;
|
|
17
|
-
constructor(formDirective: FormDirective, router?: Router | null);
|
|
18
|
-
protected execute(): void;
|
|
19
|
-
ngOnDestroy(): void;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormSubmitDirective, [null, { optional: true; }]>;
|
|
21
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FormSubmitDirective, "[rxapFormSubmit]", ["rxapFormSubmit"], { "type": { "alias": "type"; "required": false; "isSignal": true; }; "resetAfterSubmit": { "alias": "resetAfterSubmit"; "required": false; "isSignal": true; }; "navigateAfterSubmit": { "alias": "navigateAfterSubmit"; "required": false; "isSignal": true; }; "disableWhileSubmitting": { "alias": "disableWhileSubmitting"; "required": false; "isSignal": true; }; }, { "afterSubmit": "afterSubmit"; }, never, never, true, never>;
|
|
22
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { FormDirective } from './form.directive';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FormSubmittingDirective implements AfterViewInit, OnDestroy {
|
|
5
|
-
private readonly formDirective;
|
|
6
|
-
private readonly template;
|
|
7
|
-
private readonly viewContainerRef;
|
|
8
|
-
private subscription?;
|
|
9
|
-
constructor(formDirective: FormDirective, template: TemplateRef<void>, viewContainerRef: ViewContainerRef);
|
|
10
|
-
ngAfterViewInit(): void;
|
|
11
|
-
ngOnDestroy(): void;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormSubmittingDirective, never>;
|
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FormSubmittingDirective, "[rxapFormSubmitting]", never, {}, {}, never, never, true, never>;
|
|
14
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { FormGroupDirective } from '@angular/forms';
|
|
3
|
-
import { ToggleSubject } from '@rxap/rxjs';
|
|
4
|
-
import { LoadingIndicatorService } from '@rxap/services';
|
|
5
|
-
import { BehaviorSubject } from 'rxjs';
|
|
6
|
-
import { RxapFormBuilder } from '../form-builder';
|
|
7
|
-
import { RxapFormGroup } from '../form-group';
|
|
8
|
-
import { FormDefinition } from '../model';
|
|
9
|
-
import { FormLoadFailedMethod, FormLoadMethod, FormLoadSuccessfulMethod, FormSubmitFailedMethod, FormSubmitMethod, FormSubmitSuccessfulMethod } from './models';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
export declare class FormDirective<T = any> extends FormGroupDirective implements OnInit, OnChanges, OnDestroy {
|
|
12
|
-
readonly cdr: ChangeDetectorRef;
|
|
13
|
-
protected readonly formDefinitionBuilder: RxapFormBuilder | null;
|
|
14
|
-
protected readonly loadingIndicatorService: LoadingIndicatorService | null;
|
|
15
|
-
form: RxapFormGroup<T>;
|
|
16
|
-
readonly initial: import("@angular/core").ModelSignal<T | null>;
|
|
17
|
-
readonly context: import("@angular/core").ModelSignal<unknown>;
|
|
18
|
-
/**
|
|
19
|
-
* Emits when the submit method is executed without errors. The result of the
|
|
20
|
-
* submit method is passed as event object.
|
|
21
|
-
*
|
|
22
|
-
* If no submit method is defined then emit after the submit button
|
|
23
|
-
* is clicked.
|
|
24
|
-
*/
|
|
25
|
-
rxapSubmit: EventEmitter<any>;
|
|
26
|
-
invalidSubmit: EventEmitter<Record<string, any>>;
|
|
27
|
-
submitSuccessful$: EventEmitter<any>;
|
|
28
|
-
get submitting(): boolean;
|
|
29
|
-
get submitError(): Error | null;
|
|
30
|
-
get loading(): boolean;
|
|
31
|
-
get loaded(): boolean;
|
|
32
|
-
get loadingError(): Error | null;
|
|
33
|
-
set useFormDefinition(value: FormDefinition<T> | '');
|
|
34
|
-
get formDefinition(): FormDefinition<T>;
|
|
35
|
-
readonly submitting$: ToggleSubject;
|
|
36
|
-
readonly submitError$: BehaviorSubject<Error | null>;
|
|
37
|
-
readonly loading$: ToggleSubject;
|
|
38
|
-
readonly loaded$: ToggleSubject;
|
|
39
|
-
readonly loadingError$: BehaviorSubject<Error | null>;
|
|
40
|
-
protected _formDefinition: FormDefinition<T>;
|
|
41
|
-
submitMethod: FormSubmitMethod<any> | null;
|
|
42
|
-
loadMethod: FormLoadMethod | null;
|
|
43
|
-
loadFailedMethod: FormLoadFailedMethod | null;
|
|
44
|
-
loadSuccessfulMethod: FormLoadSuccessfulMethod | null;
|
|
45
|
-
submitFailedMethod: FormSubmitFailedMethod | null;
|
|
46
|
-
submitSuccessfulMethod: FormSubmitSuccessfulMethod | null;
|
|
47
|
-
private _autoSubmitSubscription;
|
|
48
|
-
constructor(cdr: ChangeDetectorRef, formDefinition?: FormDefinition | null, submitMethod?: FormSubmitMethod<any> | null, loadMethod?: FormLoadMethod | null, loadFailedMethod?: FormLoadFailedMethod | null, loadSuccessfulMethod?: FormLoadSuccessfulMethod | null, submitFailedMethod?: FormSubmitFailedMethod | null, submitSuccessfulMethod?: FormSubmitSuccessfulMethod | null, formDefinitionBuilder?: RxapFormBuilder | null, loadingIndicatorService?: LoadingIndicatorService | null, context?: unknown, initial?: T | null);
|
|
49
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
50
|
-
ngOnInit(): void;
|
|
51
|
-
onSubmit($event: Event): boolean;
|
|
52
|
-
protected loadInitialState(form: RxapFormGroup): void;
|
|
53
|
-
protected loadSuccessful(value: any): void;
|
|
54
|
-
protected loadFailed(error: Error): void;
|
|
55
|
-
protected getSubmitValue(): T;
|
|
56
|
-
protected submit(): void;
|
|
57
|
-
protected submitFailed(error: Error): void;
|
|
58
|
-
protected submitSuccessful(value: any): void;
|
|
59
|
-
ngOnDestroy(): void;
|
|
60
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormDirective<any>, [null, { optional: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
61
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FormDirective<any>, "form[rxapForm]:not([formGroup]):not([ngForm]),rxap-form,form[rxapForm]", ["rxapForm"], { "initial": { "alias": "initial"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; "useFormDefinition": { "alias": "rxapForm"; "required": false; }; "submitMethod": { "alias": "submitMethod"; "required": false; }; "loadMethod": { "alias": "loadMethod"; "required": false; }; "loadFailedMethod": { "alias": "loadFailedMethod"; "required": false; }; "loadSuccessfulMethod": { "alias": "loadSuccessfulMethod"; "required": false; }; "submitFailedMethod": { "alias": "submitFailedMethod"; "required": false; }; "submitSuccessfulMethod": { "alias": "submitSuccessfulMethod"; "required": false; }; }, { "ngSubmit": "ngSubmit"; "initial": "initialChange"; "context": "contextChange"; "rxapSubmit": "rxapSubmit"; "invalidSubmit": "invalidSubmit"; "submitSuccessful$": "submitSuccessful"; }, never, never, true, never>;
|
|
62
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./form.directive";
|
|
3
|
-
import * as i2 from "./form-submit-failed.directive";
|
|
4
|
-
import * as i3 from "./form-loading.directive";
|
|
5
|
-
import * as i4 from "./form-submitting.directive";
|
|
6
|
-
import * as i5 from "./form-loading-error.directive";
|
|
7
|
-
import * as i6 from "./form-loaded.directive";
|
|
8
|
-
import * as i7 from "./form-control-error.directive";
|
|
9
|
-
import * as i8 from "./form-control-mark-dirty.directive";
|
|
10
|
-
import * as i9 from "./form-control-mark-touched.directive";
|
|
11
|
-
import * as i10 from "./form-control-mark-untouched.directive";
|
|
12
|
-
import * as i11 from "./form-control-mark-pristine.directive";
|
|
13
|
-
import * as i12 from "./form-submit.directive";
|
|
14
|
-
import * as i13 from "./form-group-name.directive";
|
|
15
|
-
import * as i14 from "./form-control-name.directive";
|
|
16
|
-
import * as i15 from "./parent-control-container.directive";
|
|
17
|
-
import * as i16 from "./form-submit-successful.directive";
|
|
18
|
-
import * as i17 from "./form-submit-invalid.directive";
|
|
19
|
-
export declare class RxapFormsModule {
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RxapFormsModule, never>;
|
|
21
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<RxapFormsModule, never, [typeof i1.FormDirective, typeof i2.FormSubmitFailedDirective, typeof i3.FormLoadingDirective, typeof i4.FormSubmittingDirective, typeof i5.FormLoadingErrorDirective, typeof i6.FormLoadedDirective, typeof i7.FormControlErrorDirective, typeof i8.FormControlMarkDirtyDirective, typeof i9.FormControlMarkTouchedDirective, typeof i10.FormControlMarkUntouchedDirective, typeof i11.FormControlMarkPristineDirective, typeof i12.FormSubmitDirective, typeof i13.FormGroupNameDirective, typeof i14.FormControlNameDirective, typeof i15.ParentControlContainerDirective, typeof i16.FormSubmitSuccessfulDirective, typeof i17.FormSubmitInvalidDirective], [typeof i1.FormDirective, typeof i2.FormSubmitFailedDirective, typeof i3.FormLoadingDirective, typeof i4.FormSubmittingDirective, typeof i5.FormLoadingErrorDirective, typeof i6.FormLoadedDirective, typeof i7.FormControlErrorDirective, typeof i8.FormControlMarkDirtyDirective, typeof i9.FormControlMarkTouchedDirective, typeof i10.FormControlMarkUntouchedDirective, typeof i11.FormControlMarkPristineDirective, typeof i12.FormSubmitDirective, typeof i13.FormGroupNameDirective, typeof i14.FormControlNameDirective, typeof i15.ParentControlContainerDirective, typeof i16.FormSubmitSuccessfulDirective, typeof i17.FormSubmitInvalidDirective]>;
|
|
22
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<RxapFormsModule>;
|
|
23
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Method, MethodWithParameters } from '@rxap/pattern';
|
|
2
|
-
export interface FormSubmitMethod<FormSate = any, Context = any, Initial = any> extends MethodWithParameters<any, FormSate> {
|
|
3
|
-
call(parameters: FormSate, context?: Context | null, initial?: Initial | null): any | Promise<any>;
|
|
4
|
-
}
|
|
5
|
-
export interface FormLoadMethod<FormState = any, Context = any, Initial = any> extends Method<FormState> {
|
|
6
|
-
call(data: {
|
|
7
|
-
context: Context | null;
|
|
8
|
-
initial: Initial | null;
|
|
9
|
-
}): FormState | Promise<FormState>;
|
|
10
|
-
}
|
|
11
|
-
export interface FormLoadFailedMethod extends MethodWithParameters {
|
|
12
|
-
call(error: Error): Promise<any> | any;
|
|
13
|
-
}
|
|
14
|
-
export interface FormLoadSuccessfulMethod<T = any> extends Method {
|
|
15
|
-
call(value: T): Promise<any> | any;
|
|
16
|
-
}
|
|
17
|
-
export interface FormSubmitFailedMethod extends MethodWithParameters {
|
|
18
|
-
call(error: Error): Promise<any> | any;
|
|
19
|
-
}
|
|
20
|
-
export interface FormSubmitSuccessfulMethod<T = any> extends Method {
|
|
21
|
-
call(result: T): Promise<any> | any;
|
|
22
|
-
}
|
|
23
|
-
export declare function ToFormMethod<T, FormMethod extends Method<R, P>, R, P>(call: (value: P) => R | Promise<R>): Method<R, P>;
|
|
24
|
-
/**
|
|
25
|
-
* @deprecated use ToFormMethod instead
|
|
26
|
-
*
|
|
27
|
-
* @param call the call method implementation
|
|
28
|
-
*/
|
|
29
|
-
export declare function ToFormSubmitMethod<T>(call: (value: T) => boolean): FormSubmitMethod<T>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class ParentControlContainerDirective {
|
|
3
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ParentControlContainerDirective, never>;
|
|
4
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ParentControlContainerDirective, "[formControlName][parentControlContainer],[formControlGroup][parentControlContainer]", never, {}, {}, never, never, true, never>;
|
|
5
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { RxapFormBuilder } from '../form-builder';
|
|
3
|
-
import { FormDefinition } from '../model';
|
|
4
|
-
import { FormLoadMethod, FormSubmitMethod } from './models';
|
|
5
|
-
export declare const RXAP_FORM_DEFINITION: InjectionToken<FormDefinition<any, any, any>>;
|
|
6
|
-
export declare const RXAP_FORM_DEFINITION_BUILDER: InjectionToken<RxapFormBuilder<any, import("../model").FormType<any>>>;
|
|
7
|
-
export declare const RXAP_FORM_SUBMIT_METHOD: InjectionToken<FormSubmitMethod<any, any, any>>;
|
|
8
|
-
export declare const RXAP_FORM_SUBMIT_FAILED_METHOD: InjectionToken<FormSubmitMethod<any, any, any>>;
|
|
9
|
-
export declare const RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD: InjectionToken<FormSubmitMethod<any, any, any>>;
|
|
10
|
-
export declare const RXAP_FORM_LOAD_METHOD: InjectionToken<FormLoadMethod<any, any, any>>;
|
|
11
|
-
export declare const RXAP_FORM_LOAD_FAILED_METHOD: InjectionToken<FormLoadMethod<any, any, any>>;
|
|
12
|
-
export declare const RXAP_FORM_LOAD_SUCCESSFUL_METHOD: InjectionToken<FormLoadMethod<any, any, any>>;
|
package/lib/form-array.d.ts
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { UntypedFormArray } from '@angular/forms';
|
|
2
|
-
import { AbstractControl, AsyncValidator, ControlEventOptions, ControlOptions, ControlPath, ControlState, EmitEvent, ExtractStrings, OnlySelf, Validator } from './types';
|
|
3
|
-
import { Observable, Subscription } from 'rxjs';
|
|
4
|
-
import { FormArrayOptions, FormDefinition, FormType } from './model';
|
|
5
|
-
export declare class RxapFormArray<T = any, E extends object = any, Parent extends object = any> extends UntypedFormArray implements AbstractControl<T[]> {
|
|
6
|
-
controls: Array<AbstractControl<T>>;
|
|
7
|
-
private _readonly;
|
|
8
|
-
get readonly(): boolean;
|
|
9
|
-
set readonly(value: boolean);
|
|
10
|
-
/**
|
|
11
|
-
* @internal
|
|
12
|
-
*/
|
|
13
|
-
get rxapFormDefinition(): (FormType<Parent> & FormDefinition<Parent>) | undefined;
|
|
14
|
-
get controlPath(): string;
|
|
15
|
-
readonly value: T[];
|
|
16
|
-
get fullControlPath(): string;
|
|
17
|
-
readonly valueChanges: Observable<T[]>;
|
|
18
|
-
readonly value$: Observable<T[]>;
|
|
19
|
-
readonly status: ControlState;
|
|
20
|
-
readonly disabled$: Observable<boolean>;
|
|
21
|
-
readonly statusChanges: Observable<ControlState>;
|
|
22
|
-
readonly enabled$: Observable<boolean>;
|
|
23
|
-
readonly errors: E | null;
|
|
24
|
-
readonly status$: Observable<ControlState>;
|
|
25
|
-
readonly errors$: Observable<E | null>;
|
|
26
|
-
readonly controlId: string;
|
|
27
|
-
private readonly touchChanges;
|
|
28
|
-
readonly touch$: Observable<boolean>;
|
|
29
|
-
private readonly dirtyChanges;
|
|
30
|
-
readonly dirty$: Observable<boolean>;
|
|
31
|
-
private readonly _builder;
|
|
32
|
-
private readonly _controlInsertedFn;
|
|
33
|
-
private readonly _controlRemovedFn;
|
|
34
|
-
constructor(controls: Array<AbstractControl<T>>, options: FormArrayOptions);
|
|
35
|
-
select<R>(mapFn: (state: T[]) => R): Observable<R>;
|
|
36
|
-
at(index: number): AbstractControl<T>;
|
|
37
|
-
getRawValue(): T[];
|
|
38
|
-
insert(index: number, control: AbstractControl<T>): void;
|
|
39
|
-
/**
|
|
40
|
-
* inserts a new control at the specified index. If the index is undefined
|
|
41
|
-
* the new control will be added to the end.
|
|
42
|
-
*
|
|
43
|
-
* @param index (optional) the index where the control should be created
|
|
44
|
-
* @param state (optional) the initial state of the new control
|
|
45
|
-
* @param options (optional) ControlEventOptions
|
|
46
|
-
*/
|
|
47
|
-
insertAt(index?: number, state?: T, options?: ControlEventOptions): void;
|
|
48
|
-
disabledWhile(observable: Observable<boolean>, options?: ControlOptions): Subscription;
|
|
49
|
-
enabledWhile(observable: Observable<boolean>, options?: ControlOptions): Subscription;
|
|
50
|
-
mergeValidators(validators: Validator): void;
|
|
51
|
-
mergeAsyncValidators(validators: AsyncValidator): void;
|
|
52
|
-
markAllAsDirty(): void;
|
|
53
|
-
markAllAsPristine(): void;
|
|
54
|
-
setValue(valueOrObservable: T[] | Observable<T[]>, options?: ControlEventOptions): Subscription | void;
|
|
55
|
-
markAllAsUntouched(): void;
|
|
56
|
-
validateOn(observableValidation: Observable<null | object>): Subscription;
|
|
57
|
-
hasErrorAndTouched(errorCode: ExtractStrings<E>, path?: ControlPath): boolean;
|
|
58
|
-
private _patchValue;
|
|
59
|
-
patchValue(valueOrObservable: any, options?: ControlEventOptions): Subscription | void;
|
|
60
|
-
hasErrorAndDirty(errorCode: ExtractStrings<E>, path?: ControlPath): boolean;
|
|
61
|
-
removeAt(index: number, opts?: ControlEventOptions): void;
|
|
62
|
-
setEnable(enable?: boolean, opts?: ControlEventOptions): void;
|
|
63
|
-
push(control: AbstractControl<T>, options?: ControlEventOptions): void;
|
|
64
|
-
setDisable(disable?: boolean, opts?: ControlEventOptions): void;
|
|
65
|
-
setControl(index: number, control: AbstractControl<T>, options?: ControlEventOptions): void;
|
|
66
|
-
markAsTouched(opts?: OnlySelf): void;
|
|
67
|
-
markAsUntouched(opts?: OnlySelf): void;
|
|
68
|
-
markAsPristine(opts?: OnlySelf): void;
|
|
69
|
-
markAsDirty(opts?: OnlySelf): void;
|
|
70
|
-
reset(value?: T[], options?: ControlEventOptions): void;
|
|
71
|
-
setValidators(newValidator: Validator, updateValueAndValidity?: boolean): void;
|
|
72
|
-
setAsyncValidators(newValidator: AsyncValidator, updateValueAndValidity?: boolean): void;
|
|
73
|
-
hasError(errorCode: ExtractStrings<E>, path?: ControlPath): boolean;
|
|
74
|
-
setErrors(errors: Partial<E> | null, opts?: EmitEvent): void;
|
|
75
|
-
getError<K extends ExtractStrings<E>>(errorCode: K, path?: ControlPath): E[K] | null;
|
|
76
|
-
}
|