@rxap/form-system 21.0.1-dev.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 (358) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/compodoc/changelog.html +15 -0
  3. package/compodoc/classes/ExtractOptionsDataSourceMixin.html +24 -80
  4. package/compodoc/classes/ExtractRemoteMethodsMixin.html +36 -52
  5. package/compodoc/dependencies.html +11 -11
  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 +8836 -7240
  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 +5 -5
  77. package/docs/html/classes/SubmitContextFormAdapter.html +10 -10
  78. package/docs/html/classes/TestNgControl.html +4 -4
  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 -122
  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 +19 -31
  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 +13 -37
  174. package/docs/markdown/classes/InputSelectOptionsDirective.md +50 -75
  175. package/docs/markdown/classes/IsEqualToDirective.md +9 -19
  176. package/docs/markdown/classes/IsSelectableValueDirective.md +23 -47
  177. package/docs/markdown/classes/NoopResolveMethod.md +3 -3
  178. package/docs/markdown/classes/OptionsFromMethodDirective.md +140 -85
  179. package/docs/markdown/classes/OptionsFromRemoteMethodDirective.md +14 -67
  180. package/docs/markdown/classes/RxapFormSystemError.md +13 -13
  181. package/docs/markdown/classes/SubmitContextFormAdapter.md +32 -32
  182. package/docs/markdown/classes/TestNgControl.md +5 -5
  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 -121
  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 +18 -30
  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 +12 -36
  275. package/docs/wiki/Class.InputSelectOptionsDirective.md +49 -74
  276. package/docs/wiki/Class.IsEqualToDirective.md +8 -18
  277. package/docs/wiki/Class.IsSelectableValueDirective.md +22 -46
  278. package/docs/wiki/Class.NoopResolveMethod.md +2 -2
  279. package/docs/wiki/Class.OptionsFromMethodDirective.md +139 -84
  280. package/docs/wiki/Class.OptionsFromRemoteMethodDirective.md +13 -66
  281. package/docs/wiki/Class.RxapFormSystemError.md +12 -12
  282. package/docs/wiki/Class.SubmitContextFormAdapter.md +31 -31
  283. package/docs/wiki/Class.TestNgControl.md +4 -4
  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 +274 -420
  353. package/fesm2022/rxap-form-system.mjs.map +1 -1
  354. package/package.json +28 -28
  355. package/types/rxap-form-system.d.ts +90 -80
  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
@@ -139,15 +139,17 @@
139
139
  AfterViewInit,
140
140
  ChangeDetectorRef,
141
141
  Directive,
142
+ effect,
142
143
  inject,
143
144
  INJECTOR,
144
145
  Injector,
145
- Input,
146
- OnChanges,
146
+ input,
147
+ linkedSignal,
147
148
  OnDestroy,
149
+ Signal,
148
150
  signal,
149
- SimpleChanges,
150
151
  TemplateRef,
152
+ untracked,
151
153
  ViewContainerRef,
152
154
  } from '@angular/core';
