@rxap/form-system 19.1.0-dev.0 → 19.1.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/compodoc/changelog.html +10 -0
- package/compodoc/classes/ExtractOptionsMethodMixin.html +6 -3
- package/compodoc/dependencies.html +5 -5
- package/compodoc/directives/AutocompleteOptionsFromMethodDirective.html +47 -35
- package/compodoc/directives/OptionsFromMethodDirective.html +124 -30
- package/compodoc/injectables/NoopResolveMethod.html +29 -17
- package/compodoc/interfaces/AutocompleteOptionsFromMethodDirectiveParameters.html +27 -15
- package/compodoc/interfaces/AutocompleteOptionsFromMethodDirectiveSettings.html +27 -15
- package/compodoc/interfaces/AutocompleteOptionsFromRemoteMethodTemplateContext.html +27 -15
- package/compodoc/interfaces/OptionsFromMethodDirectiveSettings.html +38 -8
- package/compodoc/interfaces/OptionsFromMethodTemplateContext.html +38 -8
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/miscellaneous/typealiases.html +21 -0
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +3917 -3549
- 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/AutocompleteOptionsFromMethodDirective.html +8 -6
- package/docs/html/classes/ControlDataSource.html +13 -13
- package/docs/html/classes/ControlHideShowDirective.html +4 -4
- package/docs/html/classes/ExtractControlFromParentMixin.html +2 -2
- package/docs/html/classes/ExtractControlMixin.html +2 -2
- package/docs/html/classes/ExtractDataSourcesMixin.html +2 -2
- package/docs/html/classes/ExtractFormDefinitionMixin.html +2 -2
- package/docs/html/classes/ExtractFunctionMixin.html +2 -2
- package/docs/html/classes/ExtractFunctionsMixin.html +2 -2
- package/docs/html/classes/ExtractIsValueFunctionMixin.html +2 -2
- package/docs/html/classes/ExtractMethodMixin.html +2 -2
- package/docs/html/classes/ExtractMethodsMixin.html +2 -2
- package/docs/html/classes/ExtractOptionsDataSourceMixin.html +2 -2
- package/docs/html/classes/ExtractOptionsMethodMixin.html +2 -2
- package/docs/html/classes/ExtractRemoteMethodsMixin.html +2 -2
- package/docs/html/classes/ExtractResolveMethodMixin.html +2 -2
- package/docs/html/classes/ExtractToDisplayFunctionMixin.html +2 -2
- package/docs/html/classes/ForFormArrayItemsDirective.html +4 -4
- package/docs/html/classes/FormArrayAddItemButtonDirective.html +4 -4
- package/docs/html/classes/FormArrayItemButton.html +4 -4
- package/docs/html/classes/FormArrayItemRemoveButtonDirective.html +5 -5
- package/docs/html/classes/FormArrayItemRestoreButtonDirective.html +4 -4
- package/docs/html/classes/FormArrayRemovableDirective.html +4 -4
- package/docs/html/classes/FormSystemControlDirective.html +8 -8
- package/docs/html/classes/FormSystemDirectivesModule.html +2 -2
- package/docs/html/classes/InputSelectOptionsDirective.html +4 -4
- package/docs/html/classes/IsEqualToDirective.html +4 -4
- package/docs/html/classes/IsSelectableValueDirective.html +3 -3
- package/docs/html/classes/NoopResolveMethod.html +2 -2
- package/docs/html/classes/OptionsFromMethodDirective.html +10 -5
- package/docs/html/classes/OptionsFromRemoteMethodDirective.html +4 -4
- package/docs/html/classes/RxapFormSystemError.html +5 -5
- package/docs/html/classes/SubmitContextFormAdapter.html +10 -10
- package/docs/html/classes/TestNgControl.html +4 -4
- package/docs/html/enums/FormSystemMetadataKeys.html +2 -2
- package/docs/html/functions/ApplyUseFunctionAdapters.html +1 -1
- package/docs/html/functions/ApplyUseMethodAdapters.html +1 -1
- package/docs/html/functions/ComposeOptionsTransformers.html +1 -1
- package/docs/html/functions/FormContextFromActivatedRouteFactory.html +1 -1
- package/docs/html/functions/ResolveByUuidParameter.html +1 -1
- package/docs/html/functions/ResolveByUuidResultFactory.html +1 -1
- package/docs/html/functions/SubmitContextFormAdapterFactory.html +1 -1
- package/docs/html/functions/UseAutocompleteIsValueFunction.html +1 -1
- package/docs/html/functions/UseAutocompleteOptionsMethod.html +1 -1
- package/docs/html/functions/UseAutocompleteResolveMethod.html +1 -1
- package/docs/html/functions/UseAutocompleteToDisplayFunction.html +1 -1
- package/docs/html/functions/UseComponent.html +1 -1
- package/docs/html/functions/UseDataSource.html +1 -1
- package/docs/html/functions/UseFormComponent.html +2 -2
- package/docs/html/functions/UseFunction.html +1 -1
- package/docs/html/functions/UseHideFunction.html +1 -1
- package/docs/html/functions/UseIsValueFunction.html +1 -1
- package/docs/html/functions/UseMethod.html +1 -1
- package/docs/html/functions/UseOptionsDataSource.html +1 -1
- package/docs/html/functions/UseOptionsMethod.html +1 -1
- package/docs/html/functions/UseOptionsRemoteMethod.html +1 -1
- package/docs/html/functions/UseRemoteMethod.html +1 -1
- package/docs/html/functions/UseResolveMethod.html +1 -1
- package/docs/html/functions/UseShowFunction.html +1 -1
- package/docs/html/functions/UseToDisplayFunction.html +1 -1
- package/docs/html/functions/controlDataSource-1.html +1 -1
- package/docs/html/hierarchy.html +1 -1
- package/docs/html/index.html +2 -2
- package/docs/html/interfaces/AutocompleteOptionsFromMethodDirectiveParameters.html +2 -2
- package/docs/html/interfaces/AutocompleteOptionsFromMethodDirectiveSettings.html +2 -2
- package/docs/html/interfaces/AutocompleteOptionsFromRemoteMethodTemplateContext.html +2 -2
- package/docs/html/interfaces/ControlHideShowOptions.html +2 -2
- package/docs/html/interfaces/ControlWithDataSource.html +2 -2
- package/docs/html/interfaces/ForFormArrayItemsDirectiveContext.html +2 -2
- package/docs/html/interfaces/InputSelectOptionsSettings.html +4 -4
- package/docs/html/interfaces/InputSelectOptionsTemplateContext.html +2 -2
- package/docs/html/interfaces/OptionsFromMethodDirectiveSettings.html +1 -1
- package/docs/html/interfaces/OptionsFromMethodTemplateContext.html +2 -2
- package/docs/html/interfaces/OptionsFromRemoteMethodTemplateContext.html +2 -2
- package/docs/html/interfaces/UseDataSourceSettings.html +2 -2
- package/docs/html/interfaces/UseDataSourceValue.html +3 -3
- package/docs/html/interfaces/UseFunctionConfig.html +2 -2
- package/docs/html/interfaces/UseFunctionDefinition.html +2 -2
- package/docs/html/interfaces/UseMethodConfig.html +2 -2
- package/docs/html/interfaces/UseMethodDefinition.html +2 -2
- package/docs/html/modules.html +1 -1
- package/docs/html/types/ControlHideShowFunction.html +1 -1
- package/docs/html/types/FunctionParameterAdapterFunction.html +1 -1
- package/docs/html/types/FunctionResultAdapterFunction.html +1 -1
- package/docs/html/types/MethodParameterAdapterFunction.html +1 -1
- package/docs/html/types/MethodResultAdapterFunction.html +1 -1
- package/docs/html/types/OptionsMethod.html +1 -0
- package/docs/html/types/UseFunctionType.html +1 -1
- package/docs/html/types/UseOptionsDataSourceSettings.html +1 -1
- package/docs/html/variables/DATA_SOURCE_NAME.html +1 -1
- package/docs/html/variables/IS_VALUE_FUNCTION_NAME.html +1 -1
- package/docs/html/variables/OPTIONS_METHOD_NAME.html +1 -1
- package/docs/html/variables/REMOTE_METHOD_NAME.html +1 -1
- package/docs/html/variables/RESOLVE_METHOD_NAME.html +1 -1
- package/docs/html/variables/RXAP_FORM_CONTROL_SOURCE.html +1 -1
- package/docs/html/variables/RXAP_FORM_SYSTEM_HIDE_METADATA.html +1 -1
- package/docs/html/variables/RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS.html +1 -1
- package/docs/html/variables/RXAP_FORM_SYSTEM_SHOW_METADATA.html +1 -1
- package/docs/html/variables/RXAP_USE_FUNCTION.html +1 -1
- package/docs/html/variables/RXAP_USE_METHOD.html +1 -1
- package/docs/html/variables/RXAP_USE_REMOTE_METHOD.html +1 -1
- package/docs/html/variables/SUBMIT_CONTEXT_FORM_ADAPTER_METHOD.html +1 -1
- package/docs/html/variables/TO_DISPLAY_FUNCTION_NAME.html +1 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/AutocompleteOptionsFromMethodDirective.md +63 -39
- package/docs/markdown/classes/ControlDataSource.md +51 -51
- package/docs/markdown/classes/ControlHideShowDirective.md +9 -9
- package/docs/markdown/classes/ExtractControlFromParentMixin.md +3 -3
- package/docs/markdown/classes/ExtractControlMixin.md +6 -6
- package/docs/markdown/classes/ExtractDataSourcesMixin.md +3 -3
- package/docs/markdown/classes/ExtractFormDefinitionMixin.md +3 -3
- package/docs/markdown/classes/ExtractFunctionMixin.md +5 -5
- package/docs/markdown/classes/ExtractFunctionsMixin.md +3 -3
- package/docs/markdown/classes/ExtractIsValueFunctionMixin.md +11 -11
- package/docs/markdown/classes/ExtractMethodMixin.md +5 -5
- package/docs/markdown/classes/ExtractMethodsMixin.md +3 -3
- package/docs/markdown/classes/ExtractOptionsDataSourceMixin.md +16 -16
- package/docs/markdown/classes/ExtractOptionsMethodMixin.md +11 -11
- package/docs/markdown/classes/ExtractRemoteMethodsMixin.md +3 -3
- package/docs/markdown/classes/ExtractResolveMethodMixin.md +11 -11
- package/docs/markdown/classes/ExtractToDisplayFunctionMixin.md +11 -11
- package/docs/markdown/classes/ForFormArrayItemsDirective.md +5 -5
- package/docs/markdown/classes/FormArrayAddItemButtonDirective.md +12 -12
- package/docs/markdown/classes/FormArrayItemButton.md +19 -19
- package/docs/markdown/classes/FormArrayItemRemoveButtonDirective.md +20 -20
- package/docs/markdown/classes/FormArrayItemRestoreButtonDirective.md +19 -19
- package/docs/markdown/classes/FormArrayRemovableDirective.md +10 -10
- package/docs/markdown/classes/FormSystemControlDirective.md +12 -12
- package/docs/markdown/classes/FormSystemDirectivesModule.md +2 -2
- package/docs/markdown/classes/InputSelectOptionsDirective.md +27 -27
- package/docs/markdown/classes/IsEqualToDirective.md +5 -5
- package/docs/markdown/classes/IsSelectableValueDirective.md +18 -18
- package/docs/markdown/classes/NoopResolveMethod.md +3 -3
- package/docs/markdown/classes/OptionsFromMethodDirective.md +60 -28
- package/docs/markdown/classes/OptionsFromRemoteMethodDirective.md +9 -9
- package/docs/markdown/classes/RxapFormSystemError.md +13 -13
- package/docs/markdown/classes/SubmitContextFormAdapter.md +32 -32
- package/docs/markdown/classes/TestNgControl.md +5 -5
- package/docs/markdown/enumerations/FormSystemMetadataKeys.md +6 -6
- package/docs/markdown/functions/ApplyUseFunctionAdapters.md +2 -2
- package/docs/markdown/functions/ApplyUseMethodAdapters.md +2 -2
- package/docs/markdown/functions/ComposeOptionsTransformers.md +2 -2
- package/docs/markdown/functions/FormContextFromActivatedRouteFactory.md +2 -2
- package/docs/markdown/functions/ResolveByUuidParameter.md +2 -2
- package/docs/markdown/functions/ResolveByUuidResultFactory.md +2 -2
- package/docs/markdown/functions/SubmitContextFormAdapterFactory.md +2 -2
- package/docs/markdown/functions/UseAutocompleteIsValueFunction.md +2 -2
- package/docs/markdown/functions/UseAutocompleteOptionsMethod.md +4 -4
- package/docs/markdown/functions/UseAutocompleteResolveMethod.md +2 -2
- package/docs/markdown/functions/UseAutocompleteToDisplayFunction.md +2 -2
- package/docs/markdown/functions/UseComponent.md +2 -2
- package/docs/markdown/functions/UseDataSource.md +2 -2
- package/docs/markdown/functions/UseFormComponent.md +2 -2
- package/docs/markdown/functions/UseFunction.md +2 -2
- package/docs/markdown/functions/UseHideFunction.md +2 -2
- package/docs/markdown/functions/UseIsValueFunction.md +3 -3
- package/docs/markdown/functions/UseMethod.md +2 -2
- package/docs/markdown/functions/UseOptionsDataSource.md +2 -2
- package/docs/markdown/functions/UseOptionsMethod.md +8 -4
- package/docs/markdown/functions/UseOptionsRemoteMethod.md +2 -2
- package/docs/markdown/functions/UseRemoteMethod.md +2 -2
- package/docs/markdown/functions/UseResolveMethod.md +3 -3
- package/docs/markdown/functions/UseShowFunction.md +2 -2
- package/docs/markdown/functions/UseToDisplayFunction.md +3 -3
- package/docs/markdown/functions/controlDataSource.md +2 -2
- package/docs/markdown/globals.md +3 -2
- package/docs/markdown/interfaces/AutocompleteOptionsFromMethodDirectiveParameters.md +3 -3
- package/docs/markdown/interfaces/AutocompleteOptionsFromMethodDirectiveSettings.md +3 -3
- package/docs/markdown/interfaces/AutocompleteOptionsFromRemoteMethodTemplateContext.md +3 -3
- package/docs/markdown/interfaces/ControlHideShowOptions.md +3 -3
- package/docs/markdown/interfaces/ControlWithDataSource.md +3 -3
- package/docs/markdown/interfaces/ForFormArrayItemsDirectiveContext.md +9 -9
- package/docs/markdown/interfaces/InputSelectOptionsSettings.md +6 -6
- package/docs/markdown/interfaces/InputSelectOptionsTemplateContext.md +3 -3
- package/docs/markdown/interfaces/OptionsFromMethodDirectiveSettings.md +2 -2
- package/docs/markdown/interfaces/OptionsFromMethodTemplateContext.md +3 -3
- package/docs/markdown/interfaces/OptionsFromRemoteMethodTemplateContext.md +3 -3
- package/docs/markdown/interfaces/UseDataSourceSettings.md +3 -3
- package/docs/markdown/interfaces/UseDataSourceValue.md +5 -5
- package/docs/markdown/interfaces/UseFunctionConfig.md +3 -3
- package/docs/markdown/interfaces/UseFunctionDefinition.md +4 -4
- package/docs/markdown/interfaces/UseMethodConfig.md +3 -3
- package/docs/markdown/interfaces/UseMethodDefinition.md +4 -4
- package/docs/markdown/type-aliases/ControlHideShowFunction.md +2 -2
- package/docs/markdown/type-aliases/FunctionParameterAdapterFunction.md +2 -2
- package/docs/markdown/type-aliases/FunctionResultAdapterFunction.md +2 -2
- package/docs/markdown/type-aliases/MethodParameterAdapterFunction.md +2 -2
- package/docs/markdown/type-aliases/MethodResultAdapterFunction.md +2 -2
- package/docs/markdown/type-aliases/OptionsMethod.md +15 -0
- package/docs/markdown/type-aliases/UseFunctionType.md +2 -2
- package/docs/markdown/type-aliases/UseOptionsDataSourceSettings.md +2 -2
- package/docs/markdown/variables/DATA_SOURCE_NAME.md +2 -2
- package/docs/markdown/variables/IS_VALUE_FUNCTION_NAME.md +2 -2
- package/docs/markdown/variables/OPTIONS_METHOD_NAME.md +2 -2
- package/docs/markdown/variables/REMOTE_METHOD_NAME.md +2 -2
- package/docs/markdown/variables/RESOLVE_METHOD_NAME.md +2 -2
- package/docs/markdown/variables/RXAP_FORM_CONTROL_SOURCE.md +2 -2
- package/docs/markdown/variables/RXAP_FORM_SYSTEM_HIDE_METADATA.md +2 -2
- package/docs/markdown/variables/RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS.md +2 -2
- package/docs/markdown/variables/RXAP_FORM_SYSTEM_SHOW_METADATA.md +2 -2
- package/docs/markdown/variables/RXAP_USE_FUNCTION.md +2 -2
- package/docs/markdown/variables/RXAP_USE_METHOD.md +2 -2
- package/docs/markdown/variables/RXAP_USE_REMOTE_METHOD.md +2 -2
- package/docs/markdown/variables/SUBMIT_CONTEXT_FORM_ADAPTER_METHOD.md +2 -2
- package/docs/markdown/variables/TO_DISPLAY_FUNCTION_NAME.md +2 -2
- package/docs/wiki/Class.AutocompleteOptionsFromMethodDirective.md +62 -38
- package/docs/wiki/Class.ControlDataSource.md +50 -50
- package/docs/wiki/Class.ControlHideShowDirective.md +8 -8
- package/docs/wiki/Class.ExtractControlFromParentMixin.md +2 -2
- package/docs/wiki/Class.ExtractControlMixin.md +5 -5
- package/docs/wiki/Class.ExtractDataSourcesMixin.md +2 -2
- package/docs/wiki/Class.ExtractFormDefinitionMixin.md +2 -2
- package/docs/wiki/Class.ExtractFunctionMixin.md +4 -4
- package/docs/wiki/Class.ExtractFunctionsMixin.md +2 -2
- package/docs/wiki/Class.ExtractIsValueFunctionMixin.md +10 -10
- package/docs/wiki/Class.ExtractMethodMixin.md +4 -4
- package/docs/wiki/Class.ExtractMethodsMixin.md +2 -2
- package/docs/wiki/Class.ExtractOptionsDataSourceMixin.md +15 -15
- package/docs/wiki/Class.ExtractOptionsMethodMixin.md +10 -10
- package/docs/wiki/Class.ExtractRemoteMethodsMixin.md +2 -2
- package/docs/wiki/Class.ExtractResolveMethodMixin.md +10 -10
- package/docs/wiki/Class.ExtractToDisplayFunctionMixin.md +10 -10
- package/docs/wiki/Class.ForFormArrayItemsDirective.md +4 -4
- package/docs/wiki/Class.FormArrayAddItemButtonDirective.md +11 -11
- package/docs/wiki/Class.FormArrayItemButton.md +18 -18
- package/docs/wiki/Class.FormArrayItemRemoveButtonDirective.md +19 -19
- package/docs/wiki/Class.FormArrayItemRestoreButtonDirective.md +18 -18
- package/docs/wiki/Class.FormArrayRemovableDirective.md +9 -9
- package/docs/wiki/Class.FormSystemControlDirective.md +11 -11
- package/docs/wiki/Class.FormSystemDirectivesModule.md +1 -1
- package/docs/wiki/Class.InputSelectOptionsDirective.md +26 -26
- package/docs/wiki/Class.IsEqualToDirective.md +4 -4
- package/docs/wiki/Class.IsSelectableValueDirective.md +17 -17
- package/docs/wiki/Class.NoopResolveMethod.md +2 -2
- package/docs/wiki/Class.OptionsFromMethodDirective.md +59 -27
- package/docs/wiki/Class.OptionsFromRemoteMethodDirective.md +8 -8
- package/docs/wiki/Class.RxapFormSystemError.md +12 -12
- package/docs/wiki/Class.SubmitContextFormAdapter.md +31 -31
- package/docs/wiki/Class.TestNgControl.md +4 -4
- package/docs/wiki/Enumeration.FormSystemMetadataKeys.md +5 -5
- package/docs/wiki/Function.ApplyUseFunctionAdapters.md +1 -1
- package/docs/wiki/Function.ApplyUseMethodAdapters.md +1 -1
- package/docs/wiki/Function.ComposeOptionsTransformers.md +1 -1
- package/docs/wiki/Function.FormContextFromActivatedRouteFactory.md +1 -1
- package/docs/wiki/Function.ResolveByUuidParameter.md +1 -1
- package/docs/wiki/Function.ResolveByUuidResultFactory.md +1 -1
- package/docs/wiki/Function.SubmitContextFormAdapterFactory.md +1 -1
- package/docs/wiki/Function.UseAutocompleteIsValueFunction.md +1 -1
- package/docs/wiki/Function.UseAutocompleteOptionsMethod.md +3 -3
- package/docs/wiki/Function.UseAutocompleteResolveMethod.md +1 -1
- package/docs/wiki/Function.UseAutocompleteToDisplayFunction.md +1 -1
- package/docs/wiki/Function.UseComponent.md +1 -1
- package/docs/wiki/Function.UseDataSource.md +1 -1
- package/docs/wiki/Function.UseFormComponent.md +1 -1
- package/docs/wiki/Function.UseFunction.md +1 -1
- package/docs/wiki/Function.UseHideFunction.md +1 -1
- package/docs/wiki/Function.UseIsValueFunction.md +2 -2
- package/docs/wiki/Function.UseMethod.md +1 -1
- package/docs/wiki/Function.UseOptionsDataSource.md +1 -1
- package/docs/wiki/Function.UseOptionsMethod.md +7 -3
- package/docs/wiki/Function.UseOptionsRemoteMethod.md +1 -1
- package/docs/wiki/Function.UseRemoteMethod.md +1 -1
- package/docs/wiki/Function.UseResolveMethod.md +2 -2
- package/docs/wiki/Function.UseShowFunction.md +1 -1
- package/docs/wiki/Function.UseToDisplayFunction.md +2 -2
- package/docs/wiki/Function.controlDataSource.md +1 -1
- package/docs/wiki/Interface.AutocompleteOptionsFromMethodDirectiveParameters.md +2 -2
- package/docs/wiki/Interface.AutocompleteOptionsFromMethodDirectiveSettings.md +2 -2
- package/docs/wiki/Interface.AutocompleteOptionsFromRemoteMethodTemplateContext.md +2 -2
- package/docs/wiki/Interface.ControlHideShowOptions.md +2 -2
- package/docs/wiki/Interface.ControlWithDataSource.md +2 -2
- package/docs/wiki/Interface.ForFormArrayItemsDirectiveContext.md +8 -8
- package/docs/wiki/Interface.InputSelectOptionsSettings.md +5 -5
- package/docs/wiki/Interface.InputSelectOptionsTemplateContext.md +2 -2
- package/docs/wiki/Interface.OptionsFromMethodDirectiveSettings.md +1 -1
- package/docs/wiki/Interface.OptionsFromMethodTemplateContext.md +2 -2
- package/docs/wiki/Interface.OptionsFromRemoteMethodTemplateContext.md +2 -2
- package/docs/wiki/Interface.UseDataSourceSettings.md +2 -2
- package/docs/wiki/Interface.UseDataSourceValue.md +4 -4
- package/docs/wiki/Interface.UseFunctionConfig.md +2 -2
- package/docs/wiki/Interface.UseFunctionDefinition.md +3 -3
- package/docs/wiki/Interface.UseMethodConfig.md +2 -2
- package/docs/wiki/Interface.UseMethodDefinition.md +3 -3
- package/docs/wiki/TypeAlias.ControlHideShowFunction.md +1 -1
- package/docs/wiki/TypeAlias.FunctionParameterAdapterFunction.md +1 -1
- package/docs/wiki/TypeAlias.FunctionResultAdapterFunction.md +1 -1
- package/docs/wiki/TypeAlias.MethodParameterAdapterFunction.md +1 -1
- package/docs/wiki/TypeAlias.MethodResultAdapterFunction.md +1 -1
- package/docs/wiki/TypeAlias.OptionsMethod.md +11 -0
- package/docs/wiki/TypeAlias.UseFunctionType.md +1 -1
- package/docs/wiki/TypeAlias.UseOptionsDataSourceSettings.md +1 -1
- package/docs/wiki/Variable.DATA_SOURCE_NAME.md +1 -1
- package/docs/wiki/Variable.IS_VALUE_FUNCTION_NAME.md +1 -1
- package/docs/wiki/Variable.OPTIONS_METHOD_NAME.md +1 -1
- package/docs/wiki/Variable.REMOTE_METHOD_NAME.md +1 -1
- package/docs/wiki/Variable.RESOLVE_METHOD_NAME.md +1 -1
- package/docs/wiki/Variable.RXAP_FORM_CONTROL_SOURCE.md +1 -1
- package/docs/wiki/Variable.RXAP_FORM_SYSTEM_HIDE_METADATA.md +1 -1
- package/docs/wiki/Variable.RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS.md +1 -1
- package/docs/wiki/Variable.RXAP_FORM_SYSTEM_SHOW_METADATA.md +1 -1
- package/docs/wiki/Variable.RXAP_USE_FUNCTION.md +1 -1
- package/docs/wiki/Variable.RXAP_USE_METHOD.md +1 -1
- package/docs/wiki/Variable.RXAP_USE_REMOTE_METHOD.md +1 -1
- package/docs/wiki/Variable.SUBMIT_CONTEXT_FORM_ADAPTER_METHOD.md +1 -1
- package/docs/wiki/Variable.TO_DISPLAY_FUNCTION_NAME.md +1 -1
- package/docs/wiki/_Sidebar.md +1 -0
- package/docs/wiki/globals.md +2 -1
- package/fesm2022/rxap-form-system.mjs +24 -6
- package/fesm2022/rxap-form-system.mjs.map +1 -1
- package/lib/directives/autocomplete-options-from-method.directive.d.ts +6 -5
- package/lib/directives/options-from-method.directive.d.ts +9 -6
- package/lib/mixins/extract-options-method.mixin.d.ts +3 -1
- package/package.json +15 -15
|
@@ -256,22 +256,32 @@ export class GetCompanyMethod implements Method<ControlOption, { parameters:
|
|
|
256
256
|
OnDestroy,
|
|
257
257
|
ProviderToken,
|
|
258
258
|
} from '@angular/core';
|
|
259
|
-
import { MatAutocomplete } from '@angular/material/autocomplete';
|
|
260
|
-
import { ControlOption, ControlOptions } from '@rxap/utilities';
|
|
261
|
-
import { distinctUntilChanged, Subscription, tap } from 'rxjs';
|
|
262
|
-
import { isUUID } from '@rxap/validator';
|
|
263
|
-
import { Method, MethodWithParameters } from '@rxap/pattern';
|
|
264
|
-
import { Mixin } from '@rxap/mixin';
|
|
265
259
|
import { NgControl } from '@angular/forms';
|
|
260
|
+
import { MatAutocomplete } from '@angular/material/autocomplete';
|
|
266
261
|
import { MatFormField } from '@angular/material/form-field';
|
|
262
|
+
import { controlValueChanges$ } from '@rxap/forms';
|
|
263
|
+
import { Mixin } from '@rxap/mixin';
|
|
264
|
+
import { OpenApiRemoteMethodParameter } from '@rxap/open-api/remote-method';
|
|
265
|
+
import {
|
|
266
|
+
Method,
|
|
267
|
+
MethodWithParameters,
|
|
268
|
+
} from '@rxap/pattern';
|
|
267
269
|
import { isDefined } from '@rxap/rxjs';
|
|
268
|
-
import {
|
|
269
|
-
|
|
270
|
+
import {
|
|
271
|
+
ControlOption,
|
|
272
|
+
ControlOptions,
|
|
273
|
+
} from '@rxap/utilities';
|
|
274
|
+
import { isUUID } from '@rxap/validator';
|
|
275
|
+
import {
|
|
276
|
+
distinctUntilChanged,
|
|
277
|
+
Observable,
|
|
278
|
+
Subscription,
|
|
279
|
+
tap,
|
|
280
|
+
} from 'rxjs';
|
|
270
281
|
import {
|
|
271
282
|
ExtractIsValueFunctionMixin,
|
|
272
283
|
UseIsValueFunction,
|
|
273
284
|
} from '../mixins/extract-is-value-function.mixin';
|
|
274
|
-
import { ExtractMethodMixin } from '../mixins/extract-method.mixin';
|
|
275
285
|
import { UseMethodConfig } from '../mixins/extract-methods.mixin';
|
|
276
286
|
import { UseOptionsMethod } from '../mixins/extract-options-method.mixin';
|
|
277
287
|
import {
|
|
@@ -282,9 +292,10 @@ import {
|
|
|
282
292
|
ExtractToDisplayFunctionMixin,
|
|
283
293
|
UseToDisplayFunction,
|
|
284
294
|
} from '../mixins/extract-to-display-function.mixin';
|
|
285
|
-
import {
|
|
286
|
-
|
|
287
|
-
|
|
295
|
+
import {
|
|
296
|
+
OptionsFromMethodDirective,
|
|
297
|
+
OptionsFromMethodDirectiveSettings,
|
|
298
|
+
} from './options-from-method.directive';
|
|
288
299
|
|
|
289
300
|
export function UseAutocompleteOptionsMethod(
|
|
290
301
|
method: ProviderToken<MethodWithParameters<ControlOptions, AutocompleteOptionsFromMethodDirectiveParameters>>,
|
|
@@ -403,7 +414,8 @@ export class AutocompleteOptionsFromMethodDirective<Value = any, Paramet
|
|
|
403
414
|
|
|
404
415
|
private _subscription?: Subscription;
|
|
405
416
|
|
|
406
|
-
public ngOnDestroy() {
|
|
417
|
+
public override ngOnDestroy() {
|
|
418
|
+
super.ngOnDestroy();
|
|
407
419
|
this._subscription?.unsubscribe();
|
|
408
420
|
}
|
|
409
421
|
|
|
@@ -436,7 +448,7 @@ export class AutocompleteOptionsFromMethodDirective<Value = any, Paramet
|
|
|
436
448
|
// to trigger the toDisplay function in the mat-autocomplete
|
|
437
449
|
distinctUntilChanged(),
|
|
438
450
|
tap(async value => {
|
|
439
|
-
|
|
451
|
+
await this.load(this.parameters);
|
|
440
452
|
if (this.isValue?.(value)) {
|
|
441
453
|
this.triggerAutocompleteToDisplay();
|
|
442
454
|
}
|
|
@@ -444,7 +456,7 @@ export class AutocompleteOptionsFromMethodDirective<Value = any, Paramet
|
|
|
444
456
|
).subscribe();
|
|
445
457
|
}
|
|
446
458
|
|
|
447
|
-
protected override loadOptions(parameters: Parameters = {} as Parameters): Promise<ControlOptions | null> {
|
|
459
|
+
protected override loadOptions(parameters: Parameters = {} as Parameters): Promise<ControlOptions | null | Observable<ControlOptions | null>> {
|
|
448
460
|
if (!this.control) {
|
|
449
461
|
throw new Error('The control is not yet defined');
|
|
450
462
|
}
|
|
@@ -140,11 +140,12 @@
|
|
|
140
140
|
ChangeDetectorRef,
|
|
141
141
|
Directive,
|
|
142
142
|
inject,
|
|
143
|
-
InjectFlags,
|
|
144
143
|
INJECTOR,
|
|
145
144
|
Injector,
|
|
146
145
|
Input,
|
|
147
146
|
OnChanges,
|
|
147
|
+
OnDestroy,
|
|
148
|
+
signal,
|
|
148
149
|
SimpleChanges,
|
|
149
150
|
TemplateRef,
|
|
150
151
|
ViewContainerRef,
|
|
@@ -156,12 +157,20 @@ import {
|
|
|
156
157
|
import { MatFormField } from '@angular/material/form-field';
|
|
157
158
|
import { RxapFormControl } from '@rxap/forms';
|
|
158
159
|
import { Mixin } from '@rxap/mixin';
|
|
159
|
-
import { Method } from '@rxap/pattern';
|
|
160
160
|
import {
|
|
161
161
|
ControlOption,
|
|
162
162
|
ControlOptions,
|
|
163
163
|
} from '@rxap/utilities';
|
|
164
|
-
import {
|
|
164
|
+
import {
|
|
165
|
+
isObservable,
|
|
166
|
+
Observable,
|
|
167
|
+
Subscription,
|
|
168
|
+
tap,
|
|
169
|
+
} from 'rxjs';
|
|
170
|
+
import {
|
|
171
|
+
ExtractOptionsMethodMixin,
|
|
172
|
+
OptionsMethod,
|
|
173
|
+
} from '../mixins/extract-options-method.mixin';
|
|
165
174
|
|
|
166
175
|
|
|
167
176
|
export interface OptionsFromMethodTemplateContext {
|
|
@@ -184,7 +193,7 @@ export interface OptionsFromMethodDirective<Value = any, Parameters 
|
|
|
184
193
|
standalone: true,
|
|
185
194
|
exportAs: 'rxapOptionsFromMethod',
|
|
186
195
|
})
|
|
187
|
-
export class OptionsFromMethodDirective<Value = any, Parameters = any> implements AfterViewInit, OnChanges {
|
|
196
|
+
export class OptionsFromMethodDirective<Value = any, Parameters = any> implements AfterViewInit, OnChanges, OnDestroy {
|
|
188
197
|
|
|
189
198
|
static ngTemplateContextGuard(
|
|
190
199
|
dir: OptionsFromMethodDirective,
|
|
@@ -193,6 +202,8 @@ export class OptionsFromMethodDirective<Value = any, Parameters = a
|
|
|
193
202
|
return true;
|
|
194
203
|
}
|
|
195
204
|
|
|
205
|
+
readonly loading = signal<boolean>(true);
|
|
206
|
+
|
|
196
207
|
@Input('rxapOptionsFromMethodParameters')
|
|
197
208
|
public parameters?: Parameters;
|
|
198
209
|
|
|
@@ -202,7 +213,7 @@ export class OptionsFromMethodDirective<Value = any, Parameters = a
|
|
|
202
213
|
public options: ControlOptions | null = null;
|
|
203
214
|
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
204
215
|
@Input('rxapOptionsFromMethodCall')
|
|
205
|
-
public method!:
|
|
216
|
+
public method!: OptionsMethod<Parameters>;
|
|
206
217
|
protected ngControl: NgControl | AbstractControlDirective | null = null;
|
|
207
218
|
protected matFormField: MatFormField | null = null;
|
|
208
219
|
protected settings: OptionsFromMethodDirectiveSettings = {};
|
|
@@ -211,6 +222,8 @@ export class OptionsFromMethodDirective<Value = any, Parameters = a
|
|
|
211
222
|
protected readonly cdr: ChangeDetectorRef = inject(ChangeDetectorRef);
|
|
212
223
|
private readonly template: TemplateRef<OptionsFromMethodTemplateContext> = inject(TemplateRef);
|
|
213
224
|
|
|
225
|
+
protected _loadOptionsSubscription?: Subscription;
|
|
226
|
+
|
|
214
227
|
public async ngAfterViewInit() {
|
|
215
228
|
this.matFormField = this.injector.get(MatFormField, null);
|
|
216
229
|
this.ngControl = this.matFormField?._control.ngControl ?? this.injector.get(NgControl, null);
|
|
@@ -219,10 +232,14 @@ export class OptionsFromMethodDirective<Value = any, Parameters = a
|
|
|
219
232
|
// ensure that the options are loaded. It is possible that the ngOnChange is triggered before the ngAfterViewInit
|
|
220
233
|
// then the options are not loaded.
|
|
221
234
|
if (!this.options) {
|
|
222
|
-
|
|
235
|
+
await this.load(this.parameters);
|
|
223
236
|
}
|
|
224
237
|
}
|
|
225
238
|
|
|
239
|
+
ngOnDestroy() {
|
|
240
|
+
this._loadOptionsSubscription?.unsubscribe();
|
|
241
|
+
}
|
|
242
|
+
|
|
226
243
|
public async ngOnChanges(changes: SimpleChanges) {
|
|
227
244
|
// only try to load the options if the method is defined
|
|
228
245
|
// else the initial load will be triggered in the ngAfterViewInit
|
|
@@ -236,7 +253,7 @@ export class OptionsFromMethodDirective<Value = any, Parameters = a
|
|
|
236
253
|
}
|
|
237
254
|
}
|
|
238
255
|
|
|
239
|
-
protected async loadOptions(parameters?: Parameters): Promise<ControlOptions | null> {
|
|
256
|
+
protected async loadOptions(parameters?: Parameters): Promise<Observable<ControlOptions | null> | ControlOptions | null> {
|
|
240
257
|
return this.method.call(parameters);
|
|
241
258
|
}
|
|
242
259
|
|
|
@@ -271,7 +288,20 @@ export class OptionsFromMethodDirective<Value = any, Parameters = a
|
|
|
271
288
|
}
|
|
272
289
|
|
|
273
290
|
public async load(parameters: Parameters | undefined = this.parameters) {
|
|
274
|
-
this.
|
|
291
|
+
this.loading.set(true);
|
|
292
|
+
try {
|
|
293
|
+
const result = await this.loadOptions(parameters);
|
|
294
|
+
if (isObservable(result)) {
|
|
295
|
+
this._loadOptionsSubscription?.unsubscribe();
|
|
296
|
+
this._loadOptionsSubscription = result.pipe(
|
|
297
|
+
tap(options => this.setOptions(options)),
|
|
298
|
+
).subscribe();
|
|
299
|
+
} else {
|
|
300
|
+
this.setOptions(result);
|
|
301
|
+
}
|
|
302
|
+
} finally {
|
|
303
|
+
this.loading.set(false);
|
|
304
|
+
}
|
|
275
305
|
}
|
|
276
306
|
|
|
277
307
|
}
|
|
@@ -200,11 +200,12 @@
|
|
|
200
200
|
ChangeDetectorRef,
|
|
201
201
|
Directive,
|
|
202
202
|
inject,
|
|
203
|
-
InjectFlags,
|
|
204
203
|
INJECTOR,
|
|
205
204
|
Injector,
|
|
206
205
|
Input,
|
|
207
206
|
OnChanges,
|
|
207
|
+
OnDestroy,
|
|
208
|
+
signal,
|
|
208
209
|
SimpleChanges,
|
|
209
210
|
TemplateRef,
|
|
210
211
|
ViewContainerRef,
|
|
@@ -216,12 +217,20 @@ import {
|
|
|
216
217
|
import { MatFormField } from '@angular/material/form-field';
|
|
217
218
|
import { RxapFormControl } from '@rxap/forms';
|
|
218
219
|
import { Mixin } from '@rxap/mixin';
|
|
219
|
-
import { Method } from '@rxap/pattern';
|
|
220
220
|
import {
|
|
221
221
|
ControlOption,
|
|
222
222
|
ControlOptions,
|
|
223
223
|
} from '@rxap/utilities';
|
|
224
|
-
import {
|
|
224
|
+
import {
|
|
225
|
+
isObservable,
|
|
226
|
+
Observable,
|
|
227
|
+
Subscription,
|
|
228
|
+
tap,
|
|
229
|
+
} from 'rxjs';
|
|
230
|
+
import {
|
|
231
|
+
ExtractOptionsMethodMixin,
|
|
232
|
+
OptionsMethod,
|
|
233
|
+
} from '../mixins/extract-options-method.mixin';
|
|
225
234
|
|
|
226
235
|
|
|
227
236
|
export interface OptionsFromMethodTemplateContext {
|
|
@@ -244,7 +253,7 @@ export interface OptionsFromMethodDirective<Value = any, Parameters 
|
|
|
244
253
|
standalone: true,
|
|
245
254
|
exportAs: 'rxapOptionsFromMethod',
|
|
246
255
|
})
|
|
247
|
-
export class OptionsFromMethodDirective<Value = any, Parameters = any> implements AfterViewInit, OnChanges {
|
|
256
|
+
export class OptionsFromMethodDirective<Value = any, Parameters = any> implements AfterViewInit, OnChanges, OnDestroy {
|
|
248
257
|
|
|
249
258
|
static ngTemplateContextGuard(
|
|
250
259
|
dir: OptionsFromMethodDirective,
|
|
@@ -253,6 +262,8 @@ export class OptionsFromMethodDirective<Value = any, Parameters = a
|
|
|
253
262
|
return true;
|
|
254
263
|
}
|
|
255
264
|
|
|
265
|
+
readonly loading = signal<boolean>(true);
|
|
266
|
+
|
|
256
267
|
@Input('rxapOptionsFromMethodParameters')
|
|
257
268
|
public parameters?: Parameters;
|
|
258
269
|
|
|
@@ -262,7 +273,7 @@ export class OptionsFromMethodDirective<Value = any, Parameters = a
|
|
|
262
273
|
public options: ControlOptions | null = null;
|
|
263
274
|
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
264
275
|
@Input('rxapOptionsFromMethodCall')
|
|
265
|
-
public method!:
|
|
276
|
+
public method!: OptionsMethod<Parameters>;
|
|
266
277
|
protected ngControl: NgControl | AbstractControlDirective | null = null;
|
|
267
278
|
protected matFormField: MatFormField | null = null;
|
|
268
279
|
protected settings: OptionsFromMethodDirectiveSettings = {};
|
|
@@ -271,6 +282,8 @@ export class OptionsFromMethodDirective<Value = any, Parameters = a
|
|
|
271
282
|
protected readonly cdr: ChangeDetectorRef = inject(ChangeDetectorRef);
|
|
272
283
|
private readonly template: TemplateRef<OptionsFromMethodTemplateContext> = inject(TemplateRef);
|
|
273
284
|
|
|
285
|
+
protected _loadOptionsSubscription?: Subscription;
|
|
286
|
+
|
|
274
287
|
public async ngAfterViewInit() {
|
|
275
288
|
this.matFormField = this.injector.get(MatFormField, null);
|
|
276
289
|
this.ngControl = this.matFormField?._control.ngControl ?? this.injector.get(NgControl, null);
|
|
@@ -279,10 +292,14 @@ export class OptionsFromMethodDirective<Value = any, Parameters = a
|
|
|
279
292
|
// ensure that the options are loaded. It is possible that the ngOnChange is triggered before the ngAfterViewInit
|
|
280
293
|
// then the options are not loaded.
|
|
281
294
|
if (!this.options) {
|
|
282
|
-
|
|
295
|
+
await this.load(this.parameters);
|
|
283
296
|
}
|
|
284
297
|
}
|
|
285
298
|
|
|
299
|
+
ngOnDestroy() {
|
|
300
|
+
this._loadOptionsSubscription?.unsubscribe();
|
|
301
|
+
}
|
|
302
|
+
|
|
286
303
|
public async ngOnChanges(changes: SimpleChanges) {
|
|
287
304
|
// only try to load the options if the method is defined
|
|
288
305
|
// else the initial load will be triggered in the ngAfterViewInit
|
|
@@ -296,7 +313,7 @@ export class OptionsFromMethodDirective<Value = any, Parameters = a
|
|
|
296
313
|
}
|
|
297
314
|
}
|
|
298
315
|
|
|
299
|
-
protected async loadOptions(parameters?: Parameters): Promise<ControlOptions | null> {
|
|
316
|
+
protected async loadOptions(parameters?: Parameters): Promise<Observable<ControlOptions | null> | ControlOptions | null> {
|
|
300
317
|
return this.method.call(parameters);
|
|
301
318
|
}
|
|
302
319
|
|
|
@@ -331,7 +348,20 @@ export class OptionsFromMethodDirective<Value = any, Parameters = a
|
|
|
331
348
|
}
|
|
332
349
|
|
|
333
350
|
public async load(parameters: Parameters | undefined = this.parameters) {
|
|
334
|
-
this.
|
|
351
|
+
this.loading.set(true);
|
|
352
|
+
try {
|
|
353
|
+
const result = await this.loadOptions(parameters);
|
|
354
|
+
if (isObservable(result)) {
|
|
355
|
+
this._loadOptionsSubscription?.unsubscribe();
|
|
356
|
+
this._loadOptionsSubscription = result.pipe(
|
|
357
|
+
tap(options => this.setOptions(options)),
|
|
358
|
+
).subscribe();
|
|
359
|
+
} else {
|
|
360
|
+
this.setOptions(result);
|
|
361
|
+
}
|
|
362
|
+
} finally {
|
|
363
|
+
this.loading.set(false);
|
|
364
|
+
}
|
|
335
365
|
}
|
|
336
366
|
|
|
337
367
|
}
|