@rxap/form-system 19.2.0 → 21.0.1-dev.1

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.
Files changed (400) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/compodoc/changelog.html +38 -0
  3. package/compodoc/classes/ExtractOptionsDataSourceMixin.html +24 -80
  4. package/compodoc/classes/ExtractRemoteMethodsMixin.html +36 -52
  5. package/compodoc/dependencies.html +17 -17
  6. package/compodoc/directives/AbstractOptionsFromMethodDirective.html +1354 -0
  7. package/compodoc/directives/AutocompleteOptionsFromMethodDirective.html +376 -229
  8. package/compodoc/directives/ControlHideShowDirective.html +43 -152
  9. package/compodoc/directives/ForFormArrayItemsDirective.html +6 -101
  10. package/compodoc/directives/FormArrayAddItemButtonDirective.html +84 -222
  11. package/compodoc/directives/FormArrayItemButton.html +182 -200
  12. package/compodoc/directives/FormArrayItemRemoveButtonDirective.html +230 -211
  13. package/compodoc/directives/FormArrayItemRestoreButtonDirective.html +188 -158
  14. package/compodoc/directives/FormArrayRemovableDirective.html +39 -61
  15. package/compodoc/directives/FormSystemControlDirective.html +64 -148
  16. package/compodoc/directives/InputSelectOptionsDirective.html +390 -268
  17. package/compodoc/directives/IsEqualToDirective.html +61 -117
  18. package/compodoc/directives/IsSelectableValueDirective.html +50 -204
  19. package/compodoc/directives/OptionsFromMethodDirective.html +380 -164
  20. package/compodoc/directives/OptionsFromRemoteMethodDirective.html +123 -212
  21. package/compodoc/graph/dependencies.svg +4 -70
  22. package/compodoc/injectables/ControlDataSource.html +4 -10
  23. package/compodoc/injectables/NoopResolveMethod.html +48 -40
  24. package/compodoc/injectables/SubmitContextFormAdapter.html +4 -9
  25. package/compodoc/interfaces/AutocompleteOptionsFromMethodDirectiveParameters.html +46 -38
  26. package/compodoc/interfaces/AutocompleteOptionsFromMethodDirectiveSettings.html +46 -38
  27. package/compodoc/interfaces/AutocompleteOptionsFromRemoteMethodTemplateContext.html +46 -38
  28. package/compodoc/interfaces/ControlHideShowOptions.html +10 -30
  29. package/compodoc/interfaces/ForFormArrayItemsDirectiveContext.html +6 -17
  30. package/compodoc/interfaces/InputSelectOptionsSettings.html +26 -49
  31. package/compodoc/interfaces/InputSelectOptionsTemplateContext.html +26 -49
  32. package/compodoc/interfaces/OptionsFromMethodDirectiveSettings.html +63 -45
  33. package/compodoc/interfaces/OptionsFromMethodTemplateContext.html +63 -45
  34. package/compodoc/interfaces/OptionsFromRemoteMethodTemplateContext.html +34 -50
  35. package/compodoc/js/menu-wc.js +3 -32
  36. package/compodoc/js/menu-wc_es5.js +1 -1
  37. package/compodoc/js/search/search_index.js +2 -2
  38. package/compodoc/modules.html +0 -17
  39. package/compodoc/overview.html +2 -114
  40. package/compodoc/properties.html +1 -1
  41. package/docs/documentation.json +9603 -7779
  42. package/docs/html/assets/hierarchy.js +1 -1
  43. package/docs/html/assets/navigation.js +1 -1
  44. package/docs/html/assets/search.js +1 -1
  45. package/docs/html/classes/AbstractOptionsFromMethodDirective.html +38 -0
  46. package/docs/html/classes/AutocompleteOptionsFromMethodDirective.html +19 -16
  47. package/docs/html/classes/ControlDataSource.html +13 -13
  48. package/docs/html/classes/ControlHideShowDirective.html +5 -5
  49. package/docs/html/classes/ExtractControlFromParentMixin.html +2 -2
  50. package/docs/html/classes/ExtractControlMixin.html +2 -2
  51. package/docs/html/classes/ExtractDataSourcesMixin.html +2 -2
  52. package/docs/html/classes/ExtractFormDefinitionMixin.html +2 -2
  53. package/docs/html/classes/ExtractFunctionMixin.html +2 -2
  54. package/docs/html/classes/ExtractFunctionsMixin.html +2 -2
  55. package/docs/html/classes/ExtractIsValueFunctionMixin.html +2 -2
  56. package/docs/html/classes/ExtractMethodMixin.html +2 -2
  57. package/docs/html/classes/ExtractMethodsMixin.html +2 -2
  58. package/docs/html/classes/ExtractOptionsDataSourceMixin.html +2 -4
  59. package/docs/html/classes/ExtractOptionsMethodMixin.html +2 -2
  60. package/docs/html/classes/ExtractRemoteMethodsMixin.html +2 -2
  61. package/docs/html/classes/ExtractResolveMethodMixin.html +2 -2
  62. package/docs/html/classes/ExtractToDisplayFunctionMixin.html +2 -2
  63. package/docs/html/classes/ForFormArrayItemsDirective.html +4 -4
  64. package/docs/html/classes/FormArrayAddItemButtonDirective.html +4 -4
  65. package/docs/html/classes/FormArrayItemButton.html +4 -4
  66. package/docs/html/classes/FormArrayItemRemoveButtonDirective.html +5 -5
  67. package/docs/html/classes/FormArrayItemRestoreButtonDirective.html +4 -4
  68. package/docs/html/classes/FormArrayRemovableDirective.html +4 -4
  69. package/docs/html/classes/FormSystemControlDirective.html +8 -8
  70. package/docs/html/classes/InputSelectOptionsDirective.html +10 -7
  71. package/docs/html/classes/IsEqualToDirective.html +5 -5
  72. package/docs/html/classes/IsSelectableValueDirective.html +4 -5
  73. package/docs/html/classes/NoopResolveMethod.html +2 -2
  74. package/docs/html/classes/OptionsFromMethodDirective.html +24 -24
  75. package/docs/html/classes/OptionsFromRemoteMethodDirective.html +5 -11
  76. package/docs/html/classes/RxapFormSystemError.html +6 -5
  77. package/docs/html/classes/SubmitContextFormAdapter.html +10 -10
  78. package/docs/html/classes/TestNgControl.html +26 -26
  79. package/docs/html/enums/FormSystemMetadataKeys.html +2 -2
  80. package/docs/html/functions/ApplyUseFunctionAdapters.html +1 -1
  81. package/docs/html/functions/ApplyUseMethodAdapters.html +1 -1
  82. package/docs/html/functions/ComposeOptionsTransformers.html +1 -1
  83. package/docs/html/functions/FormContextFromActivatedRouteFactory.html +1 -1
  84. package/docs/html/functions/ResolveByUuidParameter.html +1 -1
  85. package/docs/html/functions/ResolveByUuidResultFactory.html +1 -1
  86. package/docs/html/functions/SubmitContextFormAdapterFactory.html +1 -1
  87. package/docs/html/functions/UseAutocompleteIsValueFunction.html +1 -1
  88. package/docs/html/functions/UseAutocompleteOptionsMethod.html +1 -1
  89. package/docs/html/functions/UseAutocompleteResolveMethod.html +1 -1
  90. package/docs/html/functions/UseAutocompleteToDisplayFunction.html +1 -1
  91. package/docs/html/functions/UseComponent.html +1 -1
  92. package/docs/html/functions/UseDataSource.html +1 -1
  93. package/docs/html/functions/UseFormComponent.html +2 -2
  94. package/docs/html/functions/UseFunction.html +1 -1
  95. package/docs/html/functions/UseHideFunction.html +1 -1
  96. package/docs/html/functions/UseIsValueFunction.html +1 -1
  97. package/docs/html/functions/UseMethod.html +1 -1
  98. package/docs/html/functions/UseOptionsDataSource.html +1 -1
  99. package/docs/html/functions/UseOptionsMethod.html +1 -1
  100. package/docs/html/functions/UseOptionsRemoteMethod.html +1 -1
  101. package/docs/html/functions/UseRemoteMethod.html +1 -1
  102. package/docs/html/functions/UseResolveMethod.html +1 -1
  103. package/docs/html/functions/UseShowFunction.html +1 -1
  104. package/docs/html/functions/UseToDisplayFunction.html +1 -1
  105. package/docs/html/functions/controlDataSource-1.html +1 -1
  106. package/docs/html/hierarchy.html +1 -1
  107. package/docs/html/index.html +2 -2
  108. package/docs/html/interfaces/AutocompleteOptionsFromMethodDirectiveParameters.html +2 -2
  109. package/docs/html/interfaces/AutocompleteOptionsFromMethodDirectiveSettings.html +2 -2
  110. package/docs/html/interfaces/AutocompleteOptionsFromRemoteMethodTemplateContext.html +2 -2
  111. package/docs/html/interfaces/ControlHideShowOptions.html +2 -2
  112. package/docs/html/interfaces/ControlWithDataSource.html +2 -2
  113. package/docs/html/interfaces/ForFormArrayItemsDirectiveContext.html +2 -2
  114. package/docs/html/interfaces/InputSelectOptionsSettings.html +4 -4
  115. package/docs/html/interfaces/InputSelectOptionsTemplateContext.html +2 -2
  116. package/docs/html/interfaces/OptionsFromMethodDirectiveSettings.html +1 -1
  117. package/docs/html/interfaces/OptionsFromMethodTemplateContext.html +2 -2
  118. package/docs/html/interfaces/OptionsFromRemoteMethodTemplateContext.html +2 -2
  119. package/docs/html/interfaces/UseDataSourceSettings.html +2 -2
  120. package/docs/html/interfaces/UseDataSourceValue.html +3 -3
  121. package/docs/html/interfaces/UseFunctionConfig.html +2 -2
  122. package/docs/html/interfaces/UseFunctionDefinition.html +2 -2
  123. package/docs/html/interfaces/UseMethodConfig.html +2 -2
  124. package/docs/html/interfaces/UseMethodDefinition.html +2 -2
  125. package/docs/html/modules.html +1 -1
  126. package/docs/html/types/ControlHideShowFunction.html +1 -1
  127. package/docs/html/types/FunctionParameterAdapterFunction.html +1 -1
  128. package/docs/html/types/FunctionResultAdapterFunction.html +1 -1
  129. package/docs/html/types/MethodParameterAdapterFunction.html +1 -1
  130. package/docs/html/types/MethodResultAdapterFunction.html +1 -1
  131. package/docs/html/types/OptionsMethod.html +1 -1
  132. package/docs/html/types/UseFunctionType.html +1 -1
  133. package/docs/html/types/UseOptionsDataSourceSettings.html +1 -1
  134. package/docs/html/variables/DATA_SOURCE_NAME.html +1 -1
  135. package/docs/html/variables/IS_VALUE_FUNCTION_NAME.html +1 -1
  136. package/docs/html/variables/OPTIONS_METHOD_NAME.html +1 -1
  137. package/docs/html/variables/REMOTE_METHOD_NAME.html +1 -1
  138. package/docs/html/variables/RESOLVE_METHOD_NAME.html +1 -1
  139. package/docs/html/variables/RXAP_FORM_CONTROL_SOURCE.html +1 -1
  140. package/docs/html/variables/RXAP_FORM_SYSTEM_HIDE_METADATA.html +1 -1
  141. package/docs/html/variables/RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS.html +1 -1
  142. package/docs/html/variables/RXAP_FORM_SYSTEM_SHOW_METADATA.html +1 -1
  143. package/docs/html/variables/RXAP_USE_FUNCTION.html +1 -1
  144. package/docs/html/variables/RXAP_USE_METHOD.html +1 -1
  145. package/docs/html/variables/RXAP_USE_REMOTE_METHOD.html +1 -1
  146. package/docs/html/variables/SUBMIT_CONTEXT_FORM_ADAPTER_METHOD.html +1 -1
  147. package/docs/html/variables/TO_DISPLAY_FUNCTION_NAME.html +1 -1
  148. package/docs/markdown/README.md +1 -1
  149. package/docs/markdown/classes/AbstractOptionsFromMethodDirective.md +436 -0
  150. package/docs/markdown/classes/AutocompleteOptionsFromMethodDirective.md +131 -124
  151. package/docs/markdown/classes/ControlDataSource.md +51 -51
  152. package/docs/markdown/classes/ControlHideShowDirective.md +11 -31
  153. package/docs/markdown/classes/ExtractControlFromParentMixin.md +3 -3
  154. package/docs/markdown/classes/ExtractControlMixin.md +6 -6
  155. package/docs/markdown/classes/ExtractDataSourcesMixin.md +3 -3
  156. package/docs/markdown/classes/ExtractFormDefinitionMixin.md +3 -3
  157. package/docs/markdown/classes/ExtractFunctionMixin.md +5 -5
  158. package/docs/markdown/classes/ExtractFunctionsMixin.md +3 -3
  159. package/docs/markdown/classes/ExtractIsValueFunctionMixin.md +11 -11
  160. package/docs/markdown/classes/ExtractMethodMixin.md +5 -5
  161. package/docs/markdown/classes/ExtractMethodsMixin.md +3 -3
  162. package/docs/markdown/classes/ExtractOptionsDataSourceMixin.md +20 -32
  163. package/docs/markdown/classes/ExtractOptionsMethodMixin.md +12 -12
  164. package/docs/markdown/classes/ExtractRemoteMethodsMixin.md +3 -3
  165. package/docs/markdown/classes/ExtractResolveMethodMixin.md +11 -11
  166. package/docs/markdown/classes/ExtractToDisplayFunctionMixin.md +11 -11
  167. package/docs/markdown/classes/ForFormArrayItemsDirective.md +5 -25
  168. package/docs/markdown/classes/FormArrayAddItemButtonDirective.md +14 -26
  169. package/docs/markdown/classes/FormArrayItemButton.md +21 -41
  170. package/docs/markdown/classes/FormArrayItemRemoveButtonDirective.md +28 -58
  171. package/docs/markdown/classes/FormArrayItemRestoreButtonDirective.md +25 -45
  172. package/docs/markdown/classes/FormArrayRemovableDirective.md +10 -18
  173. package/docs/markdown/classes/FormSystemControlDirective.md +14 -38
  174. package/docs/markdown/classes/InputSelectOptionsDirective.md +51 -76
  175. package/docs/markdown/classes/IsEqualToDirective.md +9 -19
  176. package/docs/markdown/classes/IsSelectableValueDirective.md +24 -48
  177. package/docs/markdown/classes/NoopResolveMethod.md +3 -3
  178. package/docs/markdown/classes/OptionsFromMethodDirective.md +140 -87
  179. package/docs/markdown/classes/OptionsFromRemoteMethodDirective.md +15 -70
  180. package/docs/markdown/classes/RxapFormSystemError.md +25 -13
  181. package/docs/markdown/classes/SubmitContextFormAdapter.md +32 -32
  182. package/docs/markdown/classes/TestNgControl.md +29 -29
  183. package/docs/markdown/enumerations/FormSystemMetadataKeys.md +6 -6
  184. package/docs/markdown/functions/ApplyUseFunctionAdapters.md +2 -2
  185. package/docs/markdown/functions/ApplyUseMethodAdapters.md +2 -2
  186. package/docs/markdown/functions/ComposeOptionsTransformers.md +2 -2
  187. package/docs/markdown/functions/FormContextFromActivatedRouteFactory.md +2 -2
  188. package/docs/markdown/functions/ResolveByUuidParameter.md +2 -2
  189. package/docs/markdown/functions/ResolveByUuidResultFactory.md +2 -2
  190. package/docs/markdown/functions/SubmitContextFormAdapterFactory.md +2 -2
  191. package/docs/markdown/functions/UseAutocompleteIsValueFunction.md +2 -2
  192. package/docs/markdown/functions/UseAutocompleteOptionsMethod.md +4 -4
  193. package/docs/markdown/functions/UseAutocompleteResolveMethod.md +2 -2
  194. package/docs/markdown/functions/UseAutocompleteToDisplayFunction.md +2 -2
  195. package/docs/markdown/functions/UseComponent.md +2 -2
  196. package/docs/markdown/functions/UseDataSource.md +2 -2
  197. package/docs/markdown/functions/UseFormComponent.md +2 -2
  198. package/docs/markdown/functions/UseFunction.md +2 -2
  199. package/docs/markdown/functions/UseHideFunction.md +2 -2
  200. package/docs/markdown/functions/UseIsValueFunction.md +3 -3
  201. package/docs/markdown/functions/UseMethod.md +2 -2
  202. package/docs/markdown/functions/UseOptionsDataSource.md +2 -2
  203. package/docs/markdown/functions/UseOptionsMethod.md +2 -2
  204. package/docs/markdown/functions/UseOptionsRemoteMethod.md +2 -2
  205. package/docs/markdown/functions/UseRemoteMethod.md +2 -2
  206. package/docs/markdown/functions/UseResolveMethod.md +3 -3
  207. package/docs/markdown/functions/UseShowFunction.md +2 -2
  208. package/docs/markdown/functions/UseToDisplayFunction.md +3 -3
  209. package/docs/markdown/functions/controlDataSource.md +2 -2
  210. package/docs/markdown/globals.md +3 -3
  211. package/docs/markdown/interfaces/AutocompleteOptionsFromMethodDirectiveParameters.md +3 -3
  212. package/docs/markdown/interfaces/AutocompleteOptionsFromMethodDirectiveSettings.md +3 -3
  213. package/docs/markdown/interfaces/AutocompleteOptionsFromRemoteMethodTemplateContext.md +3 -3
  214. package/docs/markdown/interfaces/ControlHideShowOptions.md +3 -3
  215. package/docs/markdown/interfaces/ControlWithDataSource.md +3 -3
  216. package/docs/markdown/interfaces/ForFormArrayItemsDirectiveContext.md +9 -9
  217. package/docs/markdown/interfaces/InputSelectOptionsSettings.md +6 -6
  218. package/docs/markdown/interfaces/InputSelectOptionsTemplateContext.md +3 -3
  219. package/docs/markdown/interfaces/OptionsFromMethodDirectiveSettings.md +2 -2
  220. package/docs/markdown/interfaces/OptionsFromMethodTemplateContext.md +3 -3
  221. package/docs/markdown/interfaces/OptionsFromRemoteMethodTemplateContext.md +3 -3
  222. package/docs/markdown/interfaces/UseDataSourceSettings.md +3 -3
  223. package/docs/markdown/interfaces/UseDataSourceValue.md +5 -5
  224. package/docs/markdown/interfaces/UseFunctionConfig.md +3 -3
  225. package/docs/markdown/interfaces/UseFunctionDefinition.md +4 -4
  226. package/docs/markdown/interfaces/UseMethodConfig.md +3 -3
  227. package/docs/markdown/interfaces/UseMethodDefinition.md +4 -4
  228. package/docs/markdown/type-aliases/ControlHideShowFunction.md +2 -2
  229. package/docs/markdown/type-aliases/FunctionParameterAdapterFunction.md +2 -2
  230. package/docs/markdown/type-aliases/FunctionResultAdapterFunction.md +2 -2
  231. package/docs/markdown/type-aliases/MethodParameterAdapterFunction.md +2 -2
  232. package/docs/markdown/type-aliases/MethodResultAdapterFunction.md +2 -2
  233. package/docs/markdown/type-aliases/OptionsMethod.md +2 -2
  234. package/docs/markdown/type-aliases/UseFunctionType.md +2 -2
  235. package/docs/markdown/type-aliases/UseOptionsDataSourceSettings.md +2 -2
  236. package/docs/markdown/variables/DATA_SOURCE_NAME.md +2 -2
  237. package/docs/markdown/variables/IS_VALUE_FUNCTION_NAME.md +2 -2
  238. package/docs/markdown/variables/OPTIONS_METHOD_NAME.md +2 -2
  239. package/docs/markdown/variables/REMOTE_METHOD_NAME.md +2 -2
  240. package/docs/markdown/variables/RESOLVE_METHOD_NAME.md +2 -2
  241. package/docs/markdown/variables/RXAP_FORM_CONTROL_SOURCE.md +2 -2
  242. package/docs/markdown/variables/RXAP_FORM_SYSTEM_HIDE_METADATA.md +2 -2
  243. package/docs/markdown/variables/RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS.md +2 -2
  244. package/docs/markdown/variables/RXAP_FORM_SYSTEM_SHOW_METADATA.md +2 -2
  245. package/docs/markdown/variables/RXAP_USE_FUNCTION.md +2 -2
  246. package/docs/markdown/variables/RXAP_USE_METHOD.md +2 -2
  247. package/docs/markdown/variables/RXAP_USE_REMOTE_METHOD.md +2 -2
  248. package/docs/markdown/variables/SUBMIT_CONTEXT_FORM_ADAPTER_METHOD.md +2 -2
  249. package/docs/markdown/variables/TO_DISPLAY_FUNCTION_NAME.md +2 -2
  250. package/docs/wiki/Class.AbstractOptionsFromMethodDirective.md +432 -0
  251. package/docs/wiki/Class.AutocompleteOptionsFromMethodDirective.md +130 -123
  252. package/docs/wiki/Class.ControlDataSource.md +50 -50
  253. package/docs/wiki/Class.ControlHideShowDirective.md +10 -30
  254. package/docs/wiki/Class.ExtractControlFromParentMixin.md +2 -2
  255. package/docs/wiki/Class.ExtractControlMixin.md +5 -5
  256. package/docs/wiki/Class.ExtractDataSourcesMixin.md +2 -2
  257. package/docs/wiki/Class.ExtractFormDefinitionMixin.md +2 -2
  258. package/docs/wiki/Class.ExtractFunctionMixin.md +4 -4
  259. package/docs/wiki/Class.ExtractFunctionsMixin.md +2 -2
  260. package/docs/wiki/Class.ExtractIsValueFunctionMixin.md +10 -10
  261. package/docs/wiki/Class.ExtractMethodMixin.md +4 -4
  262. package/docs/wiki/Class.ExtractMethodsMixin.md +2 -2
  263. package/docs/wiki/Class.ExtractOptionsDataSourceMixin.md +19 -31
  264. package/docs/wiki/Class.ExtractOptionsMethodMixin.md +11 -11
  265. package/docs/wiki/Class.ExtractRemoteMethodsMixin.md +2 -2
  266. package/docs/wiki/Class.ExtractResolveMethodMixin.md +10 -10
  267. package/docs/wiki/Class.ExtractToDisplayFunctionMixin.md +10 -10
  268. package/docs/wiki/Class.ForFormArrayItemsDirective.md +4 -24
  269. package/docs/wiki/Class.FormArrayAddItemButtonDirective.md +13 -25
  270. package/docs/wiki/Class.FormArrayItemButton.md +20 -40
  271. package/docs/wiki/Class.FormArrayItemRemoveButtonDirective.md +27 -57
  272. package/docs/wiki/Class.FormArrayItemRestoreButtonDirective.md +24 -44
  273. package/docs/wiki/Class.FormArrayRemovableDirective.md +9 -17
  274. package/docs/wiki/Class.FormSystemControlDirective.md +13 -37
  275. package/docs/wiki/Class.InputSelectOptionsDirective.md +50 -75
  276. package/docs/wiki/Class.IsEqualToDirective.md +8 -18
  277. package/docs/wiki/Class.IsSelectableValueDirective.md +23 -47
  278. package/docs/wiki/Class.NoopResolveMethod.md +2 -2
  279. package/docs/wiki/Class.OptionsFromMethodDirective.md +139 -86
  280. package/docs/wiki/Class.OptionsFromRemoteMethodDirective.md +14 -69
  281. package/docs/wiki/Class.RxapFormSystemError.md +24 -12
  282. package/docs/wiki/Class.SubmitContextFormAdapter.md +31 -31
  283. package/docs/wiki/Class.TestNgControl.md +28 -28
  284. package/docs/wiki/Enumeration.FormSystemMetadataKeys.md +5 -5
  285. package/docs/wiki/Function.ApplyUseFunctionAdapters.md +1 -1
  286. package/docs/wiki/Function.ApplyUseMethodAdapters.md +1 -1
  287. package/docs/wiki/Function.ComposeOptionsTransformers.md +1 -1
  288. package/docs/wiki/Function.FormContextFromActivatedRouteFactory.md +1 -1
  289. package/docs/wiki/Function.ResolveByUuidParameter.md +1 -1
  290. package/docs/wiki/Function.ResolveByUuidResultFactory.md +1 -1
  291. package/docs/wiki/Function.SubmitContextFormAdapterFactory.md +1 -1
  292. package/docs/wiki/Function.UseAutocompleteIsValueFunction.md +1 -1
  293. package/docs/wiki/Function.UseAutocompleteOptionsMethod.md +3 -3
  294. package/docs/wiki/Function.UseAutocompleteResolveMethod.md +1 -1
  295. package/docs/wiki/Function.UseAutocompleteToDisplayFunction.md +1 -1
  296. package/docs/wiki/Function.UseComponent.md +1 -1
  297. package/docs/wiki/Function.UseDataSource.md +1 -1
  298. package/docs/wiki/Function.UseFormComponent.md +1 -1
  299. package/docs/wiki/Function.UseFunction.md +1 -1
  300. package/docs/wiki/Function.UseHideFunction.md +1 -1
  301. package/docs/wiki/Function.UseIsValueFunction.md +2 -2
  302. package/docs/wiki/Function.UseMethod.md +1 -1
  303. package/docs/wiki/Function.UseOptionsDataSource.md +1 -1
  304. package/docs/wiki/Function.UseOptionsMethod.md +1 -1
  305. package/docs/wiki/Function.UseOptionsRemoteMethod.md +1 -1
  306. package/docs/wiki/Function.UseRemoteMethod.md +1 -1
  307. package/docs/wiki/Function.UseResolveMethod.md +2 -2
  308. package/docs/wiki/Function.UseShowFunction.md +1 -1
  309. package/docs/wiki/Function.UseToDisplayFunction.md +2 -2
  310. package/docs/wiki/Function.controlDataSource.md +1 -1
  311. package/docs/wiki/Interface.AutocompleteOptionsFromMethodDirectiveParameters.md +2 -2
  312. package/docs/wiki/Interface.AutocompleteOptionsFromMethodDirectiveSettings.md +2 -2
  313. package/docs/wiki/Interface.AutocompleteOptionsFromRemoteMethodTemplateContext.md +2 -2
  314. package/docs/wiki/Interface.ControlHideShowOptions.md +2 -2
  315. package/docs/wiki/Interface.ControlWithDataSource.md +2 -2
  316. package/docs/wiki/Interface.ForFormArrayItemsDirectiveContext.md +8 -8
  317. package/docs/wiki/Interface.InputSelectOptionsSettings.md +5 -5
  318. package/docs/wiki/Interface.InputSelectOptionsTemplateContext.md +2 -2
  319. package/docs/wiki/Interface.OptionsFromMethodDirectiveSettings.md +1 -1
  320. package/docs/wiki/Interface.OptionsFromMethodTemplateContext.md +2 -2
  321. package/docs/wiki/Interface.OptionsFromRemoteMethodTemplateContext.md +2 -2
  322. package/docs/wiki/Interface.UseDataSourceSettings.md +2 -2
  323. package/docs/wiki/Interface.UseDataSourceValue.md +4 -4
  324. package/docs/wiki/Interface.UseFunctionConfig.md +2 -2
  325. package/docs/wiki/Interface.UseFunctionDefinition.md +3 -3
  326. package/docs/wiki/Interface.UseMethodConfig.md +2 -2
  327. package/docs/wiki/Interface.UseMethodDefinition.md +3 -3
  328. package/docs/wiki/TypeAlias.ControlHideShowFunction.md +1 -1
  329. package/docs/wiki/TypeAlias.FunctionParameterAdapterFunction.md +1 -1
  330. package/docs/wiki/TypeAlias.FunctionResultAdapterFunction.md +1 -1
  331. package/docs/wiki/TypeAlias.MethodParameterAdapterFunction.md +1 -1
  332. package/docs/wiki/TypeAlias.MethodResultAdapterFunction.md +1 -1
  333. package/docs/wiki/TypeAlias.OptionsMethod.md +1 -1
  334. package/docs/wiki/TypeAlias.UseFunctionType.md +1 -1
  335. package/docs/wiki/TypeAlias.UseOptionsDataSourceSettings.md +1 -1
  336. package/docs/wiki/Variable.DATA_SOURCE_NAME.md +1 -1
  337. package/docs/wiki/Variable.IS_VALUE_FUNCTION_NAME.md +1 -1
  338. package/docs/wiki/Variable.OPTIONS_METHOD_NAME.md +1 -1
  339. package/docs/wiki/Variable.REMOTE_METHOD_NAME.md +1 -1
  340. package/docs/wiki/Variable.RESOLVE_METHOD_NAME.md +1 -1
  341. package/docs/wiki/Variable.RXAP_FORM_CONTROL_SOURCE.md +1 -1
  342. package/docs/wiki/Variable.RXAP_FORM_SYSTEM_HIDE_METADATA.md +1 -1
  343. package/docs/wiki/Variable.RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS.md +1 -1
  344. package/docs/wiki/Variable.RXAP_FORM_SYSTEM_SHOW_METADATA.md +1 -1
  345. package/docs/wiki/Variable.RXAP_USE_FUNCTION.md +1 -1
  346. package/docs/wiki/Variable.RXAP_USE_METHOD.md +1 -1
  347. package/docs/wiki/Variable.RXAP_USE_REMOTE_METHOD.md +1 -1
  348. package/docs/wiki/Variable.SUBMIT_CONTEXT_FORM_ADAPTER_METHOD.md +1 -1
  349. package/docs/wiki/Variable.TO_DISPLAY_FUNCTION_NAME.md +1 -1
  350. package/docs/wiki/_Sidebar.md +1 -1
  351. package/docs/wiki/globals.md +2 -2
  352. package/fesm2022/rxap-form-system.mjs +304 -450
  353. package/fesm2022/rxap-form-system.mjs.map +1 -1
  354. package/package.json +49 -44
  355. package/types/rxap-form-system.d.ts +628 -0
  356. package/docs/html/classes/FormSystemDirectivesModule.html +0 -2
  357. package/docs/markdown/classes/FormSystemDirectivesModule.md +0 -19
  358. package/docs/wiki/Class.FormSystemDirectivesModule.md +0 -15
  359. package/index.d.ts +0 -41
  360. package/lib/control-data-source.d.ts +0 -13
  361. package/lib/control-with-data-source.d.ts +0 -5
  362. package/lib/decorators/metadata-keys.d.ts +0 -6
  363. package/lib/decorators/use-component.d.ts +0 -3
  364. package/lib/decorators/use-data-source.d.ts +0 -14
  365. package/lib/decorators/use-form-component.d.ts +0 -7
  366. package/lib/directives/array/for-form-array-items.directive.d.ts +0 -26
  367. package/lib/directives/array/form-array-add-item-button.directive.d.ts +0 -20
  368. package/lib/directives/array/form-array-item-button.d.ts +0 -30
  369. package/lib/directives/array/form-array-item-remove-button.directive.d.ts +0 -16
  370. package/lib/directives/array/form-array-item-restore-button.directive.d.ts +0 -9
  371. package/lib/directives/array/form-array-removable.directive.d.ts +0 -19
  372. package/lib/directives/autocomplete-options-from-method.directive.d.ts +0 -76
  373. package/lib/directives/control-hide-show.directive.d.ts +0 -40
  374. package/lib/directives/form-directives.module.d.ts +0 -8
  375. package/lib/directives/input-select-options.directive.d.ts +0 -74
  376. package/lib/directives/options-from-method.directive.d.ts +0 -39
  377. package/lib/directives/options-from-remote-method.directive.d.ts +0 -38
  378. package/lib/directives/test-ng-control.d.ts +0 -7
  379. package/lib/error.d.ts +0 -4
  380. package/lib/form-context-from-activated-route.factory.d.ts +0 -2
  381. package/lib/form-system-control.directive.d.ts +0 -37
  382. package/lib/mixins/adapters.d.ts +0 -9
  383. package/lib/mixins/apply-use-function.adapters.d.ts +0 -3
  384. package/lib/mixins/apply-use-method.adapters.d.ts +0 -4
  385. package/lib/mixins/extract-control-from-parent.mixin.d.ts +0 -5
  386. package/lib/mixins/extract-control.mixin.d.ts +0 -9
  387. package/lib/mixins/extract-data-sources.mixin.d.ts +0 -5
  388. package/lib/mixins/extract-form-definition.mixin.d.ts +0 -4
  389. package/lib/mixins/extract-function.mixin.d.ts +0 -9
  390. package/lib/mixins/extract-functions.mixin.d.ts +0 -19
  391. package/lib/mixins/extract-is-value-function.mixin.d.ts +0 -13
  392. package/lib/mixins/extract-method.mixin.d.ts +0 -9
  393. package/lib/mixins/extract-methods.mixin.d.ts +0 -20
  394. package/lib/mixins/extract-options-data-source.mixin.d.ts +0 -26
  395. package/lib/mixins/extract-options-method.mixin.d.ts +0 -17
  396. package/lib/mixins/extract-resolve-method.mixin.d.ts +0 -16
  397. package/lib/mixins/extract-to-display-function.mixin.d.ts +0 -13
  398. package/lib/submit-context-form-adapter.factory.d.ts +0 -13
  399. package/lib/validators/is-equal-to.d.ts +0 -17
  400. package/lib/validators/is-selectable-value.directive.d.ts +0 -16