153
155
  import {
@@ -181,22 +183,21 @@ export interface OptionsFromMethodTemplateContext {
181
183
  export interface OptionsFromMethodDirectiveSettings {
182
184
  }
183
185
 
184
- // eslient-disable-next-line @typescript-eslint/no-empty-interface
185
- export interface OptionsFromMethodDirective<Value = any, Parameters = any>
186
- extends AfterViewInit, OnChanges, ExtractOptionsMethodMixin {
186
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
187
+ export interface AbstractOptionsFromMethodDirective<Value = any, Parameters = any>
188
+ extends AfterViewInit, ExtractOptionsMethodMixin {
187
189
  }
188
190
 
191
+ /**
192
+ * Shared implementation of the options from method directives. The concrete directives
193
+ * only declare the (aliased) signal inputs.
194
+ */
189
195
  @Mixin(ExtractOptionsMethodMixin)
190
- @Directive({
191
- // eslint-disable-next-line @angular-eslint/directive-selector
192
- selector: '[rxapOptionsFromMethod]',
193
- standalone: true,
194
- exportAs: 'rxapOptionsFromMethod',
195
- })
196
- export class OptionsFromMethodDirective<Value = any, Parameters = any> implements AfterViewInit, OnChanges, OnDestroy {
196
+ @Directive()
197
+ export abstract class AbstractOptionsFromMethodDirective<Value = any, Parameters = any> implements AfterViewInit, OnDestroy {
197
198
 
198
199
  static ngTemplateContextGuard(
199
- dir: OptionsFromMethodDirective,
200
+ dir: AbstractOptionsFromMethodDirective,
200
201
  ctx: any,
201
202
  ): ctx is OptionsFromMethodTemplateContext {
202
203
  return true;
@@ -204,57 +205,58 @@ export class OptionsFromMethodDirective<Value = any, Parameters = a
204
205
 
205
206
  readonly loading = signal<boolean>(true);
206
207
 
207
- @Input('rxapOptionsFromMethodParameters')
208
- public parameters?: Parameters;
208
+ public abstract readonly parameters: Signal<Parameters | undefined>;
209
+
210
+ public abstract readonly resetOnChange: Signal<Value | undefined>;
209
211
 
210
- @Input('rxapOptionsFromMethodResetOnChange')
211
- public resetOnChange?: Value;
212
+ public abstract readonly method: Signal<OptionsMethod<ControlOptions<Value>, Parameters> | undefined>;
213
+
214
+ /**
215
+ * The method used to load the options. Defaults to the method defined with the input. If the
216
+ * input is not set the method is extracted from the form definition.
217
+ */
218
+ protected readonly optionsMethod = linkedSignal<OptionsMethod<ControlOptions<Value>, Parameters> | undefined>(() => this.method());
212
219
 
213
220
  public options: ControlOptions | null = null;
214
- // eslint-disable-next-line @angular-eslint/no-input-rename
215
- @Input('rxapOptionsFromMethodCall')
216
- public method!: OptionsMethod<ControlOptions<Value>, Parameters>;
217
221
  protected ngControl: NgControl | AbstractControlDirective | null = null;
218
222
  protected matFormField: MatFormField | null = null;
219
223
  protected settings: OptionsFromMethodDirectiveSettings = {};
220
224
  protected readonly viewContainerRef: ViewContainerRef = inject(ViewContainerRef);
221
- protected readonly injector: Injector = inject(INJECTOR);
225
+ protected injector: Injector = inject(INJECTOR);
222
226
  protected readonly cdr: ChangeDetectorRef = inject(ChangeDetectorRef);
223
227
  private readonly template: TemplateRef<OptionsFromMethodTemplateContext> = inject(TemplateRef);
224
228
 
229
+ protected readonly initialized = signal(false);
230
+
225
231
  protected _loadOptionsSubscription?: Subscription;
226
232
 
227
- public async ngAfterViewInit() {
233
+ constructor() {
234
+ // load the options as soon as the directive is initialized and each time the parameters change
235
+ effect(() => {
236
+ const parameters = this.parameters();
237
+ if (!this.initialized()) {
238
+ return;
239
+ }
240
+ untracked(() => this.load(parameters));
241
+ });
242
+ }
243
+
244
+ public ngAfterViewInit() {
228
245
  this.matFormField = this.injector.get(MatFormField, null);
229
246
  this.ngControl = this.matFormField?._control.ngControl ?? this.injector.get(NgControl, null);
230
247
  this.control = (this.ngControl?.control as RxapFormControl) ?? undefined;
231
- this.method ??= this.extractOptionsMethod();
232
- // ensure that the options are loaded. It is possible that the ngOnChange is triggered before the ngAfterViewInit
233
- // then the options are not loaded.
234
- if (!this.options) {
235
- await this.load(this.parameters);
248
+ if (!this.optionsMethod()) {
249
+ this.optionsMethod.set(this.extractOptionsMethod());
236
250
  }
251
+ this.initialized.set(true);
237
252
  }
238
253
 
239
254
  ngOnDestroy() {
240
255
  this._loadOptionsSubscription?.unsubscribe();
241
256
  }
242
257
 
243
- public async ngOnChanges(changes: SimpleChanges) {
244
- // only try to load the options if the method is defined
245
- // else the initial load will be triggered in the ngAfterViewInit
246
- if (!this.method) {
247
- console.debug('The method is not yet defined');
248
- return;
249
- }
250
- const parametersChanges = changes['parameters'];
251
- if (parametersChanges) {
252
- await this.load(parametersChanges.currentValue);
253
- }
254
- }
255
-
256
258
  protected async loadOptions(parameters?: Parameters): Promise<Observable<ControlOptions | null> | ControlOptions | null> {
257
- return this.method.call(parameters, this.control);
259
+ return this.optionsMethod()!.call(parameters, this.control);
258
260
  }
259
261
 
260
262
  protected renderTemplate() {
@@ -269,8 +271,9 @@ export class OptionsFromMethodDirective<Value = any, Parameters = a
269
271
  this.viewContainerRef.createEmbeddedView(this.template, {$implicit: option});
270
272
  }
271
273
 
272
- if (this.resetOnChange !== undefined) {
273
- this.control?.reset(this.resetOnChange);
274
+ const resetOnChange = untracked(this.resetOnChange);
275
+ if (resetOnChange !== undefined) {
276
+ this.control?.reset(resetOnChange);
274
277
  }
275
278
 
276
279
  this.cdr.detectChanges();
@@ -287,7 +290,7 @@ export class OptionsFromMethodDirective<Value = any, Parameters = a
287
290
  }
288
291
  }
289
292
 
290
- public async load(parameters: Parameters | undefined = this.parameters) {
293
+ public async load(parameters: Parameters | undefined = untracked(this.parameters)) {
291
294
  this.loading.set(true);
292
295
  try {
293
296
  const result = await this.loadOptions(parameters);
@@ -306,7 +309,22 @@ export class OptionsFromMethodDirective<Value = any, Parameters = a
306
309
 
307
310
  }
308
311
 
312
+ @Directive({
313
+ // eslint-disable-next-line @angular-eslint/directive-selector
314
+ selector: '[rxapOptionsFromMethod]',
315
+ standalone: true,
316
+ exportAs: 'rxapOptionsFromMethod',
317
+ })
318
+ export class OptionsFromMethodDirective<Value = any, Parameters = any> extends AbstractOptionsFromMethodDirective<Value, Parameters> {
319
+
320
+ public readonly parameters = input<Parameters | undefined>(undefined, { alias: 'rxapOptionsFromMethodParameters' });
321
+
322
+ public readonly resetOnChange = input<Value | undefined>(undefined, { alias: 'rxapOptionsFromMethodResetOnChange' });
309
323
 
324
+ // eslint-disable-next-line @angular-eslint/no-input-rename
325
+ public readonly method = input<OptionsMethod<ControlOptions<Value>, Parameters> | undefined>(undefined, { alias: 'rxapOptionsFromMethodCall' });
326
+
327
+ }
310
328
  </code></pre>
311
329
  </div>
312
330
  </div>
@@ -199,15 +199,17 @@
199
199
  AfterViewInit,
200
200
  ChangeDetectorRef,
201
201
  Directive,
202
+ effect,
202
203
  inject,
203
204
  INJECTOR,
204
205
  Injector,
205
- Input,
206
- OnChanges,
206
+ input,
207
+ linkedSignal,
207
208
  OnDestroy,
209
+ Signal,
208
210
  signal,
209
- SimpleChanges,
210
211
  TemplateRef,
212
+ untracked,
211
213
  ViewContainerRef,
212
214
  } from &#x27;@angular/core&#x27;;
213
215
  import {
@@ -241,22 +243,21 @@ export interface OptionsFromMethodTemplateContext {
241
243
  export interface OptionsFromMethodDirectiveSettings {
242
244
  }
243
245
 
244
- // eslient-disable-next-line @typescript-eslint/no-empty-interface
245
- export interface OptionsFromMethodDirective&lt;Value &#x3D; any, Parameters &#x3D; any&gt;
246
- extends AfterViewInit, OnChanges, ExtractOptionsMethodMixin {
246
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
247
+ export interface AbstractOptionsFromMethodDirective&lt;Value &#x3D; any, Parameters &#x3D; any&gt;
248
+ extends AfterViewInit, ExtractOptionsMethodMixin {
247
249
  }
248
250
 
251
+ /**
252
+ * Shared implementation of the options from method directives. The concrete directives
253
+ * only declare the (aliased) signal inputs.
254
+ */
249
255
  @Mixin(ExtractOptionsMethodMixin)
250
- @Directive({
251
- // eslint-disable-next-line @angular-eslint/directive-selector
252
- selector: &#x27;[rxapOptionsFromMethod]&#x27;,
253
- standalone: true,
254
- exportAs: &#x27;rxapOptionsFromMethod&#x27;,
255
- })
256
- export class OptionsFromMethodDirective&lt;Value &#x3D; any, Parameters &#x3D; any&gt; implements AfterViewInit, OnChanges, OnDestroy {
256
+ @Directive()
257
+ export abstract class AbstractOptionsFromMethodDirective&lt;Value &#x3D; any, Parameters &#x3D; any&gt; implements AfterViewInit, OnDestroy {
257
258
 
258
259
  static ngTemplateContextGuard(
259
- dir: OptionsFromMethodDirective,
260
+ dir: AbstractOptionsFromMethodDirective,
260
261
  ctx: any,
261
262
  ): ctx is OptionsFromMethodTemplateContext {
262
263
  return true;
@@ -264,57 +265,58 @@ export class OptionsFromMethodDirective&lt;Value &#x3D; any, Parameters &#x3D; a
264
265
 
265
266
  readonly loading &#x3D; signal&lt;boolean&gt;(true);
266
267
 
267
- @Input(&#x27;rxapOptionsFromMethodParameters&#x27;)
268
- public parameters?: Parameters;
268
+ public abstract readonly parameters: Signal&lt;Parameters | undefined&gt;;
269
+
270
+ public abstract readonly resetOnChange: Signal&lt;Value | undefined&gt;;
269
271
 
270
- @Input(&#x27;rxapOptionsFromMethodResetOnChange&#x27;)
271
- public resetOnChange?: Value;
272
+ public abstract readonly method: Signal&lt;OptionsMethod&lt;ControlOptions&lt;Value&gt;, Parameters&gt; | undefined&gt;;
273
+
274
+ /**
275
+ * The method used to load the options. Defaults to the method defined with the input. If the
276
+ * input is not set the method is extracted from the form definition.
277
+ */
278
+ protected readonly optionsMethod &#x3D; linkedSignal&lt;OptionsMethod&lt;ControlOptions&lt;Value&gt;, Parameters&gt; | undefined&gt;(() &#x3D;&gt; this.method());
272
279
 
273
280
  public options: ControlOptions | null &#x3D; null;
274
- // eslint-disable-next-line @angular-eslint/no-input-rename
275
- @Input(&#x27;rxapOptionsFromMethodCall&#x27;)
276
- public method!: OptionsMethod&lt;ControlOptions&lt;Value&gt;, Parameters&gt;;
277
281
  protected ngControl: NgControl | AbstractControlDirective | null &#x3D; null;
278
282
  protected matFormField: MatFormField | null &#x3D; null;
279
283
  protected settings: OptionsFromMethodDirectiveSettings &#x3D; {};
280
284
  protected readonly viewContainerRef: ViewContainerRef &#x3D; inject(ViewContainerRef);
281
- protected readonly injector: Injector &#x3D; inject(INJECTOR);
285
+ protected injector: Injector &#x3D; inject(INJECTOR);
282
286
  protected readonly cdr: ChangeDetectorRef &#x3D; inject(ChangeDetectorRef);
283
287
  private readonly template: TemplateRef&lt;OptionsFromMethodTemplateContext&gt; &#x3D; inject(TemplateRef);
284
288
 
289
+ protected readonly initialized &#x3D; signal(false);
290
+
285
291
  protected _loadOptionsSubscription?: Subscription;
286
292
 
287
- public async ngAfterViewInit() {
293
+ constructor() {
294
+ // load the options as soon as the directive is initialized and each time the parameters change
295
+ effect(() &#x3D;&gt; {
296
+ const parameters &#x3D; this.parameters();
297
+ if (!this.initialized()) {
298
+ return;
299
+ }
300
+ untracked(() &#x3D;&gt; this.load(parameters));
301
+ });
302
+ }
303
+
304
+ public ngAfterViewInit() {
288
305
  this.matFormField &#x3D; this.injector.get(MatFormField, null);
289
306
  this.ngControl &#x3D; this.matFormField?._control.ngControl ?? this.injector.get(NgControl, null);
290
307
  this.control &#x3D; (this.ngControl?.control as RxapFormControl) ?? undefined;
291
- this.method ??&#x3D; this.extractOptionsMethod();
292
- // ensure that the options are loaded. It is possible that the ngOnChange is triggered before the ngAfterViewInit
293
- // then the options are not loaded.
294
- if (!this.options) {
295
- await this.load(this.parameters);
308
+ if (!this.optionsMethod()) {
309
+ this.optionsMethod.set(this.extractOptionsMethod());
296
310
  }
311
+ this.initialized.set(true);
297
312
  }
298
313
 
299
314
  ngOnDestroy() {
300
315
  this._loadOptionsSubscription?.unsubscribe();
301
316
  }
302
317
 
303
- public async ngOnChanges(changes: SimpleChanges) {
304
- // only try to load the options if the method is defined
305
- // else the initial load will be triggered in the ngAfterViewInit
306
- if (!this.method) {
307
- console.debug(&#x27;The method is not yet defined&#x27;);
308
- return;
309
- }
310
- const parametersChanges &#x3D; changes[&#x27;parameters&#x27;];
311
- if (parametersChanges) {
312
- await this.load(parametersChanges.currentValue);
313
- }
314
- }
315
-
316
318
  protected async loadOptions(parameters?: Parameters): Promise&lt;Observable&lt;ControlOptions | null&gt; | ControlOptions | null&gt; {
317
- return this.method.call(parameters, this.control);
319
+ return this.optionsMethod()!.call(parameters, this.control);
318
320
  }
319
321
 
320
322
  protected renderTemplate() {
@@ -329,8 +331,9 @@ export class OptionsFromMethodDirective&lt;Value &#x3D; any, Parameters &#x3D; a
329
331
  this.viewContainerRef.createEmbeddedView(this.template, {$implicit: option});
330
332
  }
331
333
 
332
- if (this.resetOnChange !&#x3D;&#x3D; undefined) {
333
- this.control?.reset(this.resetOnChange);
334
+ const resetOnChange &#x3D; untracked(this.resetOnChange);
335
+ if (resetOnChange !&#x3D;&#x3D; undefined) {
336
+ this.control?.reset(resetOnChange);
334
337
  }
335
338
 
336
339
  this.cdr.detectChanges();
@@ -347,7 +350,7 @@ export class OptionsFromMethodDirective&lt;Value &#x3D; any, Parameters &#x3D; a
347
350
  }
348
351
  }
349
352
 
350
- public async load(parameters: Parameters | undefined &#x3D; this.parameters) {
353
+ public async load(parameters: Parameters | undefined &#x3D; untracked(this.parameters)) {
351
354
  this.loading.set(true);
352
355
  try {
353
356
  const result &#x3D; await this.loadOptions(parameters);
@@ -366,7 +369,22 @@ export class OptionsFromMethodDirective&lt;Value &#x3D; any, Parameters &#x3D; a
366
369
 
367
370
  }
368
371
 
372
+ @Directive({
373
+ // eslint-disable-next-line @angular-eslint/directive-selector
374
+ selector: &#x27;[rxapOptionsFromMethod]&#x27;,
375
+ standalone: true,
376
+ exportAs: &#x27;rxapOptionsFromMethod&#x27;,
377
+ })
378
+ export class OptionsFromMethodDirective&lt;Value &#x3D; any, Parameters &#x3D; any&gt; extends AbstractOptionsFromMethodDirective&lt;Value, Parameters&gt; {
379
+
380
+ public readonly parameters &#x3D; input&lt;Parameters | undefined&gt;(undefined, { alias: &#x27;rxapOptionsFromMethodParameters&#x27; });
381
+
382
+ public readonly resetOnChange &#x3D; input&lt;Value | undefined&gt;(undefined, { alias: &#x27;rxapOptionsFromMethodResetOnChange&#x27; });
369
383
 
384
+ // eslint-disable-next-line @angular-eslint/no-input-rename
385
+ public readonly method &#x3D; input&lt;OptionsMethod&lt;ControlOptions&lt;Value&gt;, Parameters&gt; | undefined&gt;(undefined, { alias: &#x27;rxapOptionsFromMethodCall&#x27; });
386
+
387
+ }
370
388
  </code></pre>
371
389
  </div>
372
390
  </div>
@@ -195,19 +195,7 @@
195
195
 
196
196
 
197
197
  <div class="tab-pane fade tab-source-code" id="source">
198
- <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
199
- ChangeDetectorRef,
200
- Directive,
201
- Inject,
202
- INJECTOR,
203
- Injector,
204
- Input,
205
- OnChanges,
206
- OnInit,
207
- SimpleChanges,
208
- TemplateRef,
209
- ViewContainerRef,
210
- } from &#x27;@angular/core&#x27;;
198
+ <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { ChangeDetectorRef, Directive, effect, inject, INJECTOR, Injector, input, OnInit, TemplateRef, untracked, ViewContainerRef } from &#x27;@angular/core&#x27;;
211
199
  import {
212
200
  Constructor,
213
201
  ControlOption,
@@ -291,49 +279,44 @@ export interface OptionsFromRemoteMethodDirective&lt;Value, Parameters&gt; exten
291
279
  selector: &#x27;[rxapOptionsFromRemoteMethod]&#x27;,
292
280
  standalone: true,
293
281
  })
294
- export class OptionsFromRemoteMethodDirective&lt;Value, Parameters&gt; implements OnChanges {
282
+ export class OptionsFromRemoteMethodDirective&lt;Value, Parameters&gt; {
283
+ private readonly ngControl &#x3D; inject&lt;NgControl&gt;(NgControl);
284
+ private readonly template &#x3D; inject&lt;TemplateRef&lt;OptionsFromRemoteMethodTemplateContext&gt;&gt;(TemplateRef);
285
+ private readonly remoteMethodLoader &#x3D; inject&lt;RemoteMethodLoader&gt;(RemoteMethodLoader);
286
+ private readonly viewContainerRef &#x3D; inject&lt;ViewContainerRef&gt;(ViewContainerRef);
287
+ private readonly injector &#x3D; inject&lt;Injector&gt;(INJECTOR);
288
+ private readonly cdr &#x3D; inject&lt;ChangeDetectorRef&gt;(ChangeDetectorRef);
295
289
 
296
- @Input(&#x27;rxapOptionsFromRemoteMethodParameters&#x27;)
297
- public parameters?: Parameters;
298
290
 
299
- @Input(&#x27;rxapOptionsFromRemoteMethodResetOnChange&#x27;)
300
- public resetOnChange?: Value;
291
+ public readonly parameters &#x3D; input&lt;Parameters&gt;(undefined, { alias: &quot;rxapOptionsFromRemoteMethodParameters&quot; });
301
292
 
302
- @Input(&#x27;rxapOptionsFromRemoteMethodWithoutParameters&#x27;)
303
- public withoutParameters &#x3D; false;
293
+ public readonly resetOnChange &#x3D; input&lt;Value&gt;(undefined, { alias: &quot;rxapOptionsFromRemoteMethodResetOnChange&quot; });
304
294
 
305
- private remoteMethodToken!: IdOrInstanceOrToken&lt;BaseRemoteMethod&gt;;
295
+ public readonly withoutParameters &#x3D; input(false, { alias: &quot;rxapOptionsFromRemoteMethodWithoutParameters&quot; });
306
296
 
307
- constructor(
308
- @Inject(NgControl)
309
- private readonly ngControl: NgControl,
310
- @Inject(TemplateRef)
311
- private readonly template: TemplateRef&lt;OptionsFromRemoteMethodTemplateContext&gt;,
312
- @Inject(RemoteMethodLoader)
313
- private readonly remoteMethodLoader: RemoteMethodLoader,
314
- @Inject(ViewContainerRef)
315
- private readonly viewContainerRef: ViewContainerRef,
316
- @Inject(INJECTOR)
317
- private readonly injector: Injector,
318
- @Inject(ChangeDetectorRef)
319
- private readonly cdr: ChangeDetectorRef,
320
- ) {
321
- }
297
+ private remoteMethodToken!: IdOrInstanceOrToken&lt;BaseRemoteMethod&gt;;
322
298
 
323
- public ngOnChanges(changes: SimpleChanges) {
324
- const parametersChanges &#x3D; changes[&#x27;parameters&#x27;];
325
- if (parametersChanges) {
326
- if (!this.remoteMethodToken) {
327
- this.remoteMethodToken &#x3D; this.extractRemoteMethodToken();
299
+ constructor() {
300
+ effect(() &#x3D;&gt; {
301
+ const parameters &#x3D; this.parameters();
302
+ // the parameters are only relevant if the input is bound
303
+ if (parameters &#x3D;&#x3D;&#x3D; undefined) {
304
+ return;
328
305
  }
329
- this.renderTemplate(parametersChanges.currentValue);
330
- }
331
- if (changes[&#x27;withoutParameters&#x27;]?.currentValue) {
332
- if (!this.remoteMethodToken) {
333
- this.remoteMethodToken &#x3D; this.extractRemoteMethodToken();
306
+ untracked(() &#x3D;&gt; {
307
+ this.remoteMethodToken ??&#x3D; this.extractRemoteMethodToken();
308
+ return this.renderTemplate(parameters);
309
+ });
310
+ });
311
+ effect(() &#x3D;&gt; {
312
+ if (!this.withoutParameters()) {
313
+ return;
334
314
  }
335
- this.renderTemplate();
336
- }
315
+ untracked(() &#x3D;&gt; {
316
+ this.remoteMethodToken ??&#x3D; this.extractRemoteMethodToken();
317
+ return this.renderTemplate();
318
+ });
319
+ });
337
320
  }
338
321
 
339
322
  private extractRemoteMethodToken() {
@@ -364,8 +347,9 @@ export class OptionsFromRemoteMethodDirective&lt;Value, Parameters&gt; implement
364
347
  this.viewContainerRef.createEmbeddedView(this.template, { $implicit: option });
365
348
  }
366
349
 
367
- if (this.resetOnChange !&#x3D;&#x3D; undefined) {
368
- this.ngControl.reset(this.resetOnChange);
350
+ const resetOnChange &#x3D; untracked(this.resetOnChange);
351
+ if (resetOnChange !&#x3D;&#x3D; undefined) {
352
+ this.ngControl.reset(resetOnChange);
369
353
  }
370
354
 
371
355
  this.cdr.detectChanges();
@@ -54,38 +54,6 @@ customElements.define('compodoc-menu', class extends HTMLElement {
54
54
  </a>
55
55
  </li>
56
56
  </ul>
57
- </li>
58
- <li class="chapter modules">
59
- <a data-type="chapter-link" href="modules.html">
60
- <div class="menu-toggler linked" data-bs-toggle="collapse" ${ isNormalMode ?
61
- 'data-bs-target="#modules-links"' : 'data-bs-target="#xs-modules-links"' }>
62
- <span class="icon ion-ios-archive"></span>
63
- <span class="link-name">Modules</span>
64
- <span class="icon ion-ios-arrow-down"></span>
65
- </div>
66
- </a>
67
- <ul class="links collapse " ${ isNormalMode ? 'id="modules-links"' : 'id="xs-modules-links"' }>
68
- <li class="link">
69
- <a href="modules/FormSystemDirectivesModule.html" data-type="entity-link" >FormSystemDirectivesModule</a>
70
- <li class="chapter inner">
71
- <div class="simple menu-toggler" data-bs-toggle="collapse" ${ isNormalMode ?
72
- 'data-bs-target="#directives-links-module-FormSystemDirectivesModule-dfe4b4d7512f0ed4b4b8d032f9210d6e179abee53a24a961785fe0738b9e5eff63690e94bff12a1ebc9fdcbe03ee6681d3ba3919691a239f4ca0a6b017050de1"' : 'data-bs-target="#xs-directives-links-module-FormSystemDirectivesModule-dfe4b4d7512f0ed4b4b8d032f9210d6e179abee53a24a961785fe0738b9e5eff63690e94bff12a1ebc9fdcbe03ee6681d3ba3919691a239f4ca0a6b017050de1"' }>
73
- <span class="icon ion-md-code-working"></span>
74
- <span>Directives</span>
75
- <span class="icon ion-ios-arrow-down"></span>
76
- </div>
77
- <ul class="links collapse" ${ isNormalMode ? 'id="directives-links-module-FormSystemDirectivesModule-dfe4b4d7512f0ed4b4b8d032f9210d6e179abee53a24a961785fe0738b9e5eff63690e94bff12a1ebc9fdcbe03ee6681d3ba3919691a239f4ca0a6b017050de1"' :
78
- 'id="xs-directives-links-module-FormSystemDirectivesModule-dfe4b4d7512f0ed4b4b8d032f9210d6e179abee53a24a961785fe0738b9e5eff63690e94bff12a1ebc9fdcbe03ee6681d3ba3919691a239f4ca0a6b017050de1"' }>
79
- <li class="link">
80
- <a href="directives/ControlHideShowDirective.html" data-type="entity-link" data-context="sub-entity" data-context-id="modules" >ControlHideShowDirective</a>
81
- </li>
82
- <li class="link">
83
- <a href="directives/InputSelectOptionsDirective.html" data-type="entity-link" data-context="sub-entity" data-context-id="modules" >InputSelectOptionsDirective</a>
84
- </li>
85
- </ul>
86
- </li>
87
- </li>
88
- </ul>
89
57
  </li>
90
58
  <li class="chapter">
91
59
  <div class="simple menu-toggler" data-bs-toggle="collapse" ${ isNormalMode ? 'data-bs-target="#directives-links"' :
@@ -95,6 +63,9 @@ customElements.define('compodoc-menu', class extends HTMLElement {
95
63
  <span class="icon ion-ios-arrow-down"></span>
96
64
  </div>
97
65
  <ul class="links collapse " ${ isNormalMode ? 'id="directives-links"' : 'id="xs-directives-links"' }>
66
+ <li class="link">
67
+ <a href="directives/AbstractOptionsFromMethodDirective.html" data-type="entity-link" >AbstractOptionsFromMethodDirective</a>
68
+ </li>
98
69
  <li class="link">
99
70
  <a href="directives/AutocompleteOptionsFromMethodDirective.html" data-type="entity-link" >AutocompleteOptionsFromMethodDirective</a>
100
71
  </li>