@rxap/form-system 21.0.1 → 22.0.0-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/compodoc/changelog.html +9 -0
- package/compodoc/dependencies.html +10 -10
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +2468 -1730
- package/docs/html/assets/hierarchy.js +1 -1
- package/docs/html/classes/AbstractOptionsFromMethodDirective.html +6 -6
- package/docs/html/classes/AutocompleteOptionsFromMethodDirective.html +6 -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 +3 -3
- 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/InputSelectOptionsDirective.html +5 -5
- 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 +6 -6
- package/docs/html/classes/OptionsFromRemoteMethodDirective.html +3 -3
- package/docs/html/classes/RxapFormSystemError.html +5 -5
- package/docs/html/classes/SubmitContextFormAdapter.html +10 -10
- package/docs/html/classes/TestNgControl.html +36 -27
- 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 -1
- 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/AbstractOptionsFromMethodDirective.md +30 -30
- package/docs/markdown/classes/AutocompleteOptionsFromMethodDirective.md +43 -43
- package/docs/markdown/classes/ControlDataSource.md +51 -51
- package/docs/markdown/classes/ControlHideShowDirective.md +8 -8
- 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 +14 -14
- 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 +4 -4
- package/docs/markdown/classes/FormArrayAddItemButtonDirective.md +11 -11
- package/docs/markdown/classes/FormArrayItemButton.md +18 -18
- package/docs/markdown/classes/FormArrayItemRemoveButtonDirective.md +19 -19
- package/docs/markdown/classes/FormArrayItemRestoreButtonDirective.md +18 -18
- package/docs/markdown/classes/FormArrayRemovableDirective.md +9 -9
- package/docs/markdown/classes/FormSystemControlDirective.md +11 -11
- package/docs/markdown/classes/InputSelectOptionsDirective.md +27 -27
- package/docs/markdown/classes/IsEqualToDirective.md +6 -6
- package/docs/markdown/classes/IsSelectableValueDirective.md +16 -16
- package/docs/markdown/classes/NoopResolveMethod.md +3 -3
- package/docs/markdown/classes/OptionsFromMethodDirective.md +30 -30
- package/docs/markdown/classes/OptionsFromRemoteMethodDirective.md +9 -9
- package/docs/markdown/classes/RxapFormSystemError.md +16 -16
- package/docs/markdown/classes/SubmitContextFormAdapter.md +32 -32
- package/docs/markdown/classes/TestNgControl.md +145 -27
- 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 +2 -2
- 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 +2 -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 +2 -2
- 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.AbstractOptionsFromMethodDirective.md +29 -29
- package/docs/wiki/Class.AutocompleteOptionsFromMethodDirective.md +42 -42
- package/docs/wiki/Class.ControlDataSource.md +50 -50
- package/docs/wiki/Class.ControlHideShowDirective.md +7 -7
- 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 +13 -13
- 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 +3 -3
- package/docs/wiki/Class.FormArrayAddItemButtonDirective.md +10 -10
- package/docs/wiki/Class.FormArrayItemButton.md +17 -17
- package/docs/wiki/Class.FormArrayItemRemoveButtonDirective.md +18 -18
- package/docs/wiki/Class.FormArrayItemRestoreButtonDirective.md +17 -17
- package/docs/wiki/Class.FormArrayRemovableDirective.md +8 -8
- package/docs/wiki/Class.FormSystemControlDirective.md +10 -10
- package/docs/wiki/Class.InputSelectOptionsDirective.md +26 -26
- package/docs/wiki/Class.IsEqualToDirective.md +5 -5
- package/docs/wiki/Class.IsSelectableValueDirective.md +15 -15
- package/docs/wiki/Class.NoopResolveMethod.md +2 -2
- package/docs/wiki/Class.OptionsFromMethodDirective.md +29 -29
- package/docs/wiki/Class.OptionsFromRemoteMethodDirective.md +8 -8
- package/docs/wiki/Class.RxapFormSystemError.md +15 -15
- package/docs/wiki/Class.SubmitContextFormAdapter.md +31 -31
- package/docs/wiki/Class.TestNgControl.md +144 -26
- 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 +1 -1
- 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 +1 -1
- 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/globals.md +1 -1
- package/fesm2022/rxap-form-system.mjs +1978 -1562
- package/fesm2022/rxap-form-system.mjs.map +1 -1
- package/package.json +28 -28
- package/types/rxap-form-system.d.ts +667 -610
|
@@ -1,628 +1,685 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import { MatButton } from
|
|
16
|
-
import {
|
|
17
|
-
import { BaseRemoteMethod, ProxyRemoteMethod } from
|
|
18
|
-
import
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
interface UseDataSourceSettings<Source = any, Target = Source> {
|
|
38
|
-
transformer?: (source: Source) => Target;
|
|
39
|
-
}
|
|
40
|
-
interface UseDataSourceValue<Source = any, Target = Source> {
|
|
41
|
-
dataSource: IdOrInstanceOrToken<BaseDataSource>;
|
|
42
|
-
settings?: UseDataSourceSettings<Source, Target>;
|
|
43
|
-
/**
|
|
44
|
-
* The last value of the data source
|
|
45
|
-
*/
|
|
46
|
-
lastValue?: Target;
|
|
47
|
-
}
|
|
48
|
-
declare function UseDataSource<Data>(dataSource: IdOrInstanceOrToken<BaseDataSource<Data>>, name: string, settings?: UseDataSourceSettings): (target: any, propertyKey: string) => void;
|
|
49
|
-
|
|
50
|
-
interface InputSelectOptionsTemplateContext {
|
|
51
|
-
$implicit: ControlOption;
|
|
52
|
-
}
|
|
53
|
-
interface InputSelectOptionsSettings<Source> extends UseOptionsDataSourceSettings<Source> {
|
|
54
|
-
/**
|
|
55
|
-
* true - the selected value is not send to the data source with the viewChange event.
|
|
56
|
-
* Instead an empty object {} is send to trigger a data source refresh.
|
|
57
|
-
*
|
|
58
|
-
* The OpenApiDataSource expects a Paramters Object in the viewChange event. This
|
|
59
|
-
* can couse issue if the select value object as a property that is also a parameter for
|
|
60
|
-
* the open-api operation. For instaed the select object has the property company and
|
|
61
|
-
* the open-api operation has a query parameter company. Then the BuildOptions method
|
|
62
|
-
* in the OpenApiDataSource would create a HttpParams object with the param company and the
|
|
63
|
-
* value from the select object property company. This will result in unpredictable behaviors.
|
|
64
|
-
*/
|
|
65
|
-
ignoreSelectedValue?: boolean;
|
|
66
|
-
/**
|
|
67
|
-
* true - the options list is filtered by the current control value if the
|
|
68
|
-
* control value is of type string. Then the display value of each option is
|
|
69
|
-
* compared to the control value. If the display value of an option includes
|
|
70
|
-
* the control value, then the option is used. This comprehensions it not type
|
|
71
|
-
* sensitive
|
|
72
|
-
*/
|
|
73
|
-
filteredOptions?: boolean;
|
|
74
|
-
/**
|
|
75
|
-
* true - the options list is only loaded once and not refreshed on each value change
|
|
76
|
-
*/
|
|
77
|
-
loadOnce?: boolean;
|
|
78
|
-
}
|
|
79
|
-
interface InputSelectOptionsDirective extends OnDestroy, AfterViewInit, ExtractOptionsDataSourceMixin {
|
|
80
|
-
}
|
|
81
|
-
declare class InputSelectOptionsDirective implements OnDestroy, AfterViewInit {
|
|
82
|
-
protected readonly template: TemplateRef<InputSelectOptionsTemplateContext>;
|
|
83
|
-
protected readonly dataSourceLoader: DataSourceLoader;
|
|
84
|
-
protected readonly viewContainerRef: ViewContainerRef;
|
|
85
|
-
protected readonly injector: Injector;
|
|
86
|
-
protected readonly cdr: ChangeDetectorRef;
|
|
87
|
-
protected ngControl: NgControl | null;
|
|
88
|
-
protected matFormField: MatFormField | null;
|
|
89
|
-
readonly viewer: i0.InputSignal<BaseDataSourceViewer<any>>;
|
|
90
|
-
readonly metadata: i0.InputSignal<BaseDataSourceMetadata | undefined>;
|
|
91
|
-
readonly matAutocomplete: i0.InputSignal<MatAutocomplete | undefined>;
|
|
92
|
-
/**
|
|
93
|
-
* The viewer used to connect to the data source. Defaults to the input value, but is
|
|
94
|
-
* replaced with a viewer bound to the control after the view init.
|
|
95
|
-
*/
|
|
96
|
-
protected readonly currentViewer: i0.WritableSignal<BaseDataSourceViewer<any>>;
|
|
97
|
-
protected readonly subscription: Subscription;
|
|
98
|
-
protected control: RxapFormControl;
|
|
99
|
-
protected dataSource: BaseDataSource<ControlOptions | Record<string, any>>;
|
|
100
|
-
protected options: ControlOptions | Record<string, any> | null;
|
|
101
|
-
protected settings?: InputSelectOptionsSettings<any>;
|
|
102
|
-
/**
|
|
103
|
-
* This flag is used to prevent the setValue is called for each refresh
|
|
104
|
-
* of the options list. This is needed because the setValue method will
|
|
105
|
-
* trigger a new refresh of the options list. This results in an endless
|
|
106
|
-
* call stack. This flag is set to true if the setValue method is called
|
|
107
|
-
* once.
|
|
108
|
-
*/
|
|
109
|
-
private isAutocompleteToDisplayTriggered;
|
|
110
|
-
ngAfterViewInit(): void;
|
|
111
|
-
toDisplay(value: any): string;
|
|
112
|
-
ngOnDestroy(): void;
|
|
113
|
-
private loadOptions;
|
|
114
|
-
protected renderTemplate(options?: ControlOptions | Record<string, any> | null): void;
|
|
115
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InputSelectOptionsDirective, never>;
|
|
116
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<InputSelectOptionsDirective, "[rxapInputSelectOptions]", never, { "viewer": { "alias": "rxapInputSelectOptionsViewer"; "required": false; "isSignal": true; }; "metadata": { "alias": "rxapInputSelectOptionsMetadata"; "required": false; "isSignal": true; }; "matAutocomplete": { "alias": "rxapInputSelectOptionsMatAutocomplete"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
declare class ExtractControlMixin {
|
|
120
|
-
protected ngControl: NgControl | AbstractControlDirective | null;
|
|
121
|
-
protected matFormField?: MatFormField | null;
|
|
122
|
-
protected control?: RxapFormControl;
|
|
123
|
-
protected extractControl(ngControl?: NgControl | AbstractControlDirective | null): RxapFormControl;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
declare class ExtractDataSourcesMixin {
|
|
127
|
-
protected extractDataSources(formDefinition: FormDefinition, controlId: string): Map<string, UseDataSourceValue>;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
declare class ExtractFormDefinitionMixin {
|
|
131
|
-
protected extractFormDefinition(control: AbstractControl$1): FormDefinition;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
type UseOptionsDataSourceSettings<Source> = UseDataSourceSettings<Source, ControlOptions | Record<string, any>>;
|
|
135
|
-
declare const DATA_SOURCE_NAME = "options";
|
|
136
|
-
declare function ComposeOptionsTransformers(...fnc: Array<(value: any) => any>): (value: any) => any;
|
|
137
|
-
declare function UseOptionsDataSource<Source>(dataSource: IdOrInstanceOrToken<BaseDataSource<Source>>, settings?: InputSelectOptionsSettings<Source>): (target: any, propertyKey: string) => any;
|
|
138
|
-
interface ExtractOptionsDataSourceMixin extends ExtractFormDefinitionMixin, ExtractDataSourcesMixin, ExtractControlMixin {
|
|
139
|
-
}
|
|
140
|
-
declare class ExtractOptionsDataSourceMixin {
|
|
141
|
-
protected settings?: UseOptionsDataSourceSettings<any>;
|
|
142
|
-
protected readonly dataSourceLoader: DataSourceLoader;
|
|
143
|
-
protected dataSource?: BaseDataSource<ControlOptions | Record<string, any>>;
|
|
144
|
-
protected readonly injector: Injector;
|
|
145
|
-
protected useDataSourceValue?: UseDataSourceValue<ControlOptions | Record<string, any>>;
|
|
146
|
-
protected extractOptionsDatasource(control?: AbstractControl, metadata?: BaseDataSourceMetadata): BaseDataSource<ControlOptions | Record<string, any>>;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
interface IsSelectableValueDirective extends ExtractOptionsDataSourceMixin {
|
|
150
|
-
}
|
|
151
|
-
declare class IsSelectableValueDirective implements Validator {
|
|
152
|
-
protected readonly dataSourceLoader: DataSourceLoader;
|
|
153
|
-
protected readonly injector: Injector;
|
|
154
|
-
readonly viewer: i0.InputSignal<BaseDataSourceViewer<any>>;
|
|
155
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
156
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IsSelectableValueDirective, never>;
|
|
157
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<IsSelectableValueDirective, "[rxapIsSelectableValue]", never, { "viewer": { "alias": "viewer"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
declare function ResolveByUuidParameter({ value }: {
|
|
161
|
-
value: string;
|
|
162
|
-
}): {
|
|
163
|
-
parameters: {
|
|
164
|
-
uuid: string;
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
import { AbstractControl, AbstractControlDirective, ControlContainer, ControlValueAccessor, NgControl, UntypedFormArray, UntypedFormGroup, ValidationErrors, Validator } from "@angular/forms";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import { AfterViewInit, ChangeDetectorRef, ComponentRef, ElementRef, InjectionToken, Injector, OnDestroy, OnInit, ProviderToken, Renderer2, Signal, TemplateRef, ViewContainerRef } from "@angular/core";
|
|
7
|
+
import { BaseDataSource, BaseDataSourceMetadata, BaseDataSourceViewer, DataSourceLoader } from "@rxap/data-source";
|
|
8
|
+
import { IdOrInstanceOrToken } from "@rxap/definition";
|
|
9
|
+
import { Constructor, ControlOption, ControlOptions, RxapError } from "@rxap/utilities";
|
|
10
|
+
import { AbstractControl as AbstractControl$1, FormDefinition, RxapFormArray, RxapFormControl, RxapFormGroup } from "@rxap/forms";
|
|
11
|
+
import { Observable, Subscription } from "rxjs";
|
|
12
|
+
import { MatFormField } from "@angular/material/form-field";
|
|
13
|
+
import { MatAutocomplete } from "@angular/material/autocomplete";
|
|
14
|
+
import { DataSource, Method, MethodWithParameters } from "@rxap/pattern";
|
|
15
|
+
import { MatButton } from "@angular/material/button";
|
|
16
|
+
import { OpenApiRemoteMethod, OpenApiRemoteMethodParameter } from "@rxap/open-api/remote-method";
|
|
17
|
+
import { BaseRemoteMethod, ProxyRemoteMethod } from "@rxap/remote-method";
|
|
18
|
+
import { ActivatedRoute } from "@angular/router";
|
|
19
|
+
export declare class IsEqualToDirective implements Validator {
|
|
20
|
+
readonly equalTo: import("@angular/core").InputSignal<any>;
|
|
21
|
+
private _onChange?;
|
|
22
|
+
constructor();
|
|
23
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
24
|
+
/**
|
|
25
|
+
* @description
|
|
26
|
+
* Registers a callback function to call when the validator inputs change.
|
|
27
|
+
*
|
|
28
|
+
* @param fn The callback function
|
|
29
|
+
*/
|
|
30
|
+
registerOnValidatorChange(fn: () => void): void;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsEqualToDirective, never>;
|
|
32
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<IsEqualToDirective, "[rxapIsEqualTo]", never, {
|
|
33
|
+
"equalTo": {
|
|
34
|
+
"alias": "rxapIsEqualTo";
|
|
35
|
+
"required": true;
|
|
36
|
+
"isSignal": true;
|
|
165
37
|
};
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
38
|
+
}, {}, never, never, true, never>;
|
|
39
|
+
}
|
|
40
|
+
export interface UseDataSourceSettings<Source = any, Target = Source> {
|
|
41
|
+
transformer?: (source: Source) => Target;
|
|
42
|
+
}
|
|
43
|
+
export interface UseDataSourceValue<Source = any, Target = Source> {
|
|
44
|
+
dataSource: IdOrInstanceOrToken<BaseDataSource>;
|
|
45
|
+
settings?: UseDataSourceSettings<Source, Target>;
|
|
46
|
+
/**
|
|
47
|
+
* The last value of the data source
|
|
48
|
+
*/
|
|
49
|
+
lastValue?: Target;
|
|
50
|
+
}
|
|
51
|
+
export declare function UseDataSource<Data>(dataSource: IdOrInstanceOrToken<BaseDataSource<Data>>, name: string, settings?: UseDataSourceSettings): (target: any, propertyKey: string) => void;
|
|
52
|
+
export interface InputSelectOptionsTemplateContext {
|
|
53
|
+
$implicit: ControlOption;
|
|
54
|
+
}
|
|
55
|
+
export interface InputSelectOptionsSettings<Source> extends UseOptionsDataSourceSettings<Source> {
|
|
56
|
+
/**
|
|
57
|
+
* true - the selected value is not send to the data source with the viewChange event.
|
|
58
|
+
* Instead an empty object {} is send to trigger a data source refresh.
|
|
59
|
+
*
|
|
60
|
+
* The OpenApiDataSource expects a Paramters Object in the viewChange event. This
|
|
61
|
+
* can couse issue if the select value object as a property that is also a parameter for
|
|
62
|
+
* the open-api operation. For instaed the select object has the property company and
|
|
63
|
+
* the open-api operation has a query parameter company. Then the BuildOptions method
|
|
64
|
+
* in the OpenApiDataSource would create a HttpParams object with the param company and the
|
|
65
|
+
* value from the select object property company. This will result in unpredictable behaviors.
|
|
66
|
+
*/
|
|
67
|
+
ignoreSelectedValue?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* true - the options list is filtered by the current control value if the
|
|
70
|
+
* control value is of type string. Then the display value of each option is
|
|
71
|
+
* compared to the control value. If the display value of an option includes
|
|
72
|
+
* the control value, then the option is used. This comprehensions it not type
|
|
73
|
+
* sensitive
|
|
74
|
+
*/
|
|
75
|
+
filteredOptions?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* true - the options list is only loaded once and not refreshed on each value change
|
|
78
|
+
*/
|
|
79
|
+
loadOnce?: boolean;
|
|
80
|
+
}
|
|
81
|
+
export interface InputSelectOptionsDirective extends OnDestroy, AfterViewInit, ExtractOptionsDataSourceMixin {}
|
|
82
|
+
export declare class InputSelectOptionsDirective implements OnDestroy, AfterViewInit {
|
|
83
|
+
protected readonly template: TemplateRef<InputSelectOptionsTemplateContext>;
|
|
84
|
+
protected readonly dataSourceLoader: DataSourceLoader;
|
|
85
|
+
protected readonly viewContainerRef: ViewContainerRef;
|
|
86
|
+
protected readonly injector: Injector;
|
|
87
|
+
protected readonly cdr: ChangeDetectorRef;
|
|
88
|
+
protected ngControl: NgControl | null;
|
|
89
|
+
protected matFormField: MatFormField | null;
|
|
90
|
+
readonly viewer: import("@angular/core").InputSignal<BaseDataSourceViewer<any>>;
|
|
91
|
+
readonly metadata: import("@angular/core").InputSignal<BaseDataSourceMetadata | undefined>;
|
|
92
|
+
readonly matAutocomplete: import("@angular/core").InputSignal<MatAutocomplete | undefined>;
|
|
93
|
+
/**
|
|
94
|
+
* The viewer used to connect to the data source. Defaults to the input value, but is
|
|
95
|
+
* replaced with a viewer bound to the control after the view init.
|
|
96
|
+
*/
|
|
97
|
+
protected readonly currentViewer: import("@angular/core").WritableSignal<BaseDataSourceViewer<any>>;
|
|
98
|
+
protected readonly subscription: Subscription;
|
|
99
|
+
protected control: RxapFormControl;
|
|
100
|
+
protected dataSource: BaseDataSource<ControlOptions | Record<string, any>>;
|
|
101
|
+
protected options: ControlOptions | Record<string, any> | null;
|
|
102
|
+
protected settings?: InputSelectOptionsSettings<any>;
|
|
103
|
+
/**
|
|
104
|
+
* This flag is used to prevent the setValue is called for each refresh
|
|
105
|
+
* of the options list. This is needed because the setValue method will
|
|
106
|
+
* trigger a new refresh of the options list. This results in an endless
|
|
107
|
+
* call stack. This flag is set to true if the setValue method is called
|
|
108
|
+
* once.
|
|
109
|
+
*/
|
|
110
|
+
private isAutocompleteToDisplayTriggered;
|
|
111
|
+
ngAfterViewInit(): void;
|
|
112
|
+
toDisplay(value: any): string;
|
|
113
|
+
ngOnDestroy(): void;
|
|
114
|
+
private loadOptions;
|
|
115
|
+
protected renderTemplate(options?: ControlOptions | Record<string, any> | null): void;
|
|
116
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputSelectOptionsDirective, never>;
|
|
117
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<InputSelectOptionsDirective, "[rxapInputSelectOptions]", never, {
|
|
118
|
+
"viewer": {
|
|
119
|
+
"alias": "rxapInputSelectOptionsViewer";
|
|
120
|
+
"required": false;
|
|
121
|
+
"isSignal": true;
|
|
176
122
|
};
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
fnc: UseFunctionType<Args, ReturnType>;
|
|
182
|
-
config?: Config;
|
|
183
|
-
}
|
|
184
|
-
declare class ExtractFunctionsMixin {
|
|
185
|
-
protected extractFunctions(defaultMap: (Map<string, UseFunctionDefinition> | null) | undefined, formDefinition: FormDefinition, controlId: string): Map<string, UseFunctionDefinition>;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
declare function ApplyUseFunctionAdapters<Args extends any[], Result>(injector: Injector, fnc: UseFunctionType<any[], any>, config?: UseFunctionConfig): UseFunctionType<any[], any>;
|
|
189
|
-
|
|
190
|
-
declare const RXAP_USE_METHOD = "rxap/form-system/method/use";
|
|
191
|
-
type MethodParameterAdapterFunction<Source = unknown, Target = unknown> = (parameter: Source) => Target;
|
|
192
|
-
type MethodResultAdapterFunction<Source = unknown, Target = unknown> = (result: Source) => Target;
|
|
193
|
-
interface UseMethodConfig<ReturnTypeTarget = any, ParameterSource = any, ReturnTypeSource = any, ParameterTarget = any> {
|
|
194
|
-
adapter?: {
|
|
195
|
-
parameter?: MethodParameterAdapterFunction<ParameterSource, ParameterTarget>;
|
|
196
|
-
result?: MethodResultAdapterFunction<ReturnTypeSource, ReturnTypeTarget>;
|
|
123
|
+
"metadata": {
|
|
124
|
+
"alias": "rxapInputSelectOptionsMetadata";
|
|
125
|
+
"required": false;
|
|
126
|
+
"isSignal": true;
|
|
197
127
|
};
|
|
128
|
+
"matAutocomplete": {
|
|
129
|
+
"alias": "rxapInputSelectOptionsMatAutocomplete";
|
|
130
|
+
"required": false;
|
|
131
|
+
"isSignal": true;
|
|
132
|
+
};
|
|
133
|
+
}, {}, never, never, true, never>;
|
|
134
|
+
}
|
|
135
|
+
export declare class ExtractControlMixin {
|
|
136
|
+
protected ngControl: NgControl | AbstractControlDirective | null;
|
|
137
|
+
protected matFormField?: MatFormField | null;
|
|
138
|
+
protected control?: RxapFormControl;
|
|
139
|
+
protected extractControl(ngControl?: NgControl | AbstractControlDirective | null): RxapFormControl;
|
|
140
|
+
}
|
|
141
|
+
export declare class ExtractDataSourcesMixin {
|
|
142
|
+
protected extractDataSources(formDefinition: FormDefinition, controlId: string): Map<string, UseDataSourceValue>;
|
|
143
|
+
}
|
|
144
|
+
export declare class ExtractFormDefinitionMixin {
|
|
145
|
+
protected extractFormDefinition(control: AbstractControl$1): FormDefinition;
|
|
146
|
+
}
|
|
147
|
+
export type UseOptionsDataSourceSettings<Source> = UseDataSourceSettings<Source, ControlOptions | Record<string, any>>;
|
|
148
|
+
export declare const DATA_SOURCE_NAME = "options";
|
|
149
|
+
export declare function ComposeOptionsTransformers(...fnc: Array<(value: any) => any>): (value: any) => any;
|
|
150
|
+
export declare function UseOptionsDataSource<Source>(dataSource: IdOrInstanceOrToken<BaseDataSource<Source>>, settings?: InputSelectOptionsSettings<Source>): (target: any, propertyKey: string) => any;
|
|
151
|
+
export interface ExtractOptionsDataSourceMixin extends ExtractFormDefinitionMixin, ExtractDataSourcesMixin, ExtractControlMixin {}
|
|
152
|
+
export declare class ExtractOptionsDataSourceMixin {
|
|
153
|
+
protected settings?: UseOptionsDataSourceSettings<any>;
|
|
154
|
+
protected readonly dataSourceLoader: DataSourceLoader;
|
|
155
|
+
protected dataSource?: BaseDataSource<ControlOptions | Record<string, any>>;
|
|
156
|
+
protected readonly injector: Injector;
|
|
157
|
+
protected useDataSourceValue?: UseDataSourceValue<ControlOptions | Record<string, any>>;
|
|
158
|
+
protected extractOptionsDatasource(control?: AbstractControl, metadata?: BaseDataSourceMetadata): BaseDataSource<ControlOptions | Record<string, any>>;
|
|
159
|
+
}
|
|
160
|
+
export interface IsSelectableValueDirective extends ExtractOptionsDataSourceMixin {}
|
|
161
|
+
export declare class IsSelectableValueDirective implements Validator {
|
|
162
|
+
protected readonly dataSourceLoader: DataSourceLoader;
|
|
163
|
+
protected readonly injector: Injector;
|
|
164
|
+
readonly viewer: import("@angular/core").InputSignal<BaseDataSourceViewer<any>>;
|
|
165
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
166
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsSelectableValueDirective, never>;
|
|
167
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<IsSelectableValueDirective, "[rxapIsSelectableValue]", never, {
|
|
168
|
+
"viewer": {
|
|
169
|
+
"alias": "viewer";
|
|
170
|
+
"required": false;
|
|
171
|
+
"isSignal": true;
|
|
172
|
+
};
|
|
173
|
+
}, {}, never, never, true, never>;
|
|
198
174
|
}
|
|
199
|
-
declare function
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
declare
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
declare
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
declare
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
declare
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
}
|
|
260
|
-
declare class
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
declare
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
}
|
|
175
|
+
export declare function ResolveByUuidParameter({ value }: {
|
|
176
|
+
value: string;
|
|
177
|
+
}): {
|
|
178
|
+
parameters: {
|
|
179
|
+
uuid: string;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
export declare function ResolveByUuidResultFactory<Entity>(transformer: (entity: Entity) => ControlOption): (entity: Entity) => ControlOption<any, string>;
|
|
183
|
+
export declare const RXAP_USE_FUNCTION = "rxap/form-system/function/use";
|
|
184
|
+
export type FunctionParameterAdapterFunction<Source extends any[] = any[], Target extends any[] = any[]> = (args: Source) => Target;
|
|
185
|
+
export type FunctionResultAdapterFunction<Source = unknown, Target = unknown> = (result: Source) => Target;
|
|
186
|
+
export interface UseFunctionConfig<ReturnTypeTarget = any, ArgsSource extends any[] = any[], ReturnTypeSource = any, ArgsTarget extends any[] = any[]> {
|
|
187
|
+
adapter?: {
|
|
188
|
+
args?: FunctionParameterAdapterFunction<ArgsSource, ArgsTarget>;
|
|
189
|
+
result?: FunctionResultAdapterFunction<ReturnTypeSource, ReturnTypeTarget>;
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
export type UseFunctionType<Args extends any[], Result> = (...args: Args) => Result;
|
|
193
|
+
export declare function UseFunction<Args extends any[], Result>(fnc: UseFunctionType<Args, Result>, name: string, config?: UseFunctionConfig): (target: any, propertyKey: string) => void;
|
|
194
|
+
export interface UseFunctionDefinition<ReturnType = unknown, Args extends any[] = any[], Config extends UseFunctionConfig<ReturnType, Args> = UseFunctionConfig<ReturnType, Args>> {
|
|
195
|
+
fnc: UseFunctionType<Args, ReturnType>;
|
|
196
|
+
config?: Config;
|
|
197
|
+
}
|
|
198
|
+
export declare class ExtractFunctionsMixin {
|
|
199
|
+
protected extractFunctions(defaultMap: (Map<string, UseFunctionDefinition> | null) | undefined, formDefinition: FormDefinition, controlId: string): Map<string, UseFunctionDefinition>;
|
|
200
|
+
}
|
|
201
|
+
export declare function ApplyUseFunctionAdapters<Args extends any[], Result>(injector: Injector, fnc: UseFunctionType<any[], any>, config?: UseFunctionConfig): UseFunctionType<any[], any>;
|
|
202
|
+
export declare const RXAP_USE_METHOD = "rxap/form-system/method/use";
|
|
203
|
+
export type MethodParameterAdapterFunction<Source = unknown, Target = unknown> = (parameter: Source) => Target;
|
|
204
|
+
export type MethodResultAdapterFunction<Source = unknown, Target = unknown> = (result: Source) => Target;
|
|
205
|
+
export interface UseMethodConfig<ReturnTypeTarget = any, ParameterSource = any, ReturnTypeSource = any, ParameterTarget = any> {
|
|
206
|
+
adapter?: {
|
|
207
|
+
parameter?: MethodParameterAdapterFunction<ParameterSource, ParameterTarget>;
|
|
208
|
+
result?: MethodResultAdapterFunction<ReturnTypeSource, ReturnTypeTarget>;
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
export declare function UseMethod(method: ProviderToken<Method>, name: string, config?: UseMethodConfig): (target: any, propertyKey: string) => void;
|
|
212
|
+
export interface UseMethodDefinition<ReturnType = unknown, Parameter = unknown, Config extends UseMethodConfig<ReturnType, Parameter> = UseMethodConfig<ReturnType, Parameter>> {
|
|
213
|
+
method: ProviderToken<Method<ReturnType, Parameter>>;
|
|
214
|
+
config?: Config;
|
|
215
|
+
}
|
|
216
|
+
export declare class ExtractMethodsMixin {
|
|
217
|
+
protected extractMethods(formDefinition: FormDefinition, controlId: string): Map<string, UseMethodDefinition>;
|
|
218
|
+
}
|
|
219
|
+
export declare function ApplyUseMethodAdapters(injector: Injector, method: Method, config?: UseMethodConfig): Method<any, any>;
|
|
220
|
+
export declare class ExtractControlFromParentMixin {
|
|
221
|
+
protected extractControlFromParent(parent: ControlContainer, controlPath: string): AbstractControl$1;
|
|
222
|
+
}
|
|
223
|
+
export interface ExtractFunctionMixin extends ExtractFunctionsMixin {}
|
|
224
|
+
export declare class ExtractFunctionMixin {
|
|
225
|
+
protected injector: Injector;
|
|
226
|
+
extractFunction<Args extends any[], Result>(defaultFunction: (UseFunctionType<Args, Result> | null) | undefined, formDefinition: FormDefinition, controlId: string, name: string): UseFunctionType<Args, Result>;
|
|
227
|
+
}
|
|
228
|
+
export declare const IS_VALUE_FUNCTION_NAME = "is-value";
|
|
229
|
+
export declare function UseIsValueFunction(fnc: UseFunctionType<[any], boolean>): any;
|
|
230
|
+
export declare function UseIsValueFunction(fnc: UseFunctionType<any[], any>, config: UseFunctionConfig<boolean, any[], any, [any]>): any;
|
|
231
|
+
export interface ExtractIsValueFunctionMixin extends ExtractFormDefinitionMixin, ExtractFunctionMixin, ExtractControlMixin {}
|
|
232
|
+
export declare class ExtractIsValueFunctionMixin {
|
|
233
|
+
protected extractIsValueFunction(defaultFunction?: UseFunctionType<[any], boolean> | null, control?: RxapFormControl, formDefinition?: import("@rxap/forms").FormDefinition<any, any, any>): UseFunctionType<[any], boolean>;
|
|
234
|
+
}
|
|
235
|
+
export interface ExtractMethodMixin extends ExtractMethodsMixin {}
|
|
236
|
+
export declare class ExtractMethodMixin {
|
|
237
|
+
protected injector: Injector;
|
|
238
|
+
extractMethod(formDefinition: FormDefinition, controlId: string, name: string): import("dist/packages/pattern/src").Method<any, any>;
|
|
239
|
+
}
|
|
240
|
+
export declare const OPTIONS_METHOD_NAME = "options";
|
|
241
|
+
export type OptionsMethod<CO extends ControlOptions = ControlOptions, Parameters = any> = Method<CO | Observable<CO | null> | null, Parameters>;
|
|
242
|
+
export declare function UseOptionsMethod<CO extends ControlOptions = ControlOptions, Parameters = any>(method: ProviderToken<OptionsMethod<CO, Parameters>>, config?: UseMethodConfig): (target: any, propertyKey: string) => void;
|
|
243
|
+
export interface ExtractOptionsMethodMixin extends ExtractFormDefinitionMixin, ExtractMethodMixin, ExtractControlMixin {}
|
|
244
|
+
export declare class ExtractOptionsMethodMixin {
|
|
245
|
+
protected extractOptionsMethod(control?: RxapFormControl, formDefinition?: import("@rxap/forms").FormDefinition<any, any, any>): Method<any, any>;
|
|
246
|
+
}
|
|
247
|
+
export declare const RESOLVE_METHOD_NAME = "resolve";
|
|
248
|
+
export declare function UseResolveMethod<Value = unknown>(method: ProviderToken<MethodWithParameters<ControlOption, Value>>): any;
|
|
249
|
+
export declare function UseResolveMethod<Value = unknown>(method: ProviderToken<MethodWithParameters>, config: UseMethodConfig<ControlOption, Value>): any;
|
|
250
|
+
export interface ExtractResolveMethodMixin extends ExtractFormDefinitionMixin, ExtractMethodMixin, ExtractControlMixin {}
|
|
251
|
+
export declare class ExtractResolveMethodMixin {
|
|
252
|
+
protected extractResolveMethod(control?: RxapFormControl, formDefinition?: import("@rxap/forms").FormDefinition<any, any, any>): import("@rxap/pattern").Method<any, any>;
|
|
253
|
+
}
|
|
254
|
+
export declare const TO_DISPLAY_FUNCTION_NAME = "to-display";
|
|
255
|
+
export declare function UseToDisplayFunction(fnc: UseFunctionType<[any], string>): any;
|
|
256
|
+
export declare function UseToDisplayFunction(fnc: UseFunctionType<any[], any>, config: UseFunctionConfig<string, any[], any, [any]>): any;
|
|
257
|
+
export interface ExtractToDisplayFunctionMixin extends ExtractFormDefinitionMixin, ExtractFunctionMixin, ExtractControlMixin {}
|
|
258
|
+
export declare class ExtractToDisplayFunctionMixin {
|
|
259
|
+
protected extractToDisplayFunction(defaultFunction?: UseFunctionType<[any], string> | null, control?: RxapFormControl, formDefinition?: import("@rxap/forms").FormDefinition<any, any, any>): UseFunctionType<[any], string>;
|
|
260
|
+
}
|
|
261
|
+
export interface ForFormArrayItemsDirectiveContext {
|
|
262
|
+
$implicit: UntypedFormGroup;
|
|
263
|
+
index: number;
|
|
264
|
+
last: boolean;
|
|
265
|
+
first: boolean;
|
|
266
|
+
even: boolean;
|
|
267
|
+
odd: boolean;
|
|
268
|
+
array: UntypedFormArray;
|
|
269
|
+
}
|
|
270
|
+
export declare class ForFormArrayItemsDirective implements AfterViewInit, OnDestroy {
|
|
271
|
+
private readonly container;
|
|
272
|
+
private readonly template;
|
|
273
|
+
private readonly viewContainerRef;
|
|
274
|
+
private readonly cdr;
|
|
275
|
+
private _formArrayValueSubscription?;
|
|
276
|
+
private formArray;
|
|
277
|
+
ngAfterViewInit(): void;
|
|
278
|
+
ngOnDestroy(): void;
|
|
279
|
+
private render;
|
|
280
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ForFormArrayItemsDirective, never>;
|
|
281
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ForFormArrayItemsDirective, "[rxapForFormArrayItem]", never, {}, {}, never, never, true, never>;
|
|
282
|
+
}
|
|
283
|
+
export declare class FormArrayAddItemButtonDirective implements AfterViewInit, OnDestroy {
|
|
284
|
+
protected readonly parent: ControlContainer;
|
|
285
|
+
protected readonly matButton: MatButton | null;
|
|
286
|
+
readonly type = "button";
|
|
287
|
+
protected formArray: RxapFormArray;
|
|
288
|
+
private _controlDisabledSubscription?;
|
|
289
|
+
get disabled(): boolean;
|
|
290
|
+
protected get isDisabled(): boolean;
|
|
291
|
+
ngAfterViewInit(): void;
|
|
292
|
+
ngOnDestroy(): void;
|
|
293
|
+
protected onClick(): void;
|
|
294
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormArrayAddItemButtonDirective, never>;
|
|
295
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormArrayAddItemButtonDirective, "[rxapFormArrayItemAddButton]", never, {}, {}, never, never, true, never>;
|
|
296
|
+
}
|
|
297
|
+
export declare abstract class FormArrayItemButton implements AfterViewInit, OnDestroy {
|
|
298
|
+
readonly type = "button";
|
|
299
|
+
protected formGroup: RxapFormGroup<{
|
|
300
|
+
deleted: boolean;
|
|
301
|
+
}>;
|
|
302
|
+
protected formArray: RxapFormArray;
|
|
303
|
+
protected deletedControl: RxapFormControl<boolean>;
|
|
304
|
+
private _controlDisabledSubscription?;
|
|
305
|
+
private _deletedControlValueSubscription?;
|
|
306
|
+
protected readonly parent: ControlContainer;
|
|
307
|
+
protected readonly matButton: MatButton | null;
|
|
308
|
+
protected readonly renderer: Renderer2;
|
|
309
|
+
protected readonly elementRef: ElementRef;
|
|
310
|
+
get disabled(): boolean;
|
|
311
|
+
get isDeleted(): boolean;
|
|
312
|
+
get index(): number;
|
|
313
|
+
protected get isDisabled(): boolean;
|
|
314
|
+
ngAfterViewInit(): void;
|
|
315
|
+
ngOnDestroy(): void;
|
|
316
|
+
protected abstract onClick(): void;
|
|
317
|
+
protected abstract updateDisplayStyle(): void;
|
|
318
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormArrayItemButton, never>;
|
|
319
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormArrayItemButton, never, never, {}, {}, never, never, true, never>;
|
|
320
|
+
}
|
|
321
|
+
export declare class FormArrayItemRemoveButtonDirective extends FormArrayItemButton implements AfterViewInit, OnDestroy {
|
|
322
|
+
/**
|
|
323
|
+
* A function that returns if the control should be temporarily deleted.
|
|
324
|
+
* true - in the given form group the deleted control is set to true
|
|
325
|
+
* false - the form group is removed from the (parent) form array
|
|
326
|
+
*/
|
|
327
|
+
readonly shouldTemporarilyDeleted: import("@angular/core").InputSignal<(formGroup: RxapFormGroup) => boolean>;
|
|
328
|
+
protected onClick(): void;
|
|
329
|
+
protected updateDisplayStyle(): void;
|
|
330
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormArrayItemRemoveButtonDirective, never>;
|
|
331
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormArrayItemRemoveButtonDirective, "button[rxapFormArrayItemRemoveButton]", never, {
|
|
332
|
+
"shouldTemporarilyDeleted": {
|
|
333
|
+
"alias": "shouldTemporarilyDeleted";
|
|
334
|
+
"required": false;
|
|
335
|
+
"isSignal": true;
|
|
336
|
+
};
|
|
337
|
+
}, {}, never, never, true, never>;
|
|
338
|
+
}
|
|
339
|
+
export declare class FormArrayItemRestoreButtonDirective extends FormArrayItemButton implements AfterViewInit, OnDestroy {
|
|
340
|
+
onClick(): void;
|
|
341
|
+
updateDisplayStyle(): void;
|
|
342
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormArrayItemRestoreButtonDirective, never>;
|
|
343
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormArrayItemRestoreButtonDirective, "button[rxapFormArrayItemRestoreButton]", never, {}, {}, never, never, true, never>;
|
|
344
|
+
}
|
|
345
|
+
export declare class FormArrayRemovableDirective implements AfterViewInit, OnDestroy {
|
|
346
|
+
protected readonly parent: ControlContainer;
|
|
347
|
+
protected formGroup: RxapFormGroup<{
|
|
348
|
+
deleted: boolean;
|
|
349
|
+
}>;
|
|
350
|
+
protected deletedControl: RxapFormControl<boolean>;
|
|
351
|
+
private _deletedControlValueSubscription?;
|
|
352
|
+
get isDeleted(): boolean;
|
|
353
|
+
protected get isDisabled(): boolean;
|
|
354
|
+
ngAfterViewInit(): void;
|
|
355
|
+
ngOnDestroy(): void;
|
|
356
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormArrayRemovableDirective, never>;
|
|
357
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormArrayRemovableDirective, "[rxapFormArrayRemovable]", never, {}, {}, never, never, true, never>;
|
|
358
|
+
}
|
|
359
|
+
export interface OptionsFromMethodTemplateContext {
|
|
360
|
+
$implicit: ControlOption;
|
|
361
|
+
}
|
|
362
|
+
export interface OptionsFromMethodDirectiveSettings {}
|
|
363
|
+
export interface AbstractOptionsFromMethodDirective<Value = any, Parameters = any> extends AfterViewInit, ExtractOptionsMethodMixin {}
|
|
369
364
|
/**
|
|
370
365
|
* Shared implementation of the options from method directives. The concrete directives
|
|
371
366
|
* only declare the (aliased) signal inputs.
|
|
372
367
|
*/
|
|
373
|
-
declare abstract class AbstractOptionsFromMethodDirective<Value = any, Parameters = any> implements AfterViewInit, OnDestroy {
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
}
|
|
404
|
-
declare class OptionsFromMethodDirective<Value = any, Parameters = any> extends AbstractOptionsFromMethodDirective<Value, Parameters> {
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
368
|
+
export declare abstract class AbstractOptionsFromMethodDirective<Value = any, Parameters = any> implements AfterViewInit, OnDestroy {
|
|
369
|
+
static ngTemplateContextGuard(dir: AbstractOptionsFromMethodDirective, ctx: any): ctx is OptionsFromMethodTemplateContext;
|
|
370
|
+
readonly loading: import("@angular/core").WritableSignal<boolean>;
|
|
371
|
+
abstract readonly parameters: Signal<Parameters | undefined>;
|
|
372
|
+
abstract readonly resetOnChange: Signal<Value | undefined>;
|
|
373
|
+
abstract readonly method: Signal<OptionsMethod<ControlOptions<Value>, Parameters> | undefined>;
|
|
374
|
+
/**
|
|
375
|
+
* The method used to load the options. Defaults to the method defined with the input. If the
|
|
376
|
+
* input is not set the method is extracted from the form definition.
|
|
377
|
+
*/
|
|
378
|
+
protected readonly optionsMethod: import("@angular/core").WritableSignal<OptionsMethod<ControlOptions<Value>, Parameters> | undefined>;
|
|
379
|
+
options: ControlOptions | null;
|
|
380
|
+
protected ngControl: NgControl | AbstractControlDirective | null;
|
|
381
|
+
protected matFormField: MatFormField | null;
|
|
382
|
+
protected settings: OptionsFromMethodDirectiveSettings;
|
|
383
|
+
protected readonly viewContainerRef: ViewContainerRef;
|
|
384
|
+
protected injector: Injector;
|
|
385
|
+
protected readonly cdr: ChangeDetectorRef;
|
|
386
|
+
private readonly template;
|
|
387
|
+
protected readonly initialized: import("@angular/core").WritableSignal<boolean>;
|
|
388
|
+
protected _loadOptionsSubscription?: Subscription;
|
|
389
|
+
constructor();
|
|
390
|
+
ngAfterViewInit(): void;
|
|
391
|
+
ngOnDestroy(): void;
|
|
392
|
+
protected loadOptions(parameters?: Parameters): Promise<Observable<ControlOptions | null> | ControlOptions | null>;
|
|
393
|
+
protected renderTemplate(): void;
|
|
394
|
+
protected setOptions(options: ControlOptions | null): void;
|
|
395
|
+
load(parameters?: Parameters | undefined): Promise<void>;
|
|
396
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractOptionsFromMethodDirective<any, any>, never>;
|
|
397
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractOptionsFromMethodDirective<any, any>, never, never, {}, {}, never, never, true, never>;
|
|
398
|
+
}
|
|
399
|
+
export declare class OptionsFromMethodDirective<Value = any, Parameters = any> extends AbstractOptionsFromMethodDirective<Value, Parameters> {
|
|
400
|
+
readonly parameters: import("@angular/core").InputSignal<Parameters | undefined>;
|
|
401
|
+
readonly resetOnChange: import("@angular/core").InputSignal<Value | undefined>;
|
|
402
|
+
readonly method: import("@angular/core").InputSignal<OptionsMethod<ControlOptions<Value>, Parameters> | undefined>;
|
|
403
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OptionsFromMethodDirective<any, any>, never>;
|
|
404
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<OptionsFromMethodDirective<any, any>, "[rxapOptionsFromMethod]", ["rxapOptionsFromMethod"], {
|
|
405
|
+
"parameters": {
|
|
406
|
+
"alias": "rxapOptionsFromMethodParameters";
|
|
407
|
+
"required": false;
|
|
408
|
+
"isSignal": true;
|
|
409
|
+
};
|
|
410
|
+
"resetOnChange": {
|
|
411
|
+
"alias": "rxapOptionsFromMethodResetOnChange";
|
|
412
|
+
"required": false;
|
|
413
|
+
"isSignal": true;
|
|
414
|
+
};
|
|
415
|
+
"method": {
|
|
416
|
+
"alias": "rxapOptionsFromMethodCall";
|
|
417
|
+
"required": false;
|
|
418
|
+
"isSignal": true;
|
|
419
|
+
};
|
|
420
|
+
}, {}, never, never, true, never>;
|
|
421
|
+
}
|
|
422
|
+
export declare function UseAutocompleteOptionsMethod(method: ProviderToken<MethodWithParameters<ControlOptions, AutocompleteOptionsFromMethodDirectiveParameters>>): any;
|
|
423
|
+
export declare function UseAutocompleteOptionsMethod(method: ProviderToken<MethodWithParameters<ControlOptions, OpenApiRemoteMethodParameter<AutocompleteOptionsFromMethodDirectiveParameters>>>): any;
|
|
424
|
+
export declare function UseAutocompleteOptionsMethod(method: ProviderToken<MethodWithParameters>, config: UseMethodConfig<ControlOptions, AutocompleteOptionsFromMethodDirectiveParameters>): any;
|
|
425
|
+
export declare function UseAutocompleteResolveMethod<Value = unknown>(method: ProviderToken<MethodWithParameters<ControlOption<Value>, OpenApiRemoteMethodParameter<{
|
|
426
|
+
value: string;
|
|
417
427
|
}>>>, config?: UseMethodConfig): any;
|
|
418
|
-
declare function UseAutocompleteIsValueFunction(isValue: (value: any) => boolean): any;
|
|
419
|
-
declare function UseAutocompleteToDisplayFunction(toDisplay: (value: any) => string): any;
|
|
420
|
-
interface AutocompleteOptionsFromRemoteMethodTemplateContext {
|
|
421
|
-
|
|
428
|
+
export declare function UseAutocompleteIsValueFunction(isValue: (value: any) => boolean): any;
|
|
429
|
+
export declare function UseAutocompleteToDisplayFunction(toDisplay: (value: any) => string): any;
|
|
430
|
+
export interface AutocompleteOptionsFromRemoteMethodTemplateContext {
|
|
431
|
+
$implicit: ControlOption;
|
|
422
432
|
}
|
|
423
|
-
interface AutocompleteOptionsFromMethodDirectiveSettings extends OptionsFromMethodDirectiveSettings {
|
|
424
|
-
|
|
433
|
+
export interface AutocompleteOptionsFromMethodDirectiveSettings extends OptionsFromMethodDirectiveSettings {
|
|
434
|
+
filteredOptions?: boolean;
|
|
425
435
|
}
|
|
426
|
-
interface AutocompleteOptionsFromMethodDirectiveParameters<Value = any> {
|
|
427
|
-
|
|
436
|
+
export interface AutocompleteOptionsFromMethodDirectiveParameters<Value = any> {
|
|
437
|
+
search?: Value | null;
|
|
428
438
|
}
|
|
429
|
-
|
|
430
|
-
|
|
439
|
+
export interface AutocompleteOptionsFromMethodDirective<Value = any, Parameters extends AutocompleteOptionsFromMethodDirectiveParameters<Value> = AutocompleteOptionsFromMethodDirectiveParameters<Value>> extends ExtractResolveMethodMixin, ExtractIsValueFunctionMixin, ExtractToDisplayFunctionMixin, AfterViewInit, OnDestroy {}
|
|
440
|
+
export declare class NoopResolveMethod<Value> implements Method<ControlOption, {
|
|
441
|
+
value: Value;
|
|
431
442
|
}> {
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
}
|
|
526
|
-
declare class
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
declare
|
|
559
|
-
|
|
443
|
+
call({ value }: {
|
|
444
|
+
value: Value;
|
|
445
|
+
}): Promise<ControlOption>;
|
|
446
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NoopResolveMethod<any>, never>;
|
|
447
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
448
|
+
}
|
|
449
|
+
export declare class AutocompleteOptionsFromMethodDirective<Value = any, Parameters extends AutocompleteOptionsFromMethodDirectiveParameters<Value> = AutocompleteOptionsFromMethodDirectiveParameters<Value>> extends AbstractOptionsFromMethodDirective<Value, Parameters> implements AfterViewInit, OnDestroy {
|
|
450
|
+
static ngTemplateContextGuard(dir: AbstractOptionsFromMethodDirective, ctx: any): ctx is AutocompleteOptionsFromRemoteMethodTemplateContext;
|
|
451
|
+
readonly parameters: import("@angular/core").InputSignal<Parameters | undefined>;
|
|
452
|
+
readonly resetOnChange: import("@angular/core").InputSignal<Value | undefined>;
|
|
453
|
+
readonly matAutocomplete: import("@angular/core").InputSignal<MatAutocomplete | undefined>;
|
|
454
|
+
readonly method: import("@angular/core").InputSignal<OptionsMethod<ControlOptions<Value>, Parameters> | undefined>;
|
|
455
|
+
readonly resolveMethod: import("@angular/core").InputSignal<MethodWithParameters<ControlOption<any, string>, {
|
|
456
|
+
value: Value;
|
|
457
|
+
} & Parameters> | undefined>;
|
|
458
|
+
readonly isValue: import("@angular/core").InputSignal<((value: any) => boolean) | undefined>;
|
|
459
|
+
readonly toDisplay: import("@angular/core").InputSignal<((value: any) => string) | undefined>;
|
|
460
|
+
protected readonly resolvedResolveMethod: import("@angular/core").WritableSignal<MethodWithParameters<ControlOption<any, string>, {
|
|
461
|
+
value: Value;
|
|
462
|
+
} & Parameters> | undefined>;
|
|
463
|
+
protected readonly resolvedIsValue: import("@angular/core").WritableSignal<((value: any) => boolean) | undefined>;
|
|
464
|
+
protected readonly resolvedToDisplay: import("@angular/core").WritableSignal<((value: any) => string) | undefined>;
|
|
465
|
+
protected ngControl: NgControl | null;
|
|
466
|
+
protected matFormField: MatFormField | null;
|
|
467
|
+
protected injector: Injector;
|
|
468
|
+
protected settings: AutocompleteOptionsFromMethodDirectiveSettings;
|
|
469
|
+
/**
|
|
470
|
+
* This flag is used to prevent the setValue is called for each refresh
|
|
471
|
+
* of the options list. This is needed because the setValue method will
|
|
472
|
+
* trigger a new refresh of the options list. This results in an endless
|
|
473
|
+
* call stack. This flag is set to true if the setValue method is called
|
|
474
|
+
* once.
|
|
475
|
+
*/
|
|
476
|
+
private isAutocompleteToDisplayTriggered;
|
|
477
|
+
private _subscription?;
|
|
478
|
+
ngOnDestroy(): void;
|
|
479
|
+
ngAfterViewInit(): void;
|
|
480
|
+
protected loadOptions(parameters?: Parameters): Promise<ControlOptions | null | Observable<ControlOptions | null>>;
|
|
481
|
+
protected renderTemplate(): void;
|
|
482
|
+
protected resolveValue(value: Value, parameters?: Parameters): Promise<ControlOptions | null>;
|
|
483
|
+
private triggerAutocompleteToDisplay;
|
|
484
|
+
private findOptionByValue;
|
|
485
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteOptionsFromMethodDirective<any, any>, never>;
|
|
486
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AutocompleteOptionsFromMethodDirective<any, any>, "[rxapAutocompleteOptionsFromMethod]", never, {
|
|
487
|
+
"parameters": {
|
|
488
|
+
"alias": "rxapAutocompleteOptionsFromMethodParameters";
|
|
489
|
+
"required": false;
|
|
490
|
+
"isSignal": true;
|
|
491
|
+
};
|
|
492
|
+
"resetOnChange": {
|
|
493
|
+
"alias": "rxapAutocompleteOptionsFromMethodResetOnChange";
|
|
494
|
+
"required": false;
|
|
495
|
+
"isSignal": true;
|
|
496
|
+
};
|
|
497
|
+
"matAutocomplete": {
|
|
498
|
+
"alias": "rxapAutocompleteOptionsFromMethodMatAutocomplete";
|
|
499
|
+
"required": false;
|
|
500
|
+
"isSignal": true;
|
|
501
|
+
};
|
|
502
|
+
"method": {
|
|
503
|
+
"alias": "rxapAutocompleteOptionsFromMethodCall";
|
|
504
|
+
"required": false;
|
|
505
|
+
"isSignal": true;
|
|
506
|
+
};
|
|
507
|
+
"resolveMethod": {
|
|
508
|
+
"alias": "rxapAutocompleteOptionsFromMethodResolve";
|
|
509
|
+
"required": false;
|
|
510
|
+
"isSignal": true;
|
|
511
|
+
};
|
|
512
|
+
"isValue": {
|
|
513
|
+
"alias": "rxapAutocompleteOptionsFromMethodIsValue";
|
|
514
|
+
"required": false;
|
|
515
|
+
"isSignal": true;
|
|
516
|
+
};
|
|
517
|
+
"toDisplay": {
|
|
518
|
+
"alias": "rxapAutocompleteOptionsFromMethodToDisplay";
|
|
519
|
+
"required": false;
|
|
520
|
+
"isSignal": true;
|
|
521
|
+
};
|
|
522
|
+
}, {}, never, never, true, never>;
|
|
523
|
+
}
|
|
524
|
+
export declare const RXAP_FORM_SYSTEM_SHOW_METADATA = "rxap/form-system/show-function";
|
|
525
|
+
export declare const RXAP_FORM_SYSTEM_HIDE_METADATA = "rxap/form-system/hide-function";
|
|
526
|
+
export declare const RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS = "rxap/form-system/hide-show-options";
|
|
527
|
+
export type ControlHideShowFunction<T = any> = (this: T, control: AbstractControl$1) => boolean | null;
|
|
528
|
+
export interface ControlHideShowOptions {
|
|
529
|
+
/**
|
|
530
|
+
* Weather the hide/showFunction should be called on root group changes
|
|
531
|
+
*/
|
|
532
|
+
rootChange?: boolean;
|
|
533
|
+
}
|
|
534
|
+
export declare function UseHideFunction(hideFunction: ControlHideShowFunction, options?: ControlHideShowOptions): (target: any, propertyKey: string) => void;
|
|
535
|
+
export declare function UseShowFunction(showFunction: ControlHideShowFunction, options?: ControlHideShowOptions): (target: any, propertyKey: string) => void;
|
|
536
|
+
export interface ControlHideShowDirective extends ExtractControlFromParentMixin, ExtractFormDefinitionMixin {}
|
|
537
|
+
export declare class ControlHideShowDirective implements OnInit, OnDestroy {
|
|
538
|
+
private readonly renderer;
|
|
539
|
+
private readonly elementRef;
|
|
540
|
+
private readonly parent;
|
|
541
|
+
private readonly ngControl;
|
|
542
|
+
readonly controlId: import("@angular/core").InputSignal<string | undefined>;
|
|
543
|
+
control: RxapFormControl;
|
|
544
|
+
private subscription;
|
|
545
|
+
ngOnInit(): void;
|
|
546
|
+
ngOnDestroy(): void;
|
|
547
|
+
private extractOptions;
|
|
548
|
+
private extractHideFunction;
|
|
549
|
+
private extractShowFunction;
|
|
550
|
+
private hide;
|
|
551
|
+
private show;
|
|
552
|
+
private reset;
|
|
553
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ControlHideShowDirective, never>;
|
|
554
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ControlHideShowDirective, "[rxapControlHideShow]", never, {
|
|
555
|
+
"controlId": {
|
|
556
|
+
"alias": "rxapControlHideShow";
|
|
557
|
+
"required": false;
|
|
558
|
+
"isSignal": true;
|
|
559
|
+
};
|
|
560
|
+
}, {}, never, never, true, never>;
|
|
561
|
+
}
|
|
562
|
+
export interface OptionsFromRemoteMethodTemplateContext {
|
|
563
|
+
$implicit: ControlOption;
|
|
564
|
+
}
|
|
565
|
+
export declare const REMOTE_METHOD_NAME = "options";
|
|
566
|
+
export declare const RXAP_USE_REMOTE_METHOD = "rxap/form-system/remote-method/use";
|
|
567
|
+
export declare function UseRemoteMethod(remoteMethod: Constructor<BaseRemoteMethod>, name: string): (target: any, propertyKey: string) => void;
|
|
568
|
+
export declare function UseOptionsRemoteMethod(dataSource: Constructor<BaseRemoteMethod<ControlOptions>>): (target: any, propertyKey: string) => void;
|
|
569
|
+
export declare class ExtractRemoteMethodsMixin {
|
|
570
|
+
protected extractRemoteMethods(formDefinition: FormDefinition, controlId: string): Map<string, Constructor<IdOrInstanceOrToken<BaseRemoteMethod>>>;
|
|
571
|
+
}
|
|
572
|
+
export interface OptionsFromRemoteMethodDirective<Value, Parameters> extends OnInit, ExtractFormDefinitionMixin, ExtractRemoteMethodsMixin {}
|
|
573
|
+
export declare class OptionsFromRemoteMethodDirective<Value, Parameters> {
|
|
574
|
+
private readonly ngControl;
|
|
575
|
+
private readonly template;
|
|
576
|
+
private readonly remoteMethodLoader;
|
|
577
|
+
private readonly viewContainerRef;
|
|
578
|
+
private readonly injector;
|
|
579
|
+
private readonly cdr;
|
|
580
|
+
readonly parameters: import("@angular/core").InputSignal<Parameters | undefined>;
|
|
581
|
+
readonly resetOnChange: import("@angular/core").InputSignal<Value | undefined>;
|
|
582
|
+
readonly withoutParameters: import("@angular/core").InputSignal<boolean>;
|
|
583
|
+
private remoteMethodToken;
|
|
584
|
+
constructor();
|
|
585
|
+
private extractRemoteMethodToken;
|
|
586
|
+
private renderTemplate;
|
|
587
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OptionsFromRemoteMethodDirective<any, any>, never>;
|
|
588
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<OptionsFromRemoteMethodDirective<any, any>, "[rxapOptionsFromRemoteMethod]", never, {
|
|
589
|
+
"parameters": {
|
|
590
|
+
"alias": "rxapOptionsFromRemoteMethodParameters";
|
|
591
|
+
"required": false;
|
|
592
|
+
"isSignal": true;
|
|
593
|
+
};
|
|
594
|
+
"resetOnChange": {
|
|
595
|
+
"alias": "rxapOptionsFromRemoteMethodResetOnChange";
|
|
596
|
+
"required": false;
|
|
597
|
+
"isSignal": true;
|
|
598
|
+
};
|
|
599
|
+
"withoutParameters": {
|
|
600
|
+
"alias": "rxapOptionsFromRemoteMethodWithoutParameters";
|
|
601
|
+
"required": false;
|
|
602
|
+
"isSignal": true;
|
|
603
|
+
};
|
|
604
|
+
}, {}, never, never, true, never>;
|
|
605
|
+
}
|
|
606
|
+
export declare class TestNgControl extends NgControl {
|
|
607
|
+
private readonly _control;
|
|
608
|
+
constructor(_control: AbstractControl);
|
|
609
|
+
get control(): AbstractControl<any, any> | null;
|
|
610
|
+
viewToModelUpdate(newValue: any): void;
|
|
611
|
+
}
|
|
612
|
+
export declare enum FormSystemMetadataKeys {
|
|
613
|
+
COMPONENTS = "rxap/form-system/components",
|
|
614
|
+
DATA_SOURCES = "rxap/form-system/data-sources",
|
|
615
|
+
COMPONENTS_PROPERTIES = "rxap/form-system/components-properties",
|
|
616
|
+
FORM_COMPONENT = "rxap/window-form-system/form-component"
|
|
617
|
+
}
|
|
618
|
+
export declare function UseComponent<Component extends ControlValueAccessor>(component: Constructor<Component>, setProperties?: Partial<Record<keyof Component, any>>): (target: any, propertyKey: string) => void;
|
|
560
619
|
/**
|
|
561
620
|
* Links a component with a form definition
|
|
562
621
|
*
|
|
563
622
|
* @param component
|
|
564
623
|
*/
|
|
565
|
-
declare function UseFormComponent(component: Constructor): (target: any) => void;
|
|
566
|
-
|
|
567
|
-
declare
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
interface ControlWithDataSource<Source = any, Target = any> {
|
|
578
|
-
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
declare
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
declare
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
export { AbstractOptionsFromMethodDirective, ApplyUseFunctionAdapters, ApplyUseMethodAdapters, AutocompleteOptionsFromMethodDirective, ComposeOptionsTransformers, ControlDataSource, ControlHideShowDirective, DATA_SOURCE_NAME, ExtractControlFromParentMixin, ExtractControlMixin, ExtractDataSourcesMixin, ExtractFormDefinitionMixin, ExtractFunctionMixin, ExtractFunctionsMixin, ExtractIsValueFunctionMixin, ExtractMethodMixin, ExtractMethodsMixin, ExtractOptionsDataSourceMixin, ExtractOptionsMethodMixin, ExtractRemoteMethodsMixin, ExtractResolveMethodMixin, ExtractToDisplayFunctionMixin, ForFormArrayItemsDirective, FormArrayAddItemButtonDirective, FormArrayItemButton, FormArrayItemRemoveButtonDirective, FormArrayItemRestoreButtonDirective, FormArrayRemovableDirective, FormContextFromActivatedRouteFactory, FormSystemControlDirective, FormSystemMetadataKeys, IS_VALUE_FUNCTION_NAME, InputSelectOptionsDirective, IsEqualToDirective, IsSelectableValueDirective, NoopResolveMethod, OPTIONS_METHOD_NAME, OptionsFromMethodDirective, OptionsFromRemoteMethodDirective, REMOTE_METHOD_NAME, RESOLVE_METHOD_NAME, RXAP_FORM_CONTROL_SOURCE, RXAP_FORM_SYSTEM_HIDE_METADATA, RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS, RXAP_FORM_SYSTEM_SHOW_METADATA, RXAP_USE_FUNCTION, RXAP_USE_METHOD, RXAP_USE_REMOTE_METHOD, ResolveByUuidParameter, ResolveByUuidResultFactory, RxapFormSystemError, SUBMIT_CONTEXT_FORM_ADAPTER_METHOD, SubmitContextFormAdapter, SubmitContextFormAdapterFactory, TO_DISPLAY_FUNCTION_NAME, TestNgControl, UseAutocompleteIsValueFunction, UseAutocompleteOptionsMethod, UseAutocompleteResolveMethod, UseAutocompleteToDisplayFunction, UseComponent, UseDataSource, UseFormComponent, UseFunction, UseHideFunction, UseIsValueFunction, UseMethod, UseOptionsDataSource, UseOptionsMethod, UseOptionsRemoteMethod, UseRemoteMethod, UseResolveMethod, UseShowFunction, UseToDisplayFunction, controlDataSource };
|
|
628
|
-
export type { AutocompleteOptionsFromMethodDirectiveParameters, AutocompleteOptionsFromMethodDirectiveSettings, AutocompleteOptionsFromRemoteMethodTemplateContext, ControlHideShowFunction, ControlHideShowOptions, ControlWithDataSource, ForFormArrayItemsDirectiveContext, FunctionParameterAdapterFunction, FunctionResultAdapterFunction, InputSelectOptionsSettings, InputSelectOptionsTemplateContext, MethodParameterAdapterFunction, MethodResultAdapterFunction, OptionsFromMethodDirectiveSettings, OptionsFromMethodTemplateContext, OptionsFromRemoteMethodTemplateContext, OptionsMethod, UseDataSourceSettings, UseDataSourceValue, UseFunctionConfig, UseFunctionDefinition, UseFunctionType, UseMethodConfig, UseMethodDefinition, UseOptionsDataSourceSettings };
|
|
624
|
+
export declare function UseFormComponent(component: Constructor): (target: any) => void;
|
|
625
|
+
export declare const RXAP_FORM_CONTROL_SOURCE: InjectionToken<unknown>;
|
|
626
|
+
export declare class ControlDataSource extends BaseDataSource {
|
|
627
|
+
private readonly control;
|
|
628
|
+
constructor(control: AbstractControl$1, metadata?: BaseDataSourceMetadata | null);
|
|
629
|
+
init(): void;
|
|
630
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ControlDataSource, [null, {
|
|
631
|
+
optional: true;
|
|
632
|
+
}]>;
|
|
633
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
634
|
+
}
|
|
635
|
+
export declare function controlDataSource(control: AbstractControl$1): ControlDataSource;
|
|
636
|
+
export interface ControlWithDataSource<Source = any, Target = any> {
|
|
637
|
+
setDataSource(name: string, dataSource: DataSource, settings?: UseDataSourceSettings<Source, Target>): void;
|
|
638
|
+
}
|
|
639
|
+
export declare class RxapFormSystemError extends RxapError {
|
|
640
|
+
constructor(message: string, code: string, className?: string);
|
|
641
|
+
}
|
|
642
|
+
export declare function FormContextFromActivatedRouteFactory(route: ActivatedRoute): import("@angular/router").Params;
|
|
643
|
+
export interface FormSystemControlDirective<T> extends ExtractDataSourcesMixin, ControlValueAccessor, OnInit {}
|
|
644
|
+
export declare class FormSystemControlDirective<T> implements ControlValueAccessor, OnInit {
|
|
645
|
+
private readonly parent;
|
|
646
|
+
private readonly environmentInjector;
|
|
647
|
+
private readonly viewContainerRef;
|
|
648
|
+
private readonly dataSourceLoader;
|
|
649
|
+
private readonly injector;
|
|
650
|
+
/**
|
|
651
|
+
* Defines the form control id
|
|
652
|
+
*/
|
|
653
|
+
readonly controlId: import("@angular/core").InputSignal<string>;
|
|
654
|
+
protected control: RxapFormControl;
|
|
655
|
+
protected componentRef: ComponentRef<ControlValueAccessor & Partial<ControlWithDataSource>>;
|
|
656
|
+
ngOnInit(): void;
|
|
657
|
+
registerOnChange(fn: (value: (any | null)) => void): void;
|
|
658
|
+
registerOnTouched(fn: () => void): void;
|
|
659
|
+
writeValue(value: any): void;
|
|
660
|
+
setDisabledState(isDisabled: boolean): void;
|
|
661
|
+
private setDataSources;
|
|
662
|
+
private setComponentProperties;
|
|
663
|
+
private createComponent;
|
|
664
|
+
private extractControl;
|
|
665
|
+
private extractFormDefinition;
|
|
666
|
+
private extractComponent;
|
|
667
|
+
private extractComponentProperties;
|
|
668
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormSystemControlDirective<any>, never>;
|
|
669
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormSystemControlDirective<any>, "[rxapFormSystemControl]", never, {
|
|
670
|
+
"controlId": {
|
|
671
|
+
"alias": "controlId";
|
|
672
|
+
"required": true;
|
|
673
|
+
"isSignal": true;
|
|
674
|
+
};
|
|
675
|
+
}, {}, never, never, true, never>;
|
|
676
|
+
}
|
|
677
|
+
export declare const SUBMIT_CONTEXT_FORM_ADAPTER_METHOD: InjectionToken<unknown>;
|
|
678
|
+
export declare class SubmitContextFormAdapter extends ProxyRemoteMethod<unknown, Record<string, unknown>, OpenApiRemoteMethodParameter<Record<string, unknown>>> {
|
|
679
|
+
private readonly context;
|
|
680
|
+
constructor(remoteMethod: OpenApiRemoteMethod<unknown, OpenApiRemoteMethodParameter<Record<string, unknown>>, Record<string, unknown>>, context: Record<string, unknown>);
|
|
681
|
+
transformParameters(value: Record<string, unknown>): OpenApiRemoteMethodParameter;
|
|
682
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SubmitContextFormAdapter, never>;
|
|
683
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
684
|
+
}
|
|
685
|
+
export declare function SubmitContextFormAdapterFactory(remoteMethod: OpenApiRemoteMethod, context: Record<string, unknown>): SubmitContextFormAdapter;
|