@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
|
@@ -134,6 +134,7 @@
|
|
|
134
134
|
<p class="comment">
|
|
135
135
|
<code>AfterViewInit</code>
|
|
136
136
|
<code>OnChanges</code>
|
|
137
|
+
<code>OnDestroy</code>
|
|
137
138
|
</p>
|
|
138
139
|
|
|
139
140
|
|
|
@@ -174,6 +175,11 @@
|
|
|
174
175
|
<tr>
|
|
175
176
|
<td class="col-md-4">
|
|
176
177
|
<ul class="index-list">
|
|
178
|
+
<li>
|
|
179
|
+
<span class="modifier">Protected</span>
|
|
180
|
+
<span class="modifier">Optional</span>
|
|
181
|
+
<a href="#_loadOptionsSubscription" >_loadOptionsSubscription</a>
|
|
182
|
+
</li>
|
|
177
183
|
<li>
|
|
178
184
|
<span class="modifier">Protected</span>
|
|
179
185
|
<span class="modifier">Readonly</span>
|
|
@@ -288,13 +294,13 @@
|
|
|
288
294
|
</tr>
|
|
289
295
|
<tr>
|
|
290
296
|
<td class="col-md-4">
|
|
291
|
-
<i>Type : </i>
|
|
297
|
+
<i>Type : </i> <code><a href="../miscellaneous/typealiases.html#OptionsMethod" target="_self" >OptionsMethod<ControlOptions<Value> | Parameters></a></code>
|
|
292
298
|
|
|
293
299
|
</td>
|
|
294
300
|
</tr>
|
|
295
301
|
<tr>
|
|
296
302
|
<td class="col-md-2" colspan="2">
|
|
297
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
303
|
+
<div class="io-line">Defined in <a href="" data-line="79" class="link-to-prism">src/lib/directives/options-from-method.directive.ts:79</a></div>
|
|
298
304
|
</td>
|
|
299
305
|
</tr>
|
|
300
306
|
</tbody>
|
|
@@ -315,7 +321,7 @@
|
|
|
315
321
|
</tr>
|
|
316
322
|
<tr>
|
|
317
323
|
<td class="col-md-2" colspan="2">
|
|
318
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
324
|
+
<div class="io-line">Defined in <a href="" data-line="71" class="link-to-prism">src/lib/directives/options-from-method.directive.ts:71</a></div>
|
|
319
325
|
</td>
|
|
320
326
|
</tr>
|
|
321
327
|
</tbody>
|
|
@@ -336,7 +342,7 @@
|
|
|
336
342
|
</tr>
|
|
337
343
|
<tr>
|
|
338
344
|
<td class="col-md-2" colspan="2">
|
|
339
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
345
|
+
<div class="io-line">Defined in <a href="" data-line="74" class="link-to-prism">src/lib/directives/options-from-method.directive.ts:74</a></div>
|
|
340
346
|
</td>
|
|
341
347
|
</tr>
|
|
342
348
|
</tbody>
|
|
@@ -373,8 +379,8 @@
|
|
|
373
379
|
|
|
374
380
|
<tr>
|
|
375
381
|
<td class="col-md-4">
|
|
376
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
377
|
-
class="link-to-prism">src/lib/directives/options-from-method.directive.ts:
|
|
382
|
+
<div class="io-line">Defined in <a href="" data-line="153"
|
|
383
|
+
class="link-to-prism">src/lib/directives/options-from-method.directive.ts:153</a></div>
|
|
378
384
|
</td>
|
|
379
385
|
</tr>
|
|
380
386
|
|
|
@@ -447,8 +453,8 @@
|
|
|
447
453
|
|
|
448
454
|
<tr>
|
|
449
455
|
<td class="col-md-4">
|
|
450
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
451
|
-
class="link-to-prism">src/lib/directives/options-from-method.directive.ts:
|
|
456
|
+
<div class="io-line">Defined in <a href="" data-line="119"
|
|
457
|
+
class="link-to-prism">src/lib/directives/options-from-method.directive.ts:119</a></div>
|
|
452
458
|
</td>
|
|
453
459
|
</tr>
|
|
454
460
|
|
|
@@ -484,7 +490,7 @@
|
|
|
484
490
|
</table>
|
|
485
491
|
</div>
|
|
486
492
|
<div class="io-description">
|
|
487
|
-
<b>Returns : </b> <code>Promise<ControlOptions | null></code>
|
|
493
|
+
<b>Returns : </b> <code>Promise<Observable | ControlOptions | null></code>
|
|
488
494
|
|
|
489
495
|
</div>
|
|
490
496
|
<div class="io-description">
|
|
@@ -516,8 +522,8 @@
|
|
|
516
522
|
|
|
517
523
|
<tr>
|
|
518
524
|
<td class="col-md-4">
|
|
519
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
520
|
-
class="link-to-prism">src/lib/directives/options-from-method.directive.ts:
|
|
525
|
+
<div class="io-line">Defined in <a href="" data-line="61"
|
|
526
|
+
class="link-to-prism">src/lib/directives/options-from-method.directive.ts:61</a></div>
|
|
521
527
|
</td>
|
|
522
528
|
</tr>
|
|
523
529
|
|
|
@@ -597,8 +603,8 @@
|
|
|
597
603
|
|
|
598
604
|
<tr>
|
|
599
605
|
<td class="col-md-4">
|
|
600
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
601
|
-
class="link-to-prism">src/lib/directives/options-from-method.directive.ts:
|
|
606
|
+
<div class="io-line">Defined in <a href="" data-line="123"
|
|
607
|
+
class="link-to-prism">src/lib/directives/options-from-method.directive.ts:123</a></div>
|
|
602
608
|
</td>
|
|
603
609
|
</tr>
|
|
604
610
|
|
|
@@ -636,8 +642,8 @@
|
|
|
636
642
|
|
|
637
643
|
<tr>
|
|
638
644
|
<td class="col-md-4">
|
|
639
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
640
|
-
class="link-to-prism">src/lib/directives/options-from-method.directive.ts:
|
|
645
|
+
<div class="io-line">Defined in <a href="" data-line="143"
|
|
646
|
+
class="link-to-prism">src/lib/directives/options-from-method.directive.ts:143</a></div>
|
|
641
647
|
</td>
|
|
642
648
|
</tr>
|
|
643
649
|
|
|
@@ -689,6 +695,34 @@
|
|
|
689
695
|
<h3 id="inputs">
|
|
690
696
|
Properties
|
|
691
697
|
</h3>
|
|
698
|
+
<table class="table table-sm table-bordered">
|
|
699
|
+
<tbody>
|
|
700
|
+
<tr>
|
|
701
|
+
<td class="col-md-4">
|
|
702
|
+
<a name="_loadOptionsSubscription"></a>
|
|
703
|
+
<span class="name">
|
|
704
|
+
<span class="modifier">Protected</span>
|
|
705
|
+
<span class="modifier">Optional</span>
|
|
706
|
+
<span ><b>_loadOptionsSubscription</b></span>
|
|
707
|
+
<a href="#_loadOptionsSubscription"><span class="icon ion-ios-link"></span></a>
|
|
708
|
+
</span>
|
|
709
|
+
</td>
|
|
710
|
+
</tr>
|
|
711
|
+
<tr>
|
|
712
|
+
<td class="col-md-4">
|
|
713
|
+
<i>Type : </i> <code>Subscription</code>
|
|
714
|
+
|
|
715
|
+
</td>
|
|
716
|
+
</tr>
|
|
717
|
+
<tr>
|
|
718
|
+
<td class="col-md-4">
|
|
719
|
+
<div class="io-line">Defined in <a href="" data-line="88" class="link-to-prism">src/lib/directives/options-from-method.directive.ts:88</a></div>
|
|
720
|
+
</td>
|
|
721
|
+
</tr>
|
|
722
|
+
|
|
723
|
+
|
|
724
|
+
</tbody>
|
|
725
|
+
</table>
|
|
692
726
|
<table class="table table-sm table-bordered">
|
|
693
727
|
<tbody>
|
|
694
728
|
<tr>
|
|
@@ -715,7 +749,7 @@
|
|
|
715
749
|
</tr>
|
|
716
750
|
<tr>
|
|
717
751
|
<td class="col-md-4">
|
|
718
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
752
|
+
<div class="io-line">Defined in <a href="" data-line="85" class="link-to-prism">src/lib/directives/options-from-method.directive.ts:85</a></div>
|
|
719
753
|
</td>
|
|
720
754
|
</tr>
|
|
721
755
|
|
|
@@ -748,7 +782,7 @@
|
|
|
748
782
|
</tr>
|
|
749
783
|
<tr>
|
|
750
784
|
<td class="col-md-4">
|
|
751
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
785
|
+
<div class="io-line">Defined in <a href="" data-line="84" class="link-to-prism">src/lib/directives/options-from-method.directive.ts:84</a></div>
|
|
752
786
|
</td>
|
|
753
787
|
</tr>
|
|
754
788
|
|
|
@@ -774,7 +808,7 @@
|
|
|
774
808
|
</tr>
|
|
775
809
|
<tr>
|
|
776
810
|
<td class="col-md-4">
|
|
777
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
811
|
+
<div class="io-line">Defined in <a href="" data-line="68" class="link-to-prism">src/lib/directives/options-from-method.directive.ts:68</a></div>
|
|
778
812
|
</td>
|
|
779
813
|
</tr>
|
|
780
814
|
|
|
@@ -806,7 +840,7 @@
|
|
|
806
840
|
</tr>
|
|
807
841
|
<tr>
|
|
808
842
|
<td class="col-md-4">
|
|
809
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
843
|
+
<div class="io-line">Defined in <a href="" data-line="81" class="link-to-prism">src/lib/directives/options-from-method.directive.ts:81</a></div>
|
|
810
844
|
</td>
|
|
811
845
|
</tr>
|
|
812
846
|
|
|
@@ -838,7 +872,7 @@
|
|
|
838
872
|
</tr>
|
|
839
873
|
<tr>
|
|
840
874
|
<td class="col-md-4">
|
|
841
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
875
|
+
<div class="io-line">Defined in <a href="" data-line="80" class="link-to-prism">src/lib/directives/options-from-method.directive.ts:80</a></div>
|
|
842
876
|
</td>
|
|
843
877
|
</tr>
|
|
844
878
|
|
|
@@ -870,7 +904,7 @@
|
|
|
870
904
|
</tr>
|
|
871
905
|
<tr>
|
|
872
906
|
<td class="col-md-4">
|
|
873
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
907
|
+
<div class="io-line">Defined in <a href="" data-line="76" class="link-to-prism">src/lib/directives/options-from-method.directive.ts:76</a></div>
|
|
874
908
|
</td>
|
|
875
909
|
</tr>
|
|
876
910
|
|
|
@@ -902,7 +936,7 @@
|
|
|
902
936
|
</tr>
|
|
903
937
|
<tr>
|
|
904
938
|
<td class="col-md-4">
|
|
905
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
939
|
+
<div class="io-line">Defined in <a href="" data-line="82" class="link-to-prism">src/lib/directives/options-from-method.directive.ts:82</a></div>
|
|
906
940
|
</td>
|
|
907
941
|
</tr>
|
|
908
942
|
|
|
@@ -935,7 +969,7 @@
|
|
|
935
969
|
</tr>
|
|
936
970
|
<tr>
|
|
937
971
|
<td class="col-md-4">
|
|
938
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
972
|
+
<div class="io-line">Defined in <a href="" data-line="83" class="link-to-prism">src/lib/directives/options-from-method.directive.ts:83</a></div>
|
|
939
973
|
</td>
|
|
940
974
|
</tr>
|
|
941
975
|
|
|
@@ -954,11 +988,11 @@
|
|
|
954
988
|
ChangeDetectorRef,
|
|
955
989
|
Directive,
|
|
956
990
|
inject,
|
|
957
|
-
InjectFlags,
|
|
958
991
|
INJECTOR,
|
|
959
992
|
Injector,
|
|
960
993
|
Input,
|
|
961
994
|
OnChanges,
|
|
995
|
+
OnDestroy,
|
|
962
996
|
signal,
|
|
963
997
|
SimpleChanges,
|
|
964
998
|
TemplateRef,
|
|
@@ -971,12 +1005,20 @@ import {
|
|
|
971
1005
|
import { MatFormField } from '@angular/material/form-field';
|
|
972
1006
|
import { RxapFormControl } from '@rxap/forms';
|
|
973
1007
|
import { Mixin } from '@rxap/mixin';
|
|
974
|
-
import { Method } from '@rxap/pattern';
|
|
975
1008
|
import {
|
|
976
1009
|
ControlOption,
|
|
977
1010
|
ControlOptions,
|
|
978
1011
|
} from '@rxap/utilities';
|
|
979
|
-
import {
|
|
1012
|
+
import {
|
|
1013
|
+
isObservable,
|
|
1014
|
+
Observable,
|
|
1015
|
+
Subscription,
|
|
1016
|
+
tap,
|
|
1017
|
+
} from 'rxjs';
|
|
1018
|
+
import {
|
|
1019
|
+
ExtractOptionsMethodMixin,
|
|
1020
|
+
OptionsMethod,
|
|
1021
|
+
} from '../mixins/extract-options-method.mixin';
|
|
980
1022
|
|
|
981
1023
|
|
|
982
1024
|
export interface OptionsFromMethodTemplateContext {
|
|
@@ -999,7 +1041,7 @@ export interface OptionsFromMethodDirective<Value = any, Parameters 
|
|
|
999
1041
|
standalone: true,
|
|
1000
1042
|
exportAs: 'rxapOptionsFromMethod',
|
|
1001
1043
|
})
|
|
1002
|
-
export class OptionsFromMethodDirective<Value = any, Parameters = any> implements AfterViewInit, OnChanges {
|
|
1044
|
+
export class OptionsFromMethodDirective<Value = any, Parameters = any> implements AfterViewInit, OnChanges, OnDestroy {
|
|
1003
1045
|
|
|
1004
1046
|
static ngTemplateContextGuard(
|
|
1005
1047
|
dir: OptionsFromMethodDirective,
|
|
@@ -1019,7 +1061,7 @@ export class OptionsFromMethodDirective<Value = any, Parameters = a
|
|
|
1019
1061
|
public options: ControlOptions | null = null;
|
|
1020
1062
|
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
1021
1063
|
@Input('rxapOptionsFromMethodCall')
|
|
1022
|
-
public method!:
|
|
1064
|
+
public method!: OptionsMethod<ControlOptions<Value>, Parameters>;
|
|
1023
1065
|
protected ngControl: NgControl | AbstractControlDirective | null = null;
|
|
1024
1066
|
protected matFormField: MatFormField | null = null;
|
|
1025
1067
|
protected settings: OptionsFromMethodDirectiveSettings = {};
|
|
@@ -1028,6 +1070,8 @@ export class OptionsFromMethodDirective<Value = any, Parameters = a
|
|
|
1028
1070
|
protected readonly cdr: ChangeDetectorRef = inject(ChangeDetectorRef);
|
|
1029
1071
|
private readonly template: TemplateRef<OptionsFromMethodTemplateContext> = inject(TemplateRef);
|
|
1030
1072
|
|
|
1073
|
+
protected _loadOptionsSubscription?: Subscription;
|
|
1074
|
+
|
|
1031
1075
|
public async ngAfterViewInit() {
|
|
1032
1076
|
this.matFormField = this.injector.get(MatFormField, null);
|
|
1033
1077
|
this.ngControl = this.matFormField?._control.ngControl ?? this.injector.get(NgControl, null);
|
|
@@ -1040,6 +1084,10 @@ export class OptionsFromMethodDirective<Value = any, Parameters = a
|
|
|
1040
1084
|
}
|
|
1041
1085
|
}
|
|
1042
1086
|
|
|
1087
|
+
ngOnDestroy() {
|
|
1088
|
+
this._loadOptionsSubscription?.unsubscribe();
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1043
1091
|
public async ngOnChanges(changes: SimpleChanges) {
|
|
1044
1092
|
// only try to load the options if the method is defined
|
|
1045
1093
|
// else the initial load will be triggered in the ngAfterViewInit
|
|
@@ -1053,8 +1101,8 @@ export class OptionsFromMethodDirective<Value = any, Parameters = a
|
|
|
1053
1101
|
}
|
|
1054
1102
|
}
|
|
1055
1103
|
|
|
1056
|
-
protected async loadOptions(parameters?: Parameters): Promise<ControlOptions | null> {
|
|
1057
|
-
return this.method.call(parameters);
|
|
1104
|
+
protected async loadOptions(parameters?: Parameters): Promise<Observable<ControlOptions | null> | ControlOptions | null> {
|
|
1105
|
+
return this.method.call(parameters, this.control);
|
|
1058
1106
|
}
|
|
1059
1107
|
|
|
1060
1108
|
protected renderTemplate() {
|
|
@@ -1090,7 +1138,15 @@ export class OptionsFromMethodDirective<Value = any, Parameters = a
|
|
|
1090
1138
|
public async load(parameters: Parameters | undefined = this.parameters) {
|
|
1091
1139
|
this.loading.set(true);
|
|
1092
1140
|
try {
|
|
1093
|
-
|
|
1141
|
+
const result = await this.loadOptions(parameters);
|
|
1142
|
+
if (isObservable(result)) {
|
|
1143
|
+
this._loadOptionsSubscription?.unsubscribe();
|
|
1144
|
+
this._loadOptionsSubscription = result.pipe(
|
|
1145
|
+
tap(options => this.setOptions(options)),
|
|
1146
|
+
).subscribe();
|
|
1147
|
+
} else {
|
|
1148
|
+
this.setOptions(result);
|
|
1149
|
+
}
|
|
1094
1150
|
} finally {
|
|
1095
1151
|
this.loading.set(false);
|
|
1096
1152
|
}
|
|
@@ -182,8 +182,8 @@
|
|
|
182
182
|
|
|
183
183
|
<tr>
|
|
184
184
|
<td class="col-md-4">
|
|
185
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
186
|
-
class="link-to-prism">src/lib/directives/autocomplete-options-from-method.directive.ts:
|
|
185
|
+
<div class="io-line">Defined in <a href="" data-line="114"
|
|
186
|
+
class="link-to-prism">src/lib/directives/autocomplete-options-from-method.directive.ts:114</a></div>
|
|
187
187
|
</td>
|
|
188
188
|
</tr>
|
|
189
189
|
|
|
@@ -289,22 +289,32 @@ export class GetCompanyMethod implements Method<ControlOption, { parameters:
|
|
|
289
289
|
OnDestroy,
|
|
290
290
|
ProviderToken,
|
|
291
291
|
} from '@angular/core';
|
|
292
|
-
import { MatAutocomplete } from '@angular/material/autocomplete';
|
|
293
|
-
import { ControlOption, ControlOptions } from '@rxap/utilities';
|
|
294
|
-
import { distinctUntilChanged, Subscription, tap } from 'rxjs';
|
|
295
|
-
import { isUUID } from '@rxap/validator';
|
|
296
|
-
import { Method, MethodWithParameters } from '@rxap/pattern';
|
|
297
|
-
import { Mixin } from '@rxap/mixin';
|
|
298
292
|
import { NgControl } from '@angular/forms';
|
|
293
|
+
import { MatAutocomplete } from '@angular/material/autocomplete';
|
|
299
294
|
import { MatFormField } from '@angular/material/form-field';
|
|
295
|
+
import { controlValueChanges$ } from '@rxap/forms';
|
|
296
|
+
import { Mixin } from '@rxap/mixin';
|
|
297
|
+
import { OpenApiRemoteMethodParameter } from '@rxap/open-api/remote-method';
|
|
298
|
+
import {
|
|
299
|
+
Method,
|
|
300
|
+
MethodWithParameters,
|
|
301
|
+
} from '@rxap/pattern';
|
|
300
302
|
import { isDefined } from '@rxap/rxjs';
|
|
301
|
-
import {
|
|
302
|
-
|
|
303
|
+
import {
|
|
304
|
+
ControlOption,
|
|
305
|
+
ControlOptions,
|
|
306
|
+
} from '@rxap/utilities';
|
|
307
|
+
import { isUUID } from '@rxap/validator';
|
|
308
|
+
import {
|
|
309
|
+
distinctUntilChanged,
|
|
310
|
+
Observable,
|
|
311
|
+
Subscription,
|
|
312
|
+
tap,
|
|
313
|
+
} from 'rxjs';
|
|
303
314
|
import {
|
|
304
315
|
ExtractIsValueFunctionMixin,
|
|
305
316
|
UseIsValueFunction,
|
|
306
317
|
} from '../mixins/extract-is-value-function.mixin';
|
|
307
|
-
import { ExtractMethodMixin } from '../mixins/extract-method.mixin';
|
|
308
318
|
import { UseMethodConfig } from '../mixins/extract-methods.mixin';
|
|
309
319
|
import { UseOptionsMethod } from '../mixins/extract-options-method.mixin';
|
|
310
320
|
import {
|
|
@@ -315,9 +325,10 @@ import {
|
|
|
315
325
|
ExtractToDisplayFunctionMixin,
|
|
316
326
|
UseToDisplayFunction,
|
|
317
327
|
} from '../mixins/extract-to-display-function.mixin';
|
|
318
|
-
import {
|
|
319
|
-
|
|
320
|
-
|
|
328
|
+
import {
|
|
329
|
+
OptionsFromMethodDirective,
|
|
330
|
+
OptionsFromMethodDirectiveSettings,
|
|
331
|
+
} from './options-from-method.directive';
|
|
321
332
|
|
|
322
333
|
export function UseAutocompleteOptionsMethod(
|
|
323
334
|
method: ProviderToken<MethodWithParameters<ControlOptions, AutocompleteOptionsFromMethodDirectiveParameters>>,
|
|
@@ -436,7 +447,8 @@ export class AutocompleteOptionsFromMethodDirective<Value = any, Paramet
|
|
|
436
447
|
|
|
437
448
|
private _subscription?: Subscription;
|
|
438
449
|
|
|
439
|
-
public ngOnDestroy() {
|
|
450
|
+
public override ngOnDestroy() {
|
|
451
|
+
super.ngOnDestroy();
|
|
440
452
|
this._subscription?.unsubscribe();
|
|
441
453
|
}
|
|
442
454
|
|
|
@@ -469,7 +481,7 @@ export class AutocompleteOptionsFromMethodDirective<Value = any, Paramet
|
|
|
469
481
|
// to trigger the toDisplay function in the mat-autocomplete
|
|
470
482
|
distinctUntilChanged(),
|
|
471
483
|
tap(async value => {
|
|
472
|
-
|
|
484
|
+
await this.load(this.parameters);
|
|
473
485
|
if (this.isValue?.(value)) {
|
|
474
486
|
this.triggerAutocompleteToDisplay();
|
|
475
487
|
}
|
|
@@ -477,7 +489,7 @@ export class AutocompleteOptionsFromMethodDirective<Value = any, Paramet
|
|
|
477
489
|
).subscribe();
|
|
478
490
|
}
|
|
479
491
|
|
|
480
|
-
protected override loadOptions(parameters: Parameters = {} as Parameters): Promise<ControlOptions | null> {
|
|
492
|
+
protected override loadOptions(parameters: Parameters = {} as Parameters): Promise<ControlOptions | null | Observable<ControlOptions | null>> {
|
|
481
493
|
if (!this.control) {
|
|
482
494
|
throw new Error('The control is not yet defined');
|
|
483
495
|
}
|
|
@@ -262,22 +262,32 @@ export class GetCompanyMethod implements Method<ControlOption, { parameters:
|
|
|
262
262
|
OnDestroy,
|
|
263
263
|
ProviderToken,
|
|
264
264
|
} from '@angular/core';
|
|
265
|
-
import { MatAutocomplete } from '@angular/material/autocomplete';
|
|
266
|
-
import { ControlOption, ControlOptions } from '@rxap/utilities';
|
|
267
|
-
import { distinctUntilChanged, Subscription, tap } from 'rxjs';
|
|
268
|
-
import { isUUID } from '@rxap/validator';
|
|
269
|
-
import { Method, MethodWithParameters } from '@rxap/pattern';
|
|
270
|
-
import { Mixin } from '@rxap/mixin';
|
|
271
265
|
import { NgControl } from '@angular/forms';
|
|
266
|
+
import { MatAutocomplete } from '@angular/material/autocomplete';
|
|
272
267
|
import { MatFormField } from '@angular/material/form-field';
|
|
268
|
+
import { controlValueChanges$ } from '@rxap/forms';
|
|
269
|
+
import { Mixin } from '@rxap/mixin';
|
|
270
|
+
import { OpenApiRemoteMethodParameter } from '@rxap/open-api/remote-method';
|
|
271
|
+
import {
|
|
272
|
+
Method,
|
|
273
|
+
MethodWithParameters,
|
|
274
|
+
} from '@rxap/pattern';
|
|
273
275
|
import { isDefined } from '@rxap/rxjs';
|
|
274
|
-
import {
|
|
275
|
-
|
|
276
|
+
import {
|
|
277
|
+
ControlOption,
|
|
278
|
+
ControlOptions,
|
|
279
|
+
} from '@rxap/utilities';
|
|
280
|
+
import { isUUID } from '@rxap/validator';
|
|
281
|
+
import {
|
|
282
|
+
distinctUntilChanged,
|
|
283
|
+
Observable,
|
|
284
|
+
Subscription,
|
|
285
|
+
tap,
|
|
286
|
+
} from 'rxjs';
|
|
276
287
|
import {
|
|
277
288
|
ExtractIsValueFunctionMixin,
|
|
278
289
|
UseIsValueFunction,
|
|
279
290
|
} from '../mixins/extract-is-value-function.mixin';
|
|
280
|
-
import { ExtractMethodMixin } from '../mixins/extract-method.mixin';
|
|
281
291
|
import { UseMethodConfig } from '../mixins/extract-methods.mixin';
|
|
282
292
|
import { UseOptionsMethod } from '../mixins/extract-options-method.mixin';
|
|
283
293
|
import {
|
|
@@ -288,9 +298,10 @@ import {
|
|
|
288
298
|
ExtractToDisplayFunctionMixin,
|
|
289
299
|
UseToDisplayFunction,
|
|
290
300
|
} from '../mixins/extract-to-display-function.mixin';
|
|
291
|
-
import {
|
|
292
|
-
|
|
293
|
-
|
|
301
|
+
import {
|
|
302
|
+
OptionsFromMethodDirective,
|
|
303
|
+
OptionsFromMethodDirectiveSettings,
|
|
304
|
+
} from './options-from-method.directive';
|
|
294
305
|
|
|
295
306
|
export function UseAutocompleteOptionsMethod(
|
|
296
307
|
method: ProviderToken<MethodWithParameters<ControlOptions, AutocompleteOptionsFromMethodDirectiveParameters>>,
|
|
@@ -409,7 +420,8 @@ export class AutocompleteOptionsFromMethodDirective<Value = any, Paramet
|
|
|
409
420
|
|
|
410
421
|
private _subscription?: Subscription;
|
|
411
422
|
|
|
412
|
-
public ngOnDestroy() {
|
|
423
|
+
public override ngOnDestroy() {
|
|
424
|
+
super.ngOnDestroy();
|
|
413
425
|
this._subscription?.unsubscribe();
|
|
414
426
|
}
|
|
415
427
|
|
|
@@ -442,7 +454,7 @@ export class AutocompleteOptionsFromMethodDirective<Value = any, Paramet
|
|
|
442
454
|
// to trigger the toDisplay function in the mat-autocomplete
|
|
443
455
|
distinctUntilChanged(),
|
|
444
456
|
tap(async value => {
|
|
445
|
-
|
|
457
|
+
await this.load(this.parameters);
|
|
446
458
|
if (this.isValue?.(value)) {
|
|
447
459
|
this.triggerAutocompleteToDisplay();
|
|
448
460
|
}
|
|
@@ -450,7 +462,7 @@ export class AutocompleteOptionsFromMethodDirective<Value = any, Paramet
|
|
|
450
462
|
).subscribe();
|
|
451
463
|
}
|
|
452
464
|
|
|
453
|
-
protected override loadOptions(parameters: Parameters = {} as Parameters): Promise<ControlOptions | null> {
|
|
465
|
+
protected override loadOptions(parameters: Parameters = {} as Parameters): Promise<ControlOptions | null | Observable<ControlOptions | null>> {
|
|
454
466
|
if (!this.control) {
|
|
455
467
|
throw new Error('The control is not yet defined');
|
|
456
468
|
}
|
|
@@ -268,22 +268,32 @@ export class GetCompanyMethod implements Method<ControlOption, { parameters:
|
|
|
268
268
|
OnDestroy,
|
|
269
269
|
ProviderToken,
|
|
270
270
|
} from '@angular/core';
|
|
271
|
-
import { MatAutocomplete } from '@angular/material/autocomplete';
|
|
272
|
-
import { ControlOption, ControlOptions } from '@rxap/utilities';
|
|
273
|
-
import { distinctUntilChanged, Subscription, tap } from 'rxjs';
|
|
274
|
-
import { isUUID } from '@rxap/validator';
|
|
275
|
-
import { Method, MethodWithParameters } from '@rxap/pattern';
|
|
276
|
-
import { Mixin } from '@rxap/mixin';
|
|
277
271
|
import { NgControl } from '@angular/forms';
|
|
272
|
+
import { MatAutocomplete } from '@angular/material/autocomplete';
|
|
278
273
|
import { MatFormField } from '@angular/material/form-field';
|
|
274
|
+
import { controlValueChanges$ } from '@rxap/forms';
|
|
275
|
+
import { Mixin } from '@rxap/mixin';
|
|
276
|
+
import { OpenApiRemoteMethodParameter } from '@rxap/open-api/remote-method';
|
|
277
|
+
import {
|
|
278
|
+
Method,
|
|
279
|
+
MethodWithParameters,
|
|
280
|
+
} from '@rxap/pattern';
|
|
279
281
|
import { isDefined } from '@rxap/rxjs';
|
|
280
|
-
import {
|
|
281
|
-
|
|
282
|
+
import {
|
|
283
|
+
ControlOption,
|
|
284
|
+
ControlOptions,
|
|
285
|
+
} from '@rxap/utilities';
|
|
286
|
+
import { isUUID } from '@rxap/validator';
|
|
287
|
+
import {
|
|
288
|
+
distinctUntilChanged,
|
|
289
|
+
Observable,
|
|
290
|
+
Subscription,
|
|
291
|
+
tap,
|
|
292
|
+
} from 'rxjs';
|
|
282
293
|
import {
|
|
283
294
|
ExtractIsValueFunctionMixin,
|
|
284
295
|
UseIsValueFunction,
|
|
285
296
|
} from '../mixins/extract-is-value-function.mixin';
|
|
286
|
-
import { ExtractMethodMixin } from '../mixins/extract-method.mixin';
|
|
287
297
|
import { UseMethodConfig } from '../mixins/extract-methods.mixin';
|
|
288
298
|
import { UseOptionsMethod } from '../mixins/extract-options-method.mixin';
|
|
289
299
|
import {
|
|
@@ -294,9 +304,10 @@ import {
|
|
|
294
304
|
ExtractToDisplayFunctionMixin,
|
|
295
305
|
UseToDisplayFunction,
|
|
296
306
|
} from '../mixins/extract-to-display-function.mixin';
|
|
297
|
-
import {
|
|
298
|
-
|
|
299
|
-
|
|
307
|
+
import {
|
|
308
|
+
OptionsFromMethodDirective,
|
|
309
|
+
OptionsFromMethodDirectiveSettings,
|
|
310
|
+
} from './options-from-method.directive';
|
|
300
311
|
|
|
301
312
|
export function UseAutocompleteOptionsMethod(
|
|
302
313
|
method: ProviderToken<MethodWithParameters<ControlOptions, AutocompleteOptionsFromMethodDirectiveParameters>>,
|
|
@@ -415,7 +426,8 @@ export class AutocompleteOptionsFromMethodDirective<Value = any, Paramet
|
|
|
415
426
|
|
|
416
427
|
private _subscription?: Subscription;
|
|
417
428
|
|
|
418
|
-
public ngOnDestroy() {
|
|
429
|
+
public override ngOnDestroy() {
|
|
430
|
+
super.ngOnDestroy();
|
|
419
431
|
this._subscription?.unsubscribe();
|
|
420
432
|
}
|
|
421
433
|
|
|
@@ -448,7 +460,7 @@ export class AutocompleteOptionsFromMethodDirective<Value = any, Paramet
|
|
|
448
460
|
// to trigger the toDisplay function in the mat-autocomplete
|
|
449
461
|
distinctUntilChanged(),
|
|
450
462
|
tap(async value => {
|
|
451
|
-
|
|
463
|
+
await this.load(this.parameters);
|
|
452
464
|
if (this.isValue?.(value)) {
|
|
453
465
|
this.triggerAutocompleteToDisplay();
|
|
454
466
|
}
|
|
@@ -456,7 +468,7 @@ export class AutocompleteOptionsFromMethodDirective<Value = any, Paramet
|
|
|
456
468
|
).subscribe();
|
|
457
469
|
}
|
|
458
470
|
|
|
459
|
-
protected override loadOptions(parameters: Parameters = {} as Parameters): Promise<ControlOptions | null> {
|
|
471
|
+
protected override loadOptions(parameters: Parameters = {} as Parameters): Promise<ControlOptions | null | Observable<ControlOptions | null>> {
|
|
460
472
|
if (!this.control) {
|
|
461
473
|
throw new Error('The control is not yet defined');
|
|
462
474
|
}
|