@rxap/form-system 19.1.0-dev.1 → 19.1.0-dev.3
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 +4 -4
- package/compodoc/directives/AutocompleteOptionsFromMethodDirective.html +47 -35
- package/compodoc/directives/OptionsFromMethodDirective.html +87 -31
- 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 +30 -8
- package/compodoc/interfaces/OptionsFromMethodTemplateContext.html +30 -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 +3921 -3554
- 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 +7 -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 +9 -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 +52 -40
- 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 +53 -29
- 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 +10 -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 +17 -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 +51 -39
- 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 +52 -28
- 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 +9 -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 +13 -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 +16 -5
- 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 +8 -6
- package/lib/mixins/extract-options-method.mixin.d.ts +3 -1
- package/package.json +13 -13
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Interface: UseMethodDefinition\<ReturnType, Parameter, Config\>
|
|
4
4
|
|
|
5
|
-
Defined in: [packages/angular/form-system/src/lib/mixins/extract-methods.mixin.ts:32](https://gitlab.com/rxap/packages/-/blob/
|
|
5
|
+
Defined in: [packages/angular/form-system/src/lib/mixins/extract-methods.mixin.ts:32](https://gitlab.com/rxap/packages/-/blob/70f5be4dc39ea8027195ec2f289f8adab307152c/packages/angular/form-system/src/lib/mixins/extract-methods.mixin.ts#L32)
|
|
6
6
|
|
|
7
7
|
## Type Parameters
|
|
8
8
|
|
|
@@ -18,7 +18,7 @@ Defined in: [packages/angular/form-system/src/lib/mixins/extract-methods.mixin.t
|
|
|
18
18
|
|
|
19
19
|
> `optional` **config**: `Config`
|
|
20
20
|
|
|
21
|
-
Defined in: [packages/angular/form-system/src/lib/mixins/extract-methods.mixin.ts:38](https://gitlab.com/rxap/packages/-/blob/
|
|
21
|
+
Defined in: [packages/angular/form-system/src/lib/mixins/extract-methods.mixin.ts:38](https://gitlab.com/rxap/packages/-/blob/70f5be4dc39ea8027195ec2f289f8adab307152c/packages/angular/form-system/src/lib/mixins/extract-methods.mixin.ts#L38)
|
|
22
22
|
|
|
23
23
|
***
|
|
24
24
|
|
|
@@ -26,4 +26,4 @@ Defined in: [packages/angular/form-system/src/lib/mixins/extract-methods.mixin.t
|
|
|
26
26
|
|
|
27
27
|
> **method**: `ProviderToken`\<`Method`\<`ReturnType`, `Parameter`\>\>
|
|
28
28
|
|
|
29
|
-
Defined in: [packages/angular/form-system/src/lib/mixins/extract-methods.mixin.ts:37](https://gitlab.com/rxap/packages/-/blob/
|
|
29
|
+
Defined in: [packages/angular/form-system/src/lib/mixins/extract-methods.mixin.ts:37](https://gitlab.com/rxap/packages/-/blob/70f5be4dc39ea8027195ec2f289f8adab307152c/packages/angular/form-system/src/lib/mixins/extract-methods.mixin.ts#L37)
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **ControlHideShowFunction**\<`T`\>: (`this`, `control`) => `boolean` \| `null`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/form-system/src/lib/directives/control-hide-show.directive.ts:42](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/form-system/src/lib/directives/control-hide-show.directive.ts:42](https://gitlab.com/rxap/packages/-/blob/70f5be4dc39ea8027195ec2f289f8adab307152c/packages/angular/form-system/src/lib/directives/control-hide-show.directive.ts#L42)
|
|
8
8
|
|
|
9
9
|
## Type Parameters
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **FunctionParameterAdapterFunction**\<`Source`, `Target`\>: (`args`) => `Target`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/form-system/src/lib/mixins/extract-functions.mixin.ts:9](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/form-system/src/lib/mixins/extract-functions.mixin.ts:9](https://gitlab.com/rxap/packages/-/blob/70f5be4dc39ea8027195ec2f289f8adab307152c/packages/angular/form-system/src/lib/mixins/extract-functions.mixin.ts#L9)
|
|
8
8
|
|
|
9
9
|
## Type Parameters
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **FunctionResultAdapterFunction**\<`Source`, `Target`\>: (`result`) => `Target`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/form-system/src/lib/mixins/extract-functions.mixin.ts:10](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/form-system/src/lib/mixins/extract-functions.mixin.ts:10](https://gitlab.com/rxap/packages/-/blob/70f5be4dc39ea8027195ec2f289f8adab307152c/packages/angular/form-system/src/lib/mixins/extract-functions.mixin.ts#L10)
|
|
8
8
|
|
|
9
9
|
## Type Parameters
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **MethodParameterAdapterFunction**\<`Source`, `Target`\>: (`parameter`) => `Target`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/form-system/src/lib/mixins/extract-methods.mixin.ts:11](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/form-system/src/lib/mixins/extract-methods.mixin.ts:11](https://gitlab.com/rxap/packages/-/blob/70f5be4dc39ea8027195ec2f289f8adab307152c/packages/angular/form-system/src/lib/mixins/extract-methods.mixin.ts#L11)
|
|
8
8
|
|
|
9
9
|
## Type Parameters
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **MethodResultAdapterFunction**\<`Source`, `Target`\>: (`result`) => `Target`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/form-system/src/lib/mixins/extract-methods.mixin.ts:12](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/form-system/src/lib/mixins/extract-methods.mixin.ts:12](https://gitlab.com/rxap/packages/-/blob/70f5be4dc39ea8027195ec2f289f8adab307152c/packages/angular/form-system/src/lib/mixins/extract-methods.mixin.ts#L12)
|
|
8
8
|
|
|
9
9
|
## Type Parameters
|
|
10
10
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
[@rxap/form-system](../wiki/globals) / OptionsMethod
|
|
2
|
+
|
|
3
|
+
# Type Alias: OptionsMethod\<CO, Parameters\>
|
|
4
|
+
|
|
5
|
+
> **OptionsMethod**\<`CO`, `Parameters`\>: `Method`\<`CO` \| `Observable`\<`CO` \| `null`\> \| `null`, `Parameters`\>
|
|
6
|
+
|
|
7
|
+
Defined in: [packages/angular/form-system/src/lib/mixins/extract-options-method.mixin.ts:17](https://gitlab.com/rxap/packages/-/blob/70f5be4dc39ea8027195ec2f289f8adab307152c/packages/angular/form-system/src/lib/mixins/extract-options-method.mixin.ts#L17)
|
|
8
|
+
|
|
9
|
+
## Type Parameters
|
|
10
|
+
|
|
11
|
+
• **CO** *extends* `ControlOptions` = `ControlOptions`
|
|
12
|
+
|
|
13
|
+
• **Parameters** = `any`
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **UseFunctionType**\<`Args`, `Result`\>: (...`args`) => `Result`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/form-system/src/lib/mixins/extract-functions.mixin.ts:24](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/form-system/src/lib/mixins/extract-functions.mixin.ts:24](https://gitlab.com/rxap/packages/-/blob/70f5be4dc39ea8027195ec2f289f8adab307152c/packages/angular/form-system/src/lib/mixins/extract-functions.mixin.ts#L24)
|
|
8
8
|
|
|
9
9
|
## Type Parameters
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **UseOptionsDataSourceSettings**\<`Source`\>: [`UseDataSourceSettings`](../wiki/Interface.UseDataSourceSettings)\<`Source`, `ControlOptions` \| `Record`\<`string`, `any`\>\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/form-system/src/lib/mixins/extract-options-data-source.mixin.ts:31](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/form-system/src/lib/mixins/extract-options-data-source.mixin.ts:31](https://gitlab.com/rxap/packages/-/blob/70f5be4dc39ea8027195ec2f289f8adab307152c/packages/angular/form-system/src/lib/mixins/extract-options-data-source.mixin.ts#L31)
|
|
8
8
|
|
|
9
9
|
## Type Parameters
|
|
10
10
|
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **DATA\_SOURCE\_NAME**: `"options"` = `'options'`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/form-system/src/lib/mixins/extract-options-data-source.mixin.ts:33](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/form-system/src/lib/mixins/extract-options-data-source.mixin.ts:33](https://gitlab.com/rxap/packages/-/blob/70f5be4dc39ea8027195ec2f289f8adab307152c/packages/angular/form-system/src/lib/mixins/extract-options-data-source.mixin.ts#L33)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **IS\_VALUE\_FUNCTION\_NAME**: `"is-value"` = `'is-value'`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/form-system/src/lib/mixins/extract-is-value-function.mixin.ts:13](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/form-system/src/lib/mixins/extract-is-value-function.mixin.ts:13](https://gitlab.com/rxap/packages/-/blob/70f5be4dc39ea8027195ec2f289f8adab307152c/packages/angular/form-system/src/lib/mixins/extract-is-value-function.mixin.ts#L13)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **OPTIONS\_METHOD\_NAME**: `"options"` = `'options'`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/form-system/src/lib/mixins/extract-options-method.mixin.ts:
|
|
7
|
+
Defined in: [packages/angular/form-system/src/lib/mixins/extract-options-method.mixin.ts:15](https://gitlab.com/rxap/packages/-/blob/70f5be4dc39ea8027195ec2f289f8adab307152c/packages/angular/form-system/src/lib/mixins/extract-options-method.mixin.ts#L15)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **REMOTE\_METHOD\_NAME**: `"options"` = `'options'`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/form-system/src/lib/directives/options-from-remote-method.directive.ts:41](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/form-system/src/lib/directives/options-from-remote-method.directive.ts:41](https://gitlab.com/rxap/packages/-/blob/70f5be4dc39ea8027195ec2f289f8adab307152c/packages/angular/form-system/src/lib/directives/options-from-remote-method.directive.ts#L41)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **RESOLVE\_METHOD\_NAME**: `"resolve"` = `'resolve'`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/form-system/src/lib/mixins/extract-resolve-method.mixin.ts:14](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/form-system/src/lib/mixins/extract-resolve-method.mixin.ts:14](https://gitlab.com/rxap/packages/-/blob/70f5be4dc39ea8027195ec2f289f8adab307152c/packages/angular/form-system/src/lib/mixins/extract-resolve-method.mixin.ts#L14)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **RXAP\_FORM\_CONTROL\_SOURCE**: `InjectionToken`\<`unknown`\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/form-system/src/lib/control-data-source.ts:21](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/form-system/src/lib/control-data-source.ts:21](https://gitlab.com/rxap/packages/-/blob/70f5be4dc39ea8027195ec2f289f8adab307152c/packages/angular/form-system/src/lib/control-data-source.ts#L21)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **RXAP\_FORM\_SYSTEM\_HIDE\_METADATA**: `"rxap/form-system/hide-function"` = `'rxap/form-system/hide-function'`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/form-system/src/lib/directives/control-hide-show.directive.ts:39](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/form-system/src/lib/directives/control-hide-show.directive.ts:39](https://gitlab.com/rxap/packages/-/blob/70f5be4dc39ea8027195ec2f289f8adab307152c/packages/angular/form-system/src/lib/directives/control-hide-show.directive.ts#L39)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **RXAP\_FORM\_SYSTEM\_HIDE\_SHOW\_OPTIONS**: `"rxap/form-system/hide-show-options"` = `'rxap/form-system/hide-show-options'`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/form-system/src/lib/directives/control-hide-show.directive.ts:40](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/form-system/src/lib/directives/control-hide-show.directive.ts:40](https://gitlab.com/rxap/packages/-/blob/70f5be4dc39ea8027195ec2f289f8adab307152c/packages/angular/form-system/src/lib/directives/control-hide-show.directive.ts#L40)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **RXAP\_FORM\_SYSTEM\_SHOW\_METADATA**: `"rxap/form-system/show-function"` = `'rxap/form-system/show-function'`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/form-system/src/lib/directives/control-hide-show.directive.ts:38](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/form-system/src/lib/directives/control-hide-show.directive.ts:38](https://gitlab.com/rxap/packages/-/blob/70f5be4dc39ea8027195ec2f289f8adab307152c/packages/angular/form-system/src/lib/directives/control-hide-show.directive.ts#L38)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **RXAP\_USE\_FUNCTION**: `"rxap/form-system/function/use"` = `'rxap/form-system/function/use'`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/form-system/src/lib/mixins/extract-functions.mixin.ts:7](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/form-system/src/lib/mixins/extract-functions.mixin.ts:7](https://gitlab.com/rxap/packages/-/blob/70f5be4dc39ea8027195ec2f289f8adab307152c/packages/angular/form-system/src/lib/mixins/extract-functions.mixin.ts#L7)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **RXAP\_USE\_METHOD**: `"rxap/form-system/method/use"` = `'rxap/form-system/method/use'`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/form-system/src/lib/mixins/extract-methods.mixin.ts:9](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/form-system/src/lib/mixins/extract-methods.mixin.ts:9](https://gitlab.com/rxap/packages/-/blob/70f5be4dc39ea8027195ec2f289f8adab307152c/packages/angular/form-system/src/lib/mixins/extract-methods.mixin.ts#L9)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **RXAP\_USE\_REMOTE\_METHOD**: `"rxap/form-system/remote-method/use"` = `'rxap/form-system/remote-method/use'`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/form-system/src/lib/directives/options-from-remote-method.directive.ts:43](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/form-system/src/lib/directives/options-from-remote-method.directive.ts:43](https://gitlab.com/rxap/packages/-/blob/70f5be4dc39ea8027195ec2f289f8adab307152c/packages/angular/form-system/src/lib/directives/options-from-remote-method.directive.ts#L43)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **SUBMIT\_CONTEXT\_FORM\_ADAPTER\_METHOD**: `InjectionToken`\<`unknown`\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/form-system/src/lib/submit-context-form-adapter.factory.ts:13](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/form-system/src/lib/submit-context-form-adapter.factory.ts:13](https://gitlab.com/rxap/packages/-/blob/70f5be4dc39ea8027195ec2f289f8adab307152c/packages/angular/form-system/src/lib/submit-context-form-adapter.factory.ts#L13)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **TO\_DISPLAY\_FUNCTION\_NAME**: `"to-display"` = `'to-display'`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/angular/form-system/src/lib/mixins/extract-to-display-function.mixin.ts:13](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [packages/angular/form-system/src/lib/mixins/extract-to-display-function.mixin.ts:13](https://gitlab.com/rxap/packages/-/blob/70f5be4dc39ea8027195ec2f289f8adab307152c/packages/angular/form-system/src/lib/mixins/extract-to-display-function.mixin.ts#L13)
|
package/docs/wiki/_Sidebar.md
CHANGED
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
- [FunctionResultAdapterFunction](../wiki/TypeAlias.FunctionResultAdapterFunction)
|
|
69
69
|
- [MethodParameterAdapterFunction](../wiki/TypeAlias.MethodParameterAdapterFunction)
|
|
70
70
|
- [MethodResultAdapterFunction](../wiki/TypeAlias.MethodResultAdapterFunction)
|
|
71
|
+
- [OptionsMethod](../wiki/TypeAlias.OptionsMethod)
|
|
71
72
|
- [UseFunctionType](../wiki/TypeAlias.UseFunctionType)
|
|
72
73
|
- [UseOptionsDataSourceSettings](../wiki/TypeAlias.UseOptionsDataSourceSettings)
|
|
73
74
|
|
package/docs/wiki/globals.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @rxap/form-system v19.1.0-dev.
|
|
1
|
+
# @rxap/form-system v19.1.0-dev.3
|
|
2
2
|
|
|
3
3
|
## Enumerations
|
|
4
4
|
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
- [FunctionResultAdapterFunction](../wiki/TypeAlias.FunctionResultAdapterFunction)
|
|
69
69
|
- [MethodParameterAdapterFunction](../wiki/TypeAlias.MethodParameterAdapterFunction)
|
|
70
70
|
- [MethodResultAdapterFunction](../wiki/TypeAlias.MethodResultAdapterFunction)
|
|
71
|
+
- [OptionsMethod](../wiki/TypeAlias.OptionsMethod)
|
|
71
72
|
- [UseFunctionType](../wiki/TypeAlias.UseFunctionType)
|
|
72
73
|
- [UseOptionsDataSourceSettings](../wiki/TypeAlias.UseOptionsDataSourceSettings)
|
|
73
74
|
|
|
@@ -11,11 +11,11 @@ import { map, tap, startWith as startWith$1, catchError, throttleTime, distinctU
|
|
|
11
11
|
import { setMetadataMapMap, getMetadata, setMetadataMap, setMetadata } from '@rxap/reflect-metadata';
|
|
12
12
|
import { RxapError, isPromiseLike, isPromise, equals } from '@rxap/utilities';
|
|
13
13
|
import { ToMethod } from '@rxap/pattern';
|
|
14
|
-
import { debounceTime, map as map$1, distinctUntilChanged, startWith, pairwise, tap as tap$1, Subscription, of, EMPTY } from 'rxjs';
|
|
14
|
+
import { debounceTime, map as map$1, distinctUntilChanged, startWith, pairwise, tap as tap$1, isObservable, Subscription, of, EMPTY } from 'rxjs';
|
|
15
15
|
import * as i2 from '@angular/material/button';
|
|
16
16
|
import '@angular/material/autocomplete';
|
|
17
|
-
import { isUUID } from '@rxap/validator';
|
|
18
17
|
import { isDefined } from '@rxap/rxjs';
|
|
18
|
+
import { isUUID } from '@rxap/validator';
|
|
19
19
|
import * as i3 from '@angular/material/form-field';
|
|
20
20
|
import { MatFormField, MAT_FORM_FIELD } from '@angular/material/form-field';
|
|
21
21
|
import * as i2$1 from '@rxap/remote-method';
|
|
@@ -836,6 +836,9 @@ let OptionsFromMethodDirective = class OptionsFromMethodDirective {
|
|
|
836
836
|
await this.load(this.parameters);
|
|
837
837
|
}
|
|
838
838
|
}
|
|
839
|
+
ngOnDestroy() {
|
|
840
|
+
this._loadOptionsSubscription?.unsubscribe();
|
|
841
|
+
}
|
|
839
842
|
async ngOnChanges(changes) {
|
|
840
843
|
// only try to load the options if the method is defined
|
|
841
844
|
// else the initial load will be triggered in the ngAfterViewInit
|
|
@@ -849,7 +852,7 @@ let OptionsFromMethodDirective = class OptionsFromMethodDirective {
|
|
|
849
852
|
}
|
|
850
853
|
}
|
|
851
854
|
async loadOptions(parameters) {
|
|
852
|
-
return this.method.call(parameters);
|
|
855
|
+
return this.method.call(parameters, this.control);
|
|
853
856
|
}
|
|
854
857
|
renderTemplate() {
|
|
855
858
|
if (!this.options) {
|
|
@@ -877,7 +880,14 @@ let OptionsFromMethodDirective = class OptionsFromMethodDirective {
|
|
|
877
880
|
async load(parameters = this.parameters) {
|
|
878
881
|
this.loading.set(true);
|
|
879
882
|
try {
|
|
880
|
-
|
|
883
|
+
const result = await this.loadOptions(parameters);
|
|
884
|
+
if (isObservable(result)) {
|
|
885
|
+
this._loadOptionsSubscription?.unsubscribe();
|
|
886
|
+
this._loadOptionsSubscription = result.pipe(tap$1(options => this.setOptions(options))).subscribe();
|
|
887
|
+
}
|
|
888
|
+
else {
|
|
889
|
+
this.setOptions(result);
|
|
890
|
+
}
|
|
881
891
|
}
|
|
882
892
|
finally {
|
|
883
893
|
this.loading.set(false);
|
|
@@ -955,6 +965,7 @@ let AutocompleteOptionsFromMethodDirective = class AutocompleteOptionsFromMethod
|
|
|
955
965
|
return true;
|
|
956
966
|
}
|
|
957
967
|
ngOnDestroy() {
|
|
968
|
+
super.ngOnDestroy();
|
|
958
969
|
this._subscription?.unsubscribe();
|
|
959
970
|
}
|
|
960
971
|
async ngAfterViewInit() {
|
|
@@ -984,7 +995,7 @@ let AutocompleteOptionsFromMethodDirective = class AutocompleteOptionsFromMethod
|
|
|
984
995
|
// this is required because in the resolveValue method the control value is set
|
|
985
996
|
// to trigger the toDisplay function in the mat-autocomplete
|
|
986
997
|
distinctUntilChanged(), tap$1(async (value) => {
|
|
987
|
-
|
|
998
|
+
await this.load(this.parameters);
|
|
988
999
|
if (this.isValue?.(value)) {
|
|
989
1000
|
this.triggerAutocompleteToDisplay();
|
|
990
1001
|
}
|