@@ -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="114"
186
- class="link-to-prism">src/lib/directives/autocomplete-options-from-method.directive.ts:114</a></div>
185
+ <div class="io-line">Defined in <a href="" data-line="117"
186
+ class="link-to-prism">src/lib/directives/autocomplete-options-from-method.directive.ts:117</a></div>
187
187
  </td>
188
188
  </tr>
189
189
 
@@ -284,10 +284,12 @@ export class GetCompanyMethod implements Method&lt;ControlOption, { parameters:
284
284
  Injectable,
285
285
  Injector,
286
286
  INJECTOR,
287
- Input,
287
+ input,
288
288
  isDevMode,
289
+ linkedSignal,
289
290
  OnDestroy,
290
291
  ProviderToken,
292
+ untracked,
291
293
  } from &#x27;@angular/core&#x27;;
292
294
  import { NgControl } from &#x27;@angular/forms&#x27;;
293
295
  import { MatAutocomplete } from &#x27;@angular/material/autocomplete&#x27;;
@@ -326,9 +328,10 @@ import {
326
328
  UseToDisplayFunction,
327
329
  } from &#x27;../mixins/extract-to-display-function.mixin&#x27;;
328
330
  import {
329
- OptionsFromMethodDirective,
331
+ AbstractOptionsFromMethodDirective,
330
332
  OptionsFromMethodDirectiveSettings,
331
333
  } from &#x27;./options-from-method.directive&#x27;;
334
+ import { OptionsMethod } from &#x27;../mixins/extract-options-method.mixin&#x27;;
332
335
 
333
336
  export function UseAutocompleteOptionsMethod(
334
337
  method: ProviderToken&lt;MethodWithParameters&lt;ControlOptions, AutocompleteOptionsFromMethodDirectiveParameters&gt;&gt;,
@@ -403,34 +406,31 @@ export class NoopResolveMethod&lt;Value&gt; implements Method&lt;ControlOption,
403
406
  standalone: true,
404
407
  })
405
408
  export class AutocompleteOptionsFromMethodDirective&lt;Value &#x3D; any, Parameters extends AutocompleteOptionsFromMethodDirectiveParameters&lt;Value&gt; &#x3D; AutocompleteOptionsFromMethodDirectiveParameters&lt;Value&gt;&gt;
406
- extends OptionsFromMethodDirective&lt;Value, Parameters&gt;
409
+ extends AbstractOptionsFromMethodDirective&lt;Value, Parameters&gt;
407
410
  implements AfterViewInit, OnDestroy {
408
411
 
409
412
  static override ngTemplateContextGuard(
410
- dir: OptionsFromMethodDirective,
413
+ dir: AbstractOptionsFromMethodDirective,
411
414
  ctx: any,
412
415
  ): ctx is AutocompleteOptionsFromRemoteMethodTemplateContext {
413
416
  return true;
414
417
  }
415
418
 
416
- @Input(&#x27;rxapAutocompleteOptionsFromMethodParameters&#x27;)
417
- public declare parameters?: Parameters;
418
- @Input(&#x27;rxapAutocompleteOptionsFromMethodResetOnChange&#x27;)
419
- public declare resetOnChange?: Value;
420
- @Input(&#x27;rxapAutocompleteOptionsFromMethodMatAutocomplete&#x27;)
421
- public matAutocomplete?: MatAutocomplete;
419
+ public readonly parameters &#x3D; input&lt;Parameters | undefined&gt;(undefined, { alias: &#x27;rxapAutocompleteOptionsFromMethodParameters&#x27; });
420
+ public readonly resetOnChange &#x3D; input&lt;Value | undefined&gt;(undefined, { alias: &#x27;rxapAutocompleteOptionsFromMethodResetOnChange&#x27; });
421
+ public readonly matAutocomplete &#x3D; input&lt;MatAutocomplete | undefined&gt;(undefined, { alias: &#x27;rxapAutocompleteOptionsFromMethodMatAutocomplete&#x27; });
422
422
  // eslint-disable-next-line @angular-eslint/no-input-rename
423
- @Input(&#x27;rxapAutocompleteOptionsFromMethodCall&#x27;)
424
- public declare method: Method&lt;ControlOptions, Parameters&gt;;
423
+ public readonly method &#x3D; input&lt;OptionsMethod&lt;ControlOptions&lt;Value&gt;, Parameters&gt; | undefined&gt;(undefined, { alias: &#x27;rxapAutocompleteOptionsFromMethodCall&#x27; });
425
424
  // eslint-disable-next-line @angular-eslint/no-input-rename
426
- @Input(&#x27;rxapAutocompleteOptionsFromMethodResolve&#x27;)
427
- public resolveMethod?: MethodWithParameters&lt;ControlOption, { value: Value } &amp; Parameters&gt;;
425
+ public readonly resolveMethod &#x3D; input&lt;MethodWithParameters&lt;ControlOption, { value: Value } &amp; Parameters&gt; | undefined&gt;(undefined, { alias: &#x27;rxapAutocompleteOptionsFromMethodResolve&#x27; });
428
426
 
429
- @Input(&#x27;rxapAutocompleteOptionsFromMethodIsValue&#x27;)
430
- public isValue?: (value: any) &#x3D;&gt; boolean;
427
+ public readonly isValue &#x3D; input&lt;((value: any) &#x3D;&gt; boolean) | undefined&gt;(undefined, { alias: &#x27;rxapAutocompleteOptionsFromMethodIsValue&#x27; });
431
428
 
432
- @Input(&#x27;rxapAutocompleteOptionsFromMethodToDisplay&#x27;)
433
- public toDisplay?: (value: any) &#x3D;&gt; string;
429
+ public readonly toDisplay &#x3D; input&lt;((value: any) &#x3D;&gt; string) | undefined&gt;(undefined, { alias: &#x27;rxapAutocompleteOptionsFromMethodToDisplay&#x27; });
430
+
431
+ protected readonly resolvedResolveMethod &#x3D; linkedSignal(() &#x3D;&gt; this.resolveMethod());
432
+ protected readonly resolvedIsValue &#x3D; linkedSignal(() &#x3D;&gt; this.isValue());
433
+ protected readonly resolvedToDisplay &#x3D; linkedSignal(() &#x3D;&gt; this.toDisplay());
434
434
 
435
435
  protected override ngControl: NgControl | null &#x3D; null;
436
436
  protected override matFormField: MatFormField | null &#x3D; null;
@@ -452,23 +452,30 @@ export class AutocompleteOptionsFromMethodDirective&lt;Value &#x3D; any, Paramet
452
452
  this._subscription?.unsubscribe();
453
453
  }
454
454
 
455
- public override async ngAfterViewInit() {
456
- if (this.matAutocomplete) {
455
+ public override ngAfterViewInit() {
456
+ const matAutocomplete &#x3D; this.matAutocomplete();
457
+ if (matAutocomplete) {
457
458
  this.settings ??&#x3D; {};
458
459
  this.settings.filteredOptions ??&#x3D; true;
459
460
  }
460
- await super.ngAfterViewInit();
461
- this.resolveMethod ??&#x3D; this.extractResolveMethod();
462
- this.isValue ??&#x3D; this.extractIsValueFunction((value: any) &#x3D;&gt; typeof value &#x3D;&#x3D;&#x3D; &#x27;string&#x27; &amp;&amp; isUUID(value));
463
- this.toDisplay ??&#x3D; this.extractToDisplayFunction((value: any): string &#x3D;&gt; {
464
- if (!value) {
465
- return &#x27;&#x27;;
466
- }
467
- const option &#x3D; this.findOptionByValue(value);
468
- return option?.display ?? (isDevMode() ? &#x27;to display error&#x27; : &#x27;...&#x27;);
469
- });
470
- if (this.matAutocomplete) {
471
- this.matAutocomplete.displayWith &#x3D; this.toDisplay.bind(this);
461
+ super.ngAfterViewInit();
462
+ if (!this.resolvedResolveMethod()) {
463
+ this.resolvedResolveMethod.set(this.extractResolveMethod());
464
+ }
465
+ if (!this.resolvedIsValue()) {
466
+ this.resolvedIsValue.set(this.extractIsValueFunction((value: any) &#x3D;&gt; typeof value &#x3D;&#x3D;&#x3D; &#x27;string&#x27; &amp;&amp; isUUID(value)));
467
+ }
468
+ if (!this.resolvedToDisplay()) {
469
+ this.resolvedToDisplay.set(this.extractToDisplayFunction((value: any): string &#x3D;&gt; {
470
+ if (!value) {
471
+ return &#x27;&#x27;;
472
+ }
473
+ const option &#x3D; this.findOptionByValue(value);
474
+ return option?.display ?? (isDevMode() ? &#x27;to display error&#x27; : &#x27;...&#x27;);
475
+ }));
476
+ }
477
+ if (matAutocomplete) {
478
+ matAutocomplete.displayWith &#x3D; this.resolvedToDisplay()!.bind(this);
472
479
  }
473
480
  if (!this.control) {
474
481
  throw new Error(&#x27;The control is not yet defined&#x27;);
@@ -481,8 +488,8 @@ export class AutocompleteOptionsFromMethodDirective&lt;Value &#x3D; any, Paramet
481
488
  // to trigger the toDisplay function in the mat-autocomplete
482
489
  distinctUntilChanged(),
483
490
  tap(async value &#x3D;&gt; {
484
- await this.load(this.parameters);
485
- if (this.isValue?.(value)) {
491
+ await this.load(untracked(this.parameters));
492
+ if (this.resolvedIsValue()?.(value)) {
486
493
  this.triggerAutocompleteToDisplay();
487
494
  }
488
495
  }),
@@ -495,7 +502,7 @@ export class AutocompleteOptionsFromMethodDirective&lt;Value &#x3D; any, Paramet
495
502
  }
496
503
  const value &#x3D; this.control?.value;
497
504
  const c_parameters &#x3D; {...parameters};
498
- if (this.isValue?.(value)) {
505
+ if (this.resolvedIsValue()?.(value)) {
499
506
  return this.resolveValue(value, c_parameters);
500
507
  } else {
501
508
  c_parameters.search ??&#x3D; value;
@@ -508,14 +515,15 @@ export class AutocompleteOptionsFromMethodDirective&lt;Value &#x3D; any, Paramet
508
515
 
509
516
  protected override renderTemplate() {
510
517
  super.renderTemplate();
511
- if (this.matAutocomplete &amp;&amp; !this.isAutocompleteToDisplayTriggered) {
518
+ if (this.matAutocomplete() &amp;&amp; !this.isAutocompleteToDisplayTriggered) {
512
519
  this.isAutocompleteToDisplayTriggered &#x3D; true;
513
520
  this.triggerAutocompleteToDisplay();
514
521
  }
515
522
  }
516
523
 
517
524
  protected async resolveValue(value: Value, parameters: Parameters &#x3D; {} as Parameters) {
518
- if (!this.resolveMethod) {
525
+ const resolveMethod &#x3D; this.resolvedResolveMethod();
526
+ if (!resolveMethod) {
519
527
  if (isDevMode()) {
520
528
  console.warn(&#x27;The resolve method is not yet defined&#x27;);
521
529
  }
@@ -523,7 +531,7 @@ export class AutocompleteOptionsFromMethodDirective&lt;Value &#x3D; any, Paramet
523
531
  }
524
532
  // only resolve the value if the option is not already loaded
525
533
  if (!this.findOptionByValue(value)) {
526
- const option &#x3D; await this.resolveMethod!.call({...parameters, value});
534
+ const option &#x3D; await resolveMethod!.call({...parameters, value});
527
535
  if (option.value !&#x3D;&#x3D; value) {
528
536
  throw new Error(&#x27;The resolved value is not the same as the input value&#x27;);
529
537
  }
@@ -168,7 +168,7 @@
168
168
  </tr>
169
169
  <tr>
170
170
  <td class="col-md-4">
171
- <div class="io-line">Defined in <a href="" data-line="17" class="link-to-prism">src/lib/submit-context-form-adapter.factory.ts:17</a></div>
171
+ <div class="io-line">Defined in <a href="" data-line="13" class="link-to-prism">src/lib/submit-context-form-adapter.factory.ts:13</a></div>
172
172
  </td>
173
173
  </tr>
174
174
 
@@ -245,8 +245,8 @@
245
245
 
246
246
  <tr>
247
247
  <td class="col-md-4">
248
- <div class="io-line">Defined in <a href="" data-line="28"
249
- class="link-to-prism">src/lib/submit-context-form-adapter.factory.ts:28</a></div>
248
+ <div class="io-line">Defined in <a href="" data-line="23"
249
+ class="link-to-prism">src/lib/submit-context-form-adapter.factory.ts:23</a></div>
250
250
  </td>
251
251
  </tr>
252
252
 
@@ -298,11 +298,7 @@
298
298
 
299
299
 
300
300
  <div class="tab-pane fade tab-source-code" id="source">
301
- <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
302
- Inject,
303
- Injectable,
304
- InjectionToken,
305
- } from &#x27;@angular/core&#x27;;
301
+ <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Inject, Injectable, InjectionToken } from &#x27;@angular/core&#x27;;
306
302
  import { RXAP_FORM_CONTEXT } from &#x27;@rxap/forms&#x27;;
307
303
  import type {
308
304
  OpenApiRemoteMethod,
@@ -315,7 +311,6 @@ export const SUBMIT_CONTEXT_FORM_ADAPTER_METHOD &#x3D; new InjectionToken(&#x27;
315
311
  @Injectable()
316
312
  export class SubmitContextFormAdapter
317
313
  extends ProxyRemoteMethod&lt;unknown, Record&lt;string, unknown&gt;, OpenApiRemoteMethodParameter&lt;Record&lt;string, unknown&gt;&gt;&gt; {
318
-
319
314
  constructor(
320
315
  @Inject(SUBMIT_CONTEXT_FORM_ADAPTER_METHOD)
321
316
  remoteMethod: OpenApiRemoteMethod&lt;unknown, OpenApiRemoteMethodParameter&lt;Record&lt;string, unknown&gt;&gt;, Record&lt;string, unknown&gt;&gt;,
@@ -257,10 +257,12 @@ export class GetCompanyMethod implements Method&lt;ControlOption, { parameters:
257
257
  Injectable,
258
258
  Injector,
259
259
  INJECTOR,
260
- Input,
260
+ input,
261
261
  isDevMode,
262
+ linkedSignal,
262
263
  OnDestroy,
263
264
  ProviderToken,
265
+ untracked,
264
266
  } from &#x27;@angular/core&#x27;;
265
267
  import { NgControl } from &#x27;@angular/forms&#x27;;
266
268
  import { MatAutocomplete } from &#x27;@angular/material/autocomplete&#x27;;
@@ -299,9 +301,10 @@ import {
299
301
  UseToDisplayFunction,
300
302
  } from &#x27;../mixins/extract-to-display-function.mixin&#x27;;
301
303
  import {
302
- OptionsFromMethodDirective,
304
+ AbstractOptionsFromMethodDirective,
303
305
  OptionsFromMethodDirectiveSettings,
304
306
  } from &#x27;./options-from-method.directive&#x27;;
307
+ import { OptionsMethod } from &#x27;../mixins/extract-options-method.mixin&#x27;;
305
308
 
306
309
  export function UseAutocompleteOptionsMethod(
307
310
  method: ProviderToken&lt;MethodWithParameters&lt;ControlOptions, AutocompleteOptionsFromMethodDirectiveParameters&gt;&gt;,
@@ -376,34 +379,31 @@ export class NoopResolveMethod&lt;Value&gt; implements Method&lt;ControlOption,
376
379
  standalone: true,
377
380
  })
378
381
  export class AutocompleteOptionsFromMethodDirective&lt;Value &#x3D; any, Parameters extends AutocompleteOptionsFromMethodDirectiveParameters&lt;Value&gt; &#x3D; AutocompleteOptionsFromMethodDirectiveParameters&lt;Value&gt;&gt;
379
- extends OptionsFromMethodDirective&lt;Value, Parameters&gt;
382
+ extends AbstractOptionsFromMethodDirective&lt;Value, Parameters&gt;
380
383
  implements AfterViewInit, OnDestroy {
381
384
 
382
385
  static override ngTemplateContextGuard(
383
- dir: OptionsFromMethodDirective,
386
+ dir: AbstractOptionsFromMethodDirective,
384
387
  ctx: any,
385
388
  ): ctx is AutocompleteOptionsFromRemoteMethodTemplateContext {
386
389
  return true;
387
390
  }
388
391
 
389
- @Input(&#x27;rxapAutocompleteOptionsFromMethodParameters&#x27;)
390
- public declare parameters?: Parameters;
391
- @Input(&#x27;rxapAutocompleteOptionsFromMethodResetOnChange&#x27;)
392
- public declare resetOnChange?: Value;
393
- @Input(&#x27;rxapAutocompleteOptionsFromMethodMatAutocomplete&#x27;)
394
- public matAutocomplete?: MatAutocomplete;
392
+ public readonly parameters &#x3D; input&lt;Parameters | undefined&gt;(undefined, { alias: &#x27;rxapAutocompleteOptionsFromMethodParameters&#x27; });
393
+ public readonly resetOnChange &#x3D; input&lt;Value | undefined&gt;(undefined, { alias: &#x27;rxapAutocompleteOptionsFromMethodResetOnChange&#x27; });
394
+ public readonly matAutocomplete &#x3D; input&lt;MatAutocomplete | undefined&gt;(undefined, { alias: &#x27;rxapAutocompleteOptionsFromMethodMatAutocomplete&#x27; });
395
395
  // eslint-disable-next-line @angular-eslint/no-input-rename
396
- @Input(&#x27;rxapAutocompleteOptionsFromMethodCall&#x27;)
397
- public declare method: Method&lt;ControlOptions, Parameters&gt;;
396
+ public readonly method &#x3D; input&lt;OptionsMethod&lt;ControlOptions&lt;Value&gt;, Parameters&gt; | undefined&gt;(undefined, { alias: &#x27;rxapAutocompleteOptionsFromMethodCall&#x27; });
398
397
  // eslint-disable-next-line @angular-eslint/no-input-rename
399
- @Input(&#x27;rxapAutocompleteOptionsFromMethodResolve&#x27;)
400
- public resolveMethod?: MethodWithParameters&lt;ControlOption, { value: Value } &amp; Parameters&gt;;
398
+ public readonly resolveMethod &#x3D; input&lt;MethodWithParameters&lt;ControlOption, { value: Value } &amp; Parameters&gt; | undefined&gt;(undefined, { alias: &#x27;rxapAutocompleteOptionsFromMethodResolve&#x27; });
401
399
 
402
- @Input(&#x27;rxapAutocompleteOptionsFromMethodIsValue&#x27;)
403
- public isValue?: (value: any) &#x3D;&gt; boolean;
400
+ public readonly isValue &#x3D; input&lt;((value: any) &#x3D;&gt; boolean) | undefined&gt;(undefined, { alias: &#x27;rxapAutocompleteOptionsFromMethodIsValue&#x27; });
404
401
 
405
- @Input(&#x27;rxapAutocompleteOptionsFromMethodToDisplay&#x27;)
406
- public toDisplay?: (value: any) &#x3D;&gt; string;
402
+ public readonly toDisplay &#x3D; input&lt;((value: any) &#x3D;&gt; string) | undefined&gt;(undefined, { alias: &#x27;rxapAutocompleteOptionsFromMethodToDisplay&#x27; });
403
+
404
+ protected readonly resolvedResolveMethod &#x3D; linkedSignal(() &#x3D;&gt; this.resolveMethod());
405
+ protected readonly resolvedIsValue &#x3D; linkedSignal(() &#x3D;&gt; this.isValue());
406
+ protected readonly resolvedToDisplay &#x3D; linkedSignal(() &#x3D;&gt; this.toDisplay());
407
407
 
408
408
  protected override ngControl: NgControl | null &#x3D; null;
409
409
  protected override matFormField: MatFormField | null &#x3D; null;
@@ -425,23 +425,30 @@ export class AutocompleteOptionsFromMethodDirective&lt;Value &#x3D; any, Paramet
425
425
  this._subscription?.unsubscribe();
426
426
  }
427
427
 
428
- public override async ngAfterViewInit() {
429
- if (this.matAutocomplete) {
428
+ public override ngAfterViewInit() {
429
+ const matAutocomplete &#x3D; this.matAutocomplete();
430
+ if (matAutocomplete) {
430
431
  this.settings ??&#x3D; {};
431
432
  this.settings.filteredOptions ??&#x3D; true;
432
433
  }
433
- await super.ngAfterViewInit();
434
- this.resolveMethod ??&#x3D; this.extractResolveMethod();
435
- this.isValue ??&#x3D; this.extractIsValueFunction((value: any) &#x3D;&gt; typeof value &#x3D;&#x3D;&#x3D; &#x27;string&#x27; &amp;&amp; isUUID(value));
436
- this.toDisplay ??&#x3D; this.extractToDisplayFunction((value: any): string &#x3D;&gt; {
437
- if (!value) {
438
- return &#x27;&#x27;;
439
- }
440
- const option &#x3D; this.findOptionByValue(value);
441
- return option?.display ?? (isDevMode() ? &#x27;to display error&#x27; : &#x27;...&#x27;);
442
- });
443
- if (this.matAutocomplete) {
444
- this.matAutocomplete.displayWith &#x3D; this.toDisplay.bind(this);
434
+ super.ngAfterViewInit();
435
+ if (!this.resolvedResolveMethod()) {
436
+ this.resolvedResolveMethod.set(this.extractResolveMethod());
437
+ }
438
+ if (!this.resolvedIsValue()) {
439
+ this.resolvedIsValue.set(this.extractIsValueFunction((value: any) &#x3D;&gt; typeof value &#x3D;&#x3D;&#x3D; &#x27;string&#x27; &amp;&amp; isUUID(value)));
440
+ }
441
+ if (!this.resolvedToDisplay()) {
442
+ this.resolvedToDisplay.set(this.extractToDisplayFunction((value: any): string &#x3D;&gt; {
443
+ if (!value) {
444
+ return &#x27;&#x27;;
445
+ }
446
+ const option &#x3D; this.findOptionByValue(value);
447
+ return option?.display ?? (isDevMode() ? &#x27;to display error&#x27; : &#x27;...&#x27;);
448
+ }));
449
+ }
450
+ if (matAutocomplete) {
451
+ matAutocomplete.displayWith &#x3D; this.resolvedToDisplay()!.bind(this);
445
452
  }
446
453
  if (!this.control) {
447
454
  throw new Error(&#x27;The control is not yet defined&#x27;);
@@ -454,8 +461,8 @@ export class AutocompleteOptionsFromMethodDirective&lt;Value &#x3D; any, Paramet
454
461
  // to trigger the toDisplay function in the mat-autocomplete
455
462
  distinctUntilChanged(),
456
463
  tap(async value &#x3D;&gt; {
457
- await this.load(this.parameters);
458
- if (this.isValue?.(value)) {
464
+ await this.load(untracked(this.parameters));
465
+ if (this.resolvedIsValue()?.(value)) {
459
466
  this.triggerAutocompleteToDisplay();
460
467
  }
461
468
  }),
@@ -468,7 +475,7 @@ export class AutocompleteOptionsFromMethodDirective&lt;Value &#x3D; any, Paramet
468
475
  }
469
476
  const value &#x3D; this.control?.value;
470
477
  const c_parameters &#x3D; {...parameters};
471
- if (this.isValue?.(value)) {
478
+ if (this.resolvedIsValue()?.(value)) {
472
479
  return this.resolveValue(value, c_parameters);
473
480
  } else {
474
481
  c_parameters.search ??&#x3D; value;
@@ -481,14 +488,15 @@ export class AutocompleteOptionsFromMethodDirective&lt;Value &#x3D; any, Paramet
481
488
 
482
489
  protected override renderTemplate() {
483
490
  super.renderTemplate();
484
- if (this.matAutocomplete &amp;&amp; !this.isAutocompleteToDisplayTriggered) {
491
+ if (this.matAutocomplete() &amp;&amp; !this.isAutocompleteToDisplayTriggered) {
485
492
  this.isAutocompleteToDisplayTriggered &#x3D; true;
486
493
  this.triggerAutocompleteToDisplay();
487
494
  }
488
495
  }
489
496
 
490
497
  protected async resolveValue(value: Value, parameters: Parameters &#x3D; {} as Parameters) {
491
- if (!this.resolveMethod) {
498
+ const resolveMethod &#x3D; this.resolvedResolveMethod();
499
+ if (!resolveMethod) {
492
500
  if (isDevMode()) {
493
501
  console.warn(&#x27;The resolve method is not yet defined&#x27;);
494
502
  }
@@ -496,7 +504,7 @@ export class AutocompleteOptionsFromMethodDirective&lt;Value &#x3D; any, Paramet
496
504
  }
497
505
  // only resolve the value if the option is not already loaded
498
506
  if (!this.findOptionByValue(value)) {
499
- const option &#x3D; await this.resolveMethod!.call({...parameters, value});
507
+ const option &#x3D; await resolveMethod!.call({...parameters, value});
500
508
  if (option.value !&#x3D;&#x3D; value) {
501
509
  throw new Error(&#x27;The resolved value is not the same as the input value&#x27;);
502
510
  }
@@ -263,10 +263,12 @@ export class GetCompanyMethod implements Method&lt;ControlOption, { parameters:
263
263
  Injectable,
264
264
  Injector,
265
265
  INJECTOR,
266
- Input,
266
+ input,
267
267
  isDevMode,
268
+ linkedSignal,
268
269
  OnDestroy,
269
270
  ProviderToken,
271
+ untracked,
270
272
  } from &#x27;@angular/core&#x27;;
271
273
  import { NgControl } from &#x27;@angular/forms&#x27;;
272
274
  import { MatAutocomplete } from &#x27;@angular/material/autocomplete&#x27;;
@@ -305,9 +307,10 @@ import {
305
307
  UseToDisplayFunction,
306
308
  } from &#x27;../mixins/extract-to-display-function.mixin&#x27;;
307
309
  import {
308
- OptionsFromMethodDirective,
310
+ AbstractOptionsFromMethodDirective,
309
311
  OptionsFromMethodDirectiveSettings,
310
312
  } from &#x27;./options-from-method.directive&#x27;;
313
+ import { OptionsMethod } from &#x27;../mixins/extract-options-method.mixin&#x27;;
311
314
 
312
315
  export function UseAutocompleteOptionsMethod(
313
316
  method: ProviderToken&lt;MethodWithParameters&lt;ControlOptions, AutocompleteOptionsFromMethodDirectiveParameters&gt;&gt;,
@@ -382,34 +385,31 @@ export class NoopResolveMethod&lt;Value&gt; implements Method&lt;ControlOption,
382
385
  standalone: true,
383
386
  })
384
387
  export class AutocompleteOptionsFromMethodDirective&lt;Value &#x3D; any, Parameters extends AutocompleteOptionsFromMethodDirectiveParameters&lt;Value&gt; &#x3D; AutocompleteOptionsFromMethodDirectiveParameters&lt;Value&gt;&gt;
385
- extends OptionsFromMethodDirective&lt;Value, Parameters&gt;
388
+ extends AbstractOptionsFromMethodDirective&lt;Value, Parameters&gt;
386
389
  implements AfterViewInit, OnDestroy {
387
390
 
388
391
  static override ngTemplateContextGuard(
389
- dir: OptionsFromMethodDirective,
392
+ dir: AbstractOptionsFromMethodDirective,
390
393
  ctx: any,
391
394
  ): ctx is AutocompleteOptionsFromRemoteMethodTemplateContext {
392
395
  return true;
393
396
  }
394
397
 
395
- @Input(&#x27;rxapAutocompleteOptionsFromMethodParameters&#x27;)
396
- public declare parameters?: Parameters;
397
- @Input(&#x27;rxapAutocompleteOptionsFromMethodResetOnChange&#x27;)
398
- public declare resetOnChange?: Value;
399
- @Input(&#x27;rxapAutocompleteOptionsFromMethodMatAutocomplete&#x27;)
400
- public matAutocomplete?: MatAutocomplete;
398
+ public readonly parameters &#x3D; input&lt;Parameters | undefined&gt;(undefined, { alias: &#x27;rxapAutocompleteOptionsFromMethodParameters&#x27; });
399
+ public readonly resetOnChange &#x3D; input&lt;Value | undefined&gt;(undefined, { alias: &#x27;rxapAutocompleteOptionsFromMethodResetOnChange&#x27; });
400
+ public readonly matAutocomplete &#x3D; input&lt;MatAutocomplete | undefined&gt;(undefined, { alias: &#x27;rxapAutocompleteOptionsFromMethodMatAutocomplete&#x27; });
401
401
  // eslint-disable-next-line @angular-eslint/no-input-rename
402
- @Input(&#x27;rxapAutocompleteOptionsFromMethodCall&#x27;)
403
- public declare method: Method&lt;ControlOptions, Parameters&gt;;
402
+ public readonly method &#x3D; input&lt;OptionsMethod&lt;ControlOptions&lt;Value&gt;, Parameters&gt; | undefined&gt;(undefined, { alias: &#x27;rxapAutocompleteOptionsFromMethodCall&#x27; });
404
403
  // eslint-disable-next-line @angular-eslint/no-input-rename
405
- @Input(&#x27;rxapAutocompleteOptionsFromMethodResolve&#x27;)
406
- public resolveMethod?: MethodWithParameters&lt;ControlOption, { value: Value } &amp; Parameters&gt;;
404
+ public readonly resolveMethod &#x3D; input&lt;MethodWithParameters&lt;ControlOption, { value: Value } &amp; Parameters&gt; | undefined&gt;(undefined, { alias: &#x27;rxapAutocompleteOptionsFromMethodResolve&#x27; });
407
405
 
408
- @Input(&#x27;rxapAutocompleteOptionsFromMethodIsValue&#x27;)
409
- public isValue?: (value: any) &#x3D;&gt; boolean;
406
+ public readonly isValue &#x3D; input&lt;((value: any) &#x3D;&gt; boolean) | undefined&gt;(undefined, { alias: &#x27;rxapAutocompleteOptionsFromMethodIsValue&#x27; });
410
407
 
411
- @Input(&#x27;rxapAutocompleteOptionsFromMethodToDisplay&#x27;)
412
- public toDisplay?: (value: any) &#x3D;&gt; string;
408
+ public readonly toDisplay &#x3D; input&lt;((value: any) &#x3D;&gt; string) | undefined&gt;(undefined, { alias: &#x27;rxapAutocompleteOptionsFromMethodToDisplay&#x27; });
409
+
410
+ protected readonly resolvedResolveMethod &#x3D; linkedSignal(() &#x3D;&gt; this.resolveMethod());
411
+ protected readonly resolvedIsValue &#x3D; linkedSignal(() &#x3D;&gt; this.isValue());
412
+ protected readonly resolvedToDisplay &#x3D; linkedSignal(() &#x3D;&gt; this.toDisplay());
413
413
 
414
414
  protected override ngControl: NgControl | null &#x3D; null;
415
415
  protected override matFormField: MatFormField | null &#x3D; null;
@@ -431,23 +431,30 @@ export class AutocompleteOptionsFromMethodDirective&lt;Value &#x3D; any, Paramet
431
431
  this._subscription?.unsubscribe();
432
432
  }
433
433
 
434
- public override async ngAfterViewInit() {
435
- if (this.matAutocomplete) {
434
+ public override ngAfterViewInit() {
435
+ const matAutocomplete &#x3D; this.matAutocomplete();
436
+ if (matAutocomplete) {
436
437
  this.settings ??&#x3D; {};
437
438
  this.settings.filteredOptions ??&#x3D; true;
438
439
  }
439
- await super.ngAfterViewInit();
440
- this.resolveMethod ??&#x3D; this.extractResolveMethod();
441
- this.isValue ??&#x3D; this.extractIsValueFunction((value: any) &#x3D;&gt; typeof value &#x3D;&#x3D;&#x3D; &#x27;string&#x27; &amp;&amp; isUUID(value));
442
- this.toDisplay ??&#x3D; this.extractToDisplayFunction((value: any): string &#x3D;&gt; {
443
- if (!value) {
444
- return &#x27;&#x27;;
445
- }
446
- const option &#x3D; this.findOptionByValue(value);
447
- return option?.display ?? (isDevMode() ? &#x27;to display error&#x27; : &#x27;...&#x27;);
448
- });
449
- if (this.matAutocomplete) {
450
- this.matAutocomplete.displayWith &#x3D; this.toDisplay.bind(this);
440
+ super.ngAfterViewInit();
441
+ if (!this.resolvedResolveMethod()) {
442
+ this.resolvedResolveMethod.set(this.extractResolveMethod());
443
+ }
444
+ if (!this.resolvedIsValue()) {
445
+ this.resolvedIsValue.set(this.extractIsValueFunction((value: any) &#x3D;&gt; typeof value &#x3D;&#x3D;&#x3D; &#x27;string&#x27; &amp;&amp; isUUID(value)));
446
+ }
447
+ if (!this.resolvedToDisplay()) {
448
+ this.resolvedToDisplay.set(this.extractToDisplayFunction((value: any): string &#x3D;&gt; {
449
+ if (!value) {
450
+ return &#x27;&#x27;;
451
+ }
452
+ const option &#x3D; this.findOptionByValue(value);
453
+ return option?.display ?? (isDevMode() ? &#x27;to display error&#x27; : &#x27;...&#x27;);
454
+ }));
455
+ }
456
+ if (matAutocomplete) {
457
+ matAutocomplete.displayWith &#x3D; this.resolvedToDisplay()!.bind(this);
451
458
  }
452
459
  if (!this.control) {
453
460
  throw new Error(&#x27;The control is not yet defined&#x27;);
@@ -460,8 +467,8 @@ export class AutocompleteOptionsFromMethodDirective&lt;Value &#x3D; any, Paramet
460
467
  // to trigger the toDisplay function in the mat-autocomplete
461
468
  distinctUntilChanged(),
462
469
  tap(async value &#x3D;&gt; {
463
- await this.load(this.parameters);
464
- if (this.isValue?.(value)) {
470
+ await this.load(untracked(this.parameters));
471
+ if (this.resolvedIsValue()?.(value)) {
465
472
  this.triggerAutocompleteToDisplay();
466
473
  }
467
474
  }),
@@ -474,7 +481,7 @@ export class AutocompleteOptionsFromMethodDirective&lt;Value &#x3D; any, Paramet
474
481
  }
475
482
  const value &#x3D; this.control?.value;
476
483
  const c_parameters &#x3D; {...parameters};
477
- if (this.isValue?.(value)) {
484
+ if (this.resolvedIsValue()?.(value)) {
478
485
  return this.resolveValue(value, c_parameters);
479
486
  } else {
480
487
  c_parameters.search ??&#x3D; value;
@@ -487,14 +494,15 @@ export class AutocompleteOptionsFromMethodDirective&lt;Value &#x3D; any, Paramet
487
494
 
488
495
  protected override renderTemplate() {
489
496
  super.renderTemplate();
490
- if (this.matAutocomplete &amp;&amp; !this.isAutocompleteToDisplayTriggered) {
497
+ if (this.matAutocomplete() &amp;&amp; !this.isAutocompleteToDisplayTriggered) {
491
498
  this.isAutocompleteToDisplayTriggered &#x3D; true;
492
499
  this.triggerAutocompleteToDisplay();
493
500
  }
494
501
  }
495
502
 
496
503
  protected async resolveValue(value: Value, parameters: Parameters &#x3D; {} as Parameters) {
497
- if (!this.resolveMethod) {
504
+ const resolveMethod &#x3D; this.resolvedResolveMethod();
505
+ if (!resolveMethod) {
498
506
  if (isDevMode()) {
499
507
  console.warn(&#x27;The resolve method is not yet defined&#x27;);
500
508
  }
@@ -502,7 +510,7 @@ export class AutocompleteOptionsFromMethodDirective&lt;Value &#x3D; any, Paramet
502
510
  }
503
511
  // only resolve the value if the option is not already loaded
504
512
  if (!this.findOptionByValue(value)) {
505
- const option &#x3D; await this.resolveMethod!.call({...parameters, value});
513
+ const option &#x3D; await resolveMethod!.call({...parameters, value});
506
514
  if (option.value !&#x3D;&#x3D; value) {
507
515
  throw new Error(&#x27;The resolved value is not the same as the input value&#x27;);
508
516
  }