@rxap/form-system 19.1.0-dev.0 → 19.1.0-dev.2

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 (332) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/compodoc/changelog.html +10 -0
  3. package/compodoc/classes/ExtractOptionsMethodMixin.html +6 -3
  4. package/compodoc/dependencies.html +5 -5
  5. package/compodoc/directives/AutocompleteOptionsFromMethodDirective.html +47 -35
  6. package/compodoc/directives/OptionsFromMethodDirective.html +124 -30
  7. package/compodoc/injectables/NoopResolveMethod.html +29 -17
  8. package/compodoc/interfaces/AutocompleteOptionsFromMethodDirectiveParameters.html +27 -15
  9. package/compodoc/interfaces/AutocompleteOptionsFromMethodDirectiveSettings.html +27 -15
  10. package/compodoc/interfaces/AutocompleteOptionsFromRemoteMethodTemplateContext.html +27 -15
  11. package/compodoc/interfaces/OptionsFromMethodDirectiveSettings.html +38 -8
  12. package/compodoc/interfaces/OptionsFromMethodTemplateContext.html +38 -8
  13. package/compodoc/js/search/search_index.js +2 -2
  14. package/compodoc/miscellaneous/typealiases.html +21 -0
  15. package/compodoc/properties.html +1 -1
  16. package/docs/documentation.json +3917 -3549
  17. package/docs/html/assets/hierarchy.js +1 -1
  18. package/docs/html/assets/navigation.js +1 -1
  19. package/docs/html/assets/search.js +1 -1
  20. package/docs/html/classes/AutocompleteOptionsFromMethodDirective.html +8 -6
  21. package/docs/html/classes/ControlDataSource.html +13 -13
  22. package/docs/html/classes/ControlHideShowDirective.html +4 -4
  23. package/docs/html/classes/ExtractControlFromParentMixin.html +2 -2
  24. package/docs/html/classes/ExtractControlMixin.html +2 -2
  25. package/docs/html/classes/ExtractDataSourcesMixin.html +2 -2
  26. package/docs/html/classes/ExtractFormDefinitionMixin.html +2 -2
  27. package/docs/html/classes/ExtractFunctionMixin.html +2 -2
  28. package/docs/html/classes/ExtractFunctionsMixin.html +2 -2
  29. package/docs/html/classes/ExtractIsValueFunctionMixin.html +2 -2
  30. package/docs/html/classes/ExtractMethodMixin.html +2 -2
  31. package/docs/html/classes/ExtractMethodsMixin.html +2 -2
  32. package/docs/html/classes/ExtractOptionsDataSourceMixin.html +2 -2
  33. package/docs/html/classes/ExtractOptionsMethodMixin.html +2 -2
  34. package/docs/html/classes/ExtractRemoteMethodsMixin.html +2 -2
  35. package/docs/html/classes/ExtractResolveMethodMixin.html +2 -2
  36. package/docs/html/classes/ExtractToDisplayFunctionMixin.html +2 -2
  37. package/docs/html/classes/ForFormArrayItemsDirective.html +4 -4
  38. package/docs/html/classes/FormArrayAddItemButtonDirective.html +4 -4
  39. package/docs/html/classes/FormArrayItemButton.html +4 -4
  40. package/docs/html/classes/FormArrayItemRemoveButtonDirective.html +5 -5
  41. package/docs/html/classes/FormArrayItemRestoreButtonDirective.html +4 -4
  42. package/docs/html/classes/FormArrayRemovableDirective.html +4 -4
  43. package/docs/html/classes/FormSystemControlDirective.html +8 -8
  44. package/docs/html/classes/FormSystemDirectivesModule.html +2 -2
  45. package/docs/html/classes/InputSelectOptionsDirective.html +4 -4
  46. package/docs/html/classes/IsEqualToDirective.html +4 -4
  47. package/docs/html/classes/IsSelectableValueDirective.html +3 -3
  48. package/docs/html/classes/NoopResolveMethod.html +2 -2
  49. package/docs/html/classes/OptionsFromMethodDirective.html +10 -5
  50. package/docs/html/classes/OptionsFromRemoteMethodDirective.html +4 -4
  51. package/docs/html/classes/RxapFormSystemError.html +5 -5
  52. package/docs/html/classes/SubmitContextFormAdapter.html +10 -10
  53. package/docs/html/classes/TestNgControl.html +4 -4
  54. package/docs/html/enums/FormSystemMetadataKeys.html +2 -2
  55. package/docs/html/functions/ApplyUseFunctionAdapters.html +1 -1
  56. package/docs/html/functions/ApplyUseMethodAdapters.html +1 -1
  57. package/docs/html/functions/ComposeOptionsTransformers.html +1 -1
  58. package/docs/html/functions/FormContextFromActivatedRouteFactory.html +1 -1
  59. package/docs/html/functions/ResolveByUuidParameter.html +1 -1
  60. package/docs/html/functions/ResolveByUuidResultFactory.html +1 -1
  61. package/docs/html/functions/SubmitContextFormAdapterFactory.html +1 -1
  62. package/docs/html/functions/UseAutocompleteIsValueFunction.html +1 -1
  63. package/docs/html/functions/UseAutocompleteOptionsMethod.html +1 -1
  64. package/docs/html/functions/UseAutocompleteResolveMethod.html +1 -1
  65. package/docs/html/functions/UseAutocompleteToDisplayFunction.html +1 -1
  66. package/docs/html/functions/UseComponent.html +1 -1
  67. package/docs/html/functions/UseDataSource.html +1 -1
  68. package/docs/html/functions/UseFormComponent.html +2 -2
  69. package/docs/html/functions/UseFunction.html +1 -1
  70. package/docs/html/functions/UseHideFunction.html +1 -1
  71. package/docs/html/functions/UseIsValueFunction.html +1 -1
  72. package/docs/html/functions/UseMethod.html +1 -1
  73. package/docs/html/functions/UseOptionsDataSource.html +1 -1
  74. package/docs/html/functions/UseOptionsMethod.html +1 -1
  75. package/docs/html/functions/UseOptionsRemoteMethod.html +1 -1
  76. package/docs/html/functions/UseRemoteMethod.html +1 -1
  77. package/docs/html/functions/UseResolveMethod.html +1 -1
  78. package/docs/html/functions/UseShowFunction.html +1 -1
  79. package/docs/html/functions/UseToDisplayFunction.html +1 -1
  80. package/docs/html/functions/controlDataSource-1.html +1 -1
  81. package/docs/html/hierarchy.html +1 -1
  82. package/docs/html/index.html +2 -2
  83. package/docs/html/interfaces/AutocompleteOptionsFromMethodDirectiveParameters.html +2 -2
  84. package/docs/html/interfaces/AutocompleteOptionsFromMethodDirectiveSettings.html +2 -2
  85. package/docs/html/interfaces/AutocompleteOptionsFromRemoteMethodTemplateContext.html +2 -2
  86. package/docs/html/interfaces/ControlHideShowOptions.html +2 -2
  87. package/docs/html/interfaces/ControlWithDataSource.html +2 -2
  88. package/docs/html/interfaces/ForFormArrayItemsDirectiveContext.html +2 -2
  89. package/docs/html/interfaces/InputSelectOptionsSettings.html +4 -4
  90. package/docs/html/interfaces/InputSelectOptionsTemplateContext.html +2 -2
  91. package/docs/html/interfaces/OptionsFromMethodDirectiveSettings.html +1 -1
  92. package/docs/html/interfaces/OptionsFromMethodTemplateContext.html +2 -2
  93. package/docs/html/interfaces/OptionsFromRemoteMethodTemplateContext.html +2 -2
  94. package/docs/html/interfaces/UseDataSourceSettings.html +2 -2
  95. package/docs/html/interfaces/UseDataSourceValue.html +3 -3
  96. package/docs/html/interfaces/UseFunctionConfig.html +2 -2
  97. package/docs/html/interfaces/UseFunctionDefinition.html +2 -2
  98. package/docs/html/interfaces/UseMethodConfig.html +2 -2
  99. package/docs/html/interfaces/UseMethodDefinition.html +2 -2
  100. package/docs/html/modules.html +1 -1
  101. package/docs/html/types/ControlHideShowFunction.html +1 -1
  102. package/docs/html/types/FunctionParameterAdapterFunction.html +1 -1
  103. package/docs/html/types/FunctionResultAdapterFunction.html +1 -1
  104. package/docs/html/types/MethodParameterAdapterFunction.html +1 -1
  105. package/docs/html/types/MethodResultAdapterFunction.html +1 -1
  106. package/docs/html/types/OptionsMethod.html +1 -0
  107. package/docs/html/types/UseFunctionType.html +1 -1
  108. package/docs/html/types/UseOptionsDataSourceSettings.html +1 -1
  109. package/docs/html/variables/DATA_SOURCE_NAME.html +1 -1
  110. package/docs/html/variables/IS_VALUE_FUNCTION_NAME.html +1 -1
  111. package/docs/html/variables/OPTIONS_METHOD_NAME.html +1 -1
  112. package/docs/html/variables/REMOTE_METHOD_NAME.html +1 -1
  113. package/docs/html/variables/RESOLVE_METHOD_NAME.html +1 -1
  114. package/docs/html/variables/RXAP_FORM_CONTROL_SOURCE.html +1 -1
  115. package/docs/html/variables/RXAP_FORM_SYSTEM_HIDE_METADATA.html +1 -1
  116. package/docs/html/variables/RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS.html +1 -1
  117. package/docs/html/variables/RXAP_FORM_SYSTEM_SHOW_METADATA.html +1 -1
  118. package/docs/html/variables/RXAP_USE_FUNCTION.html +1 -1
  119. package/docs/html/variables/RXAP_USE_METHOD.html +1 -1
  120. package/docs/html/variables/RXAP_USE_REMOTE_METHOD.html +1 -1
  121. package/docs/html/variables/SUBMIT_CONTEXT_FORM_ADAPTER_METHOD.html +1 -1
  122. package/docs/html/variables/TO_DISPLAY_FUNCTION_NAME.html +1 -1
  123. package/docs/markdown/README.md +1 -1
  124. package/docs/markdown/classes/AutocompleteOptionsFromMethodDirective.md +63 -39
  125. package/docs/markdown/classes/ControlDataSource.md +51 -51
  126. package/docs/markdown/classes/ControlHideShowDirective.md +9 -9
  127. package/docs/markdown/classes/ExtractControlFromParentMixin.md +3 -3
  128. package/docs/markdown/classes/ExtractControlMixin.md +6 -6
  129. package/docs/markdown/classes/ExtractDataSourcesMixin.md +3 -3
  130. package/docs/markdown/classes/ExtractFormDefinitionMixin.md +3 -3
  131. package/docs/markdown/classes/ExtractFunctionMixin.md +5 -5
  132. package/docs/markdown/classes/ExtractFunctionsMixin.md +3 -3
  133. package/docs/markdown/classes/ExtractIsValueFunctionMixin.md +11 -11
  134. package/docs/markdown/classes/ExtractMethodMixin.md +5 -5
  135. package/docs/markdown/classes/ExtractMethodsMixin.md +3 -3
  136. package/docs/markdown/classes/ExtractOptionsDataSourceMixin.md +16 -16
  137. package/docs/markdown/classes/ExtractOptionsMethodMixin.md +11 -11
  138. package/docs/markdown/classes/ExtractRemoteMethodsMixin.md +3 -3
  139. package/docs/markdown/classes/ExtractResolveMethodMixin.md +11 -11
  140. package/docs/markdown/classes/ExtractToDisplayFunctionMixin.md +11 -11
  141. package/docs/markdown/classes/ForFormArrayItemsDirective.md +5 -5
  142. package/docs/markdown/classes/FormArrayAddItemButtonDirective.md +12 -12
  143. package/docs/markdown/classes/FormArrayItemButton.md +19 -19
  144. package/docs/markdown/classes/FormArrayItemRemoveButtonDirective.md +20 -20
  145. package/docs/markdown/classes/FormArrayItemRestoreButtonDirective.md +19 -19
  146. package/docs/markdown/classes/FormArrayRemovableDirective.md +10 -10
  147. package/docs/markdown/classes/FormSystemControlDirective.md +12 -12
  148. package/docs/markdown/classes/FormSystemDirectivesModule.md +2 -2
  149. package/docs/markdown/classes/InputSelectOptionsDirective.md +27 -27
  150. package/docs/markdown/classes/IsEqualToDirective.md +5 -5
  151. package/docs/markdown/classes/IsSelectableValueDirective.md +18 -18
  152. package/docs/markdown/classes/NoopResolveMethod.md +3 -3
  153. package/docs/markdown/classes/OptionsFromMethodDirective.md +60 -28
  154. package/docs/markdown/classes/OptionsFromRemoteMethodDirective.md +9 -9
  155. package/docs/markdown/classes/RxapFormSystemError.md +13 -13
  156. package/docs/markdown/classes/SubmitContextFormAdapter.md +32 -32
  157. package/docs/markdown/classes/TestNgControl.md +5 -5
  158. package/docs/markdown/enumerations/FormSystemMetadataKeys.md +6 -6
  159. package/docs/markdown/functions/ApplyUseFunctionAdapters.md +2 -2
  160. package/docs/markdown/functions/ApplyUseMethodAdapters.md +2 -2
  161. package/docs/markdown/functions/ComposeOptionsTransformers.md +2 -2
  162. package/docs/markdown/functions/FormContextFromActivatedRouteFactory.md +2 -2
  163. package/docs/markdown/functions/ResolveByUuidParameter.md +2 -2
  164. package/docs/markdown/functions/ResolveByUuidResultFactory.md +2 -2
  165. package/docs/markdown/functions/SubmitContextFormAdapterFactory.md +2 -2
  166. package/docs/markdown/functions/UseAutocompleteIsValueFunction.md +2 -2
  167. package/docs/markdown/functions/UseAutocompleteOptionsMethod.md +4 -4
  168. package/docs/markdown/functions/UseAutocompleteResolveMethod.md +2 -2
  169. package/docs/markdown/functions/UseAutocompleteToDisplayFunction.md +2 -2
  170. package/docs/markdown/functions/UseComponent.md +2 -2
  171. package/docs/markdown/functions/UseDataSource.md +2 -2
  172. package/docs/markdown/functions/UseFormComponent.md +2 -2
  173. package/docs/markdown/functions/UseFunction.md +2 -2
  174. package/docs/markdown/functions/UseHideFunction.md +2 -2
  175. package/docs/markdown/functions/UseIsValueFunction.md +3 -3
  176. package/docs/markdown/functions/UseMethod.md +2 -2
  177. package/docs/markdown/functions/UseOptionsDataSource.md +2 -2
  178. package/docs/markdown/functions/UseOptionsMethod.md +8 -4
  179. package/docs/markdown/functions/UseOptionsRemoteMethod.md +2 -2
  180. package/docs/markdown/functions/UseRemoteMethod.md +2 -2
  181. package/docs/markdown/functions/UseResolveMethod.md +3 -3
  182. package/docs/markdown/functions/UseShowFunction.md +2 -2
  183. package/docs/markdown/functions/UseToDisplayFunction.md +3 -3
  184. package/docs/markdown/functions/controlDataSource.md +2 -2
  185. package/docs/markdown/globals.md +3 -2
  186. package/docs/markdown/interfaces/AutocompleteOptionsFromMethodDirectiveParameters.md +3 -3
  187. package/docs/markdown/interfaces/AutocompleteOptionsFromMethodDirectiveSettings.md +3 -3
  188. package/docs/markdown/interfaces/AutocompleteOptionsFromRemoteMethodTemplateContext.md +3 -3
  189. package/docs/markdown/interfaces/ControlHideShowOptions.md +3 -3
  190. package/docs/markdown/interfaces/ControlWithDataSource.md +3 -3
  191. package/docs/markdown/interfaces/ForFormArrayItemsDirectiveContext.md +9 -9
  192. package/docs/markdown/interfaces/InputSelectOptionsSettings.md +6 -6
  193. package/docs/markdown/interfaces/InputSelectOptionsTemplateContext.md +3 -3
  194. package/docs/markdown/interfaces/OptionsFromMethodDirectiveSettings.md +2 -2
  195. package/docs/markdown/interfaces/OptionsFromMethodTemplateContext.md +3 -3
  196. package/docs/markdown/interfaces/OptionsFromRemoteMethodTemplateContext.md +3 -3
  197. package/docs/markdown/interfaces/UseDataSourceSettings.md +3 -3
  198. package/docs/markdown/interfaces/UseDataSourceValue.md +5 -5
  199. package/docs/markdown/interfaces/UseFunctionConfig.md +3 -3
  200. package/docs/markdown/interfaces/UseFunctionDefinition.md +4 -4
  201. package/docs/markdown/interfaces/UseMethodConfig.md +3 -3
  202. package/docs/markdown/interfaces/UseMethodDefinition.md +4 -4
  203. package/docs/markdown/type-aliases/ControlHideShowFunction.md +2 -2
  204. package/docs/markdown/type-aliases/FunctionParameterAdapterFunction.md +2 -2
  205. package/docs/markdown/type-aliases/FunctionResultAdapterFunction.md +2 -2
  206. package/docs/markdown/type-aliases/MethodParameterAdapterFunction.md +2 -2
  207. package/docs/markdown/type-aliases/MethodResultAdapterFunction.md +2 -2
  208. package/docs/markdown/type-aliases/OptionsMethod.md +15 -0
  209. package/docs/markdown/type-aliases/UseFunctionType.md +2 -2
  210. package/docs/markdown/type-aliases/UseOptionsDataSourceSettings.md +2 -2
  211. package/docs/markdown/variables/DATA_SOURCE_NAME.md +2 -2
  212. package/docs/markdown/variables/IS_VALUE_FUNCTION_NAME.md +2 -2
  213. package/docs/markdown/variables/OPTIONS_METHOD_NAME.md +2 -2
  214. package/docs/markdown/variables/REMOTE_METHOD_NAME.md +2 -2
  215. package/docs/markdown/variables/RESOLVE_METHOD_NAME.md +2 -2
  216. package/docs/markdown/variables/RXAP_FORM_CONTROL_SOURCE.md +2 -2
  217. package/docs/markdown/variables/RXAP_FORM_SYSTEM_HIDE_METADATA.md +2 -2
  218. package/docs/markdown/variables/RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS.md +2 -2
  219. package/docs/markdown/variables/RXAP_FORM_SYSTEM_SHOW_METADATA.md +2 -2
  220. package/docs/markdown/variables/RXAP_USE_FUNCTION.md +2 -2
  221. package/docs/markdown/variables/RXAP_USE_METHOD.md +2 -2
  222. package/docs/markdown/variables/RXAP_USE_REMOTE_METHOD.md +2 -2
  223. package/docs/markdown/variables/SUBMIT_CONTEXT_FORM_ADAPTER_METHOD.md +2 -2
  224. package/docs/markdown/variables/TO_DISPLAY_FUNCTION_NAME.md +2 -2
  225. package/docs/wiki/Class.AutocompleteOptionsFromMethodDirective.md +62 -38
  226. package/docs/wiki/Class.ControlDataSource.md +50 -50
  227. package/docs/wiki/Class.ControlHideShowDirective.md +8 -8
  228. package/docs/wiki/Class.ExtractControlFromParentMixin.md +2 -2
  229. package/docs/wiki/Class.ExtractControlMixin.md +5 -5
  230. package/docs/wiki/Class.ExtractDataSourcesMixin.md +2 -2
  231. package/docs/wiki/Class.ExtractFormDefinitionMixin.md +2 -2
  232. package/docs/wiki/Class.ExtractFunctionMixin.md +4 -4
  233. package/docs/wiki/Class.ExtractFunctionsMixin.md +2 -2
  234. package/docs/wiki/Class.ExtractIsValueFunctionMixin.md +10 -10
  235. package/docs/wiki/Class.ExtractMethodMixin.md +4 -4
  236. package/docs/wiki/Class.ExtractMethodsMixin.md +2 -2
  237. package/docs/wiki/Class.ExtractOptionsDataSourceMixin.md +15 -15
  238. package/docs/wiki/Class.ExtractOptionsMethodMixin.md +10 -10
  239. package/docs/wiki/Class.ExtractRemoteMethodsMixin.md +2 -2
  240. package/docs/wiki/Class.ExtractResolveMethodMixin.md +10 -10
  241. package/docs/wiki/Class.ExtractToDisplayFunctionMixin.md +10 -10
  242. package/docs/wiki/Class.ForFormArrayItemsDirective.md +4 -4
  243. package/docs/wiki/Class.FormArrayAddItemButtonDirective.md +11 -11
  244. package/docs/wiki/Class.FormArrayItemButton.md +18 -18
  245. package/docs/wiki/Class.FormArrayItemRemoveButtonDirective.md +19 -19
  246. package/docs/wiki/Class.FormArrayItemRestoreButtonDirective.md +18 -18
  247. package/docs/wiki/Class.FormArrayRemovableDirective.md +9 -9
  248. package/docs/wiki/Class.FormSystemControlDirective.md +11 -11
  249. package/docs/wiki/Class.FormSystemDirectivesModule.md +1 -1
  250. package/docs/wiki/Class.InputSelectOptionsDirective.md +26 -26
  251. package/docs/wiki/Class.IsEqualToDirective.md +4 -4
  252. package/docs/wiki/Class.IsSelectableValueDirective.md +17 -17
  253. package/docs/wiki/Class.NoopResolveMethod.md +2 -2
  254. package/docs/wiki/Class.OptionsFromMethodDirective.md +59 -27
  255. package/docs/wiki/Class.OptionsFromRemoteMethodDirective.md +8 -8
  256. package/docs/wiki/Class.RxapFormSystemError.md +12 -12
  257. package/docs/wiki/Class.SubmitContextFormAdapter.md +31 -31
  258. package/docs/wiki/Class.TestNgControl.md +4 -4
  259. package/docs/wiki/Enumeration.FormSystemMetadataKeys.md +5 -5
  260. package/docs/wiki/Function.ApplyUseFunctionAdapters.md +1 -1
  261. package/docs/wiki/Function.ApplyUseMethodAdapters.md +1 -1
  262. package/docs/wiki/Function.ComposeOptionsTransformers.md +1 -1
  263. package/docs/wiki/Function.FormContextFromActivatedRouteFactory.md +1 -1
  264. package/docs/wiki/Function.ResolveByUuidParameter.md +1 -1
  265. package/docs/wiki/Function.ResolveByUuidResultFactory.md +1 -1
  266. package/docs/wiki/Function.SubmitContextFormAdapterFactory.md +1 -1
  267. package/docs/wiki/Function.UseAutocompleteIsValueFunction.md +1 -1
  268. package/docs/wiki/Function.UseAutocompleteOptionsMethod.md +3 -3
  269. package/docs/wiki/Function.UseAutocompleteResolveMethod.md +1 -1
  270. package/docs/wiki/Function.UseAutocompleteToDisplayFunction.md +1 -1
  271. package/docs/wiki/Function.UseComponent.md +1 -1
  272. package/docs/wiki/Function.UseDataSource.md +1 -1
  273. package/docs/wiki/Function.UseFormComponent.md +1 -1
  274. package/docs/wiki/Function.UseFunction.md +1 -1
  275. package/docs/wiki/Function.UseHideFunction.md +1 -1
  276. package/docs/wiki/Function.UseIsValueFunction.md +2 -2
  277. package/docs/wiki/Function.UseMethod.md +1 -1
  278. package/docs/wiki/Function.UseOptionsDataSource.md +1 -1
  279. package/docs/wiki/Function.UseOptionsMethod.md +7 -3
  280. package/docs/wiki/Function.UseOptionsRemoteMethod.md +1 -1
  281. package/docs/wiki/Function.UseRemoteMethod.md +1 -1
  282. package/docs/wiki/Function.UseResolveMethod.md +2 -2
  283. package/docs/wiki/Function.UseShowFunction.md +1 -1
  284. package/docs/wiki/Function.UseToDisplayFunction.md +2 -2
  285. package/docs/wiki/Function.controlDataSource.md +1 -1
  286. package/docs/wiki/Interface.AutocompleteOptionsFromMethodDirectiveParameters.md +2 -2
  287. package/docs/wiki/Interface.AutocompleteOptionsFromMethodDirectiveSettings.md +2 -2
  288. package/docs/wiki/Interface.AutocompleteOptionsFromRemoteMethodTemplateContext.md +2 -2
  289. package/docs/wiki/Interface.ControlHideShowOptions.md +2 -2
  290. package/docs/wiki/Interface.ControlWithDataSource.md +2 -2
  291. package/docs/wiki/Interface.ForFormArrayItemsDirectiveContext.md +8 -8
  292. package/docs/wiki/Interface.InputSelectOptionsSettings.md +5 -5
  293. package/docs/wiki/Interface.InputSelectOptionsTemplateContext.md +2 -2
  294. package/docs/wiki/Interface.OptionsFromMethodDirectiveSettings.md +1 -1
  295. package/docs/wiki/Interface.OptionsFromMethodTemplateContext.md +2 -2
  296. package/docs/wiki/Interface.OptionsFromRemoteMethodTemplateContext.md +2 -2
  297. package/docs/wiki/Interface.UseDataSourceSettings.md +2 -2
  298. package/docs/wiki/Interface.UseDataSourceValue.md +4 -4
  299. package/docs/wiki/Interface.UseFunctionConfig.md +2 -2
  300. package/docs/wiki/Interface.UseFunctionDefinition.md +3 -3
  301. package/docs/wiki/Interface.UseMethodConfig.md +2 -2
  302. package/docs/wiki/Interface.UseMethodDefinition.md +3 -3
  303. package/docs/wiki/TypeAlias.ControlHideShowFunction.md +1 -1
  304. package/docs/wiki/TypeAlias.FunctionParameterAdapterFunction.md +1 -1
  305. package/docs/wiki/TypeAlias.FunctionResultAdapterFunction.md +1 -1
  306. package/docs/wiki/TypeAlias.MethodParameterAdapterFunction.md +1 -1
  307. package/docs/wiki/TypeAlias.MethodResultAdapterFunction.md +1 -1
  308. package/docs/wiki/TypeAlias.OptionsMethod.md +11 -0
  309. package/docs/wiki/TypeAlias.UseFunctionType.md +1 -1
  310. package/docs/wiki/TypeAlias.UseOptionsDataSourceSettings.md +1 -1
  311. package/docs/wiki/Variable.DATA_SOURCE_NAME.md +1 -1
  312. package/docs/wiki/Variable.IS_VALUE_FUNCTION_NAME.md +1 -1
  313. package/docs/wiki/Variable.OPTIONS_METHOD_NAME.md +1 -1
  314. package/docs/wiki/Variable.REMOTE_METHOD_NAME.md +1 -1
  315. package/docs/wiki/Variable.RESOLVE_METHOD_NAME.md +1 -1
  316. package/docs/wiki/Variable.RXAP_FORM_CONTROL_SOURCE.md +1 -1
  317. package/docs/wiki/Variable.RXAP_FORM_SYSTEM_HIDE_METADATA.md +1 -1
  318. package/docs/wiki/Variable.RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS.md +1 -1
  319. package/docs/wiki/Variable.RXAP_FORM_SYSTEM_SHOW_METADATA.md +1 -1
  320. package/docs/wiki/Variable.RXAP_USE_FUNCTION.md +1 -1
  321. package/docs/wiki/Variable.RXAP_USE_METHOD.md +1 -1
  322. package/docs/wiki/Variable.RXAP_USE_REMOTE_METHOD.md +1 -1
  323. package/docs/wiki/Variable.SUBMIT_CONTEXT_FORM_ADAPTER_METHOD.md +1 -1
  324. package/docs/wiki/Variable.TO_DISPLAY_FUNCTION_NAME.md +1 -1
  325. package/docs/wiki/_Sidebar.md +1 -0
  326. package/docs/wiki/globals.md +2 -1
  327. package/fesm2022/rxap-form-system.mjs +24 -6
  328. package/fesm2022/rxap-form-system.mjs.map +1 -1
  329. package/lib/directives/autocomplete-options-from-method.directive.d.ts +6 -5
  330. package/lib/directives/options-from-method.directive.d.ts +9 -6
  331. package/lib/mixins/extract-options-method.mixin.d.ts +3 -1
  332. package/package.json +15 -15
@@ -134,6 +134,7 @@
134
134
  <p class="comment">
135
135
  <code>AfterViewInit</code>
136
136
  <code>OnChanges</code>
137
+ <code>OnDestroy</code>
137
138
  </p>
138
139
 
139
140
 
@@ -174,6 +175,11 @@
174
175
  <tr>
175
176
  <td class="col-md-4">
176
177
  <ul class="index-list">
178
+ <li>
179
+ <span class="modifier">Protected</span>
180
+ <span class="modifier">Optional</span>
181
+ <a href="#_loadOptionsSubscription" >_loadOptionsSubscription</a>
182
+ </li>
177
183
  <li>
178
184
  <span class="modifier">Protected</span>
179
185
  <span class="modifier">Readonly</span>
@@ -184,6 +190,10 @@
184
190
  <span class="modifier">Readonly</span>
185
191
  <a href="#injector" >injector</a>
186
192
  </li>
193
+ <li>
194
+ <span class="modifier">Readonly</span>
195
+ <a href="#loading" >loading</a>
196
+ </li>
187
197
  <li>
188
198
  <span class="modifier">Protected</span>
189
199
  <a href="#matFormField" >matFormField</a>
@@ -284,13 +294,13 @@
284
294
  </tr>
285
295
  <tr>
286
296
  <td class="col-md-4">
287
- <i>Type : </i> <code>Method&lt;ControlOptions | Parameters&gt;</code>
297
+ <i>Type : </i> <code><a href="../miscellaneous/typealiases.html#OptionsMethod" target="_self" >OptionsMethod&lt;Parameters&gt;</a></code>
288
298
 
289
299
  </td>
290
300
  </tr>
291
301
  <tr>
292
302
  <td class="col-md-2" colspan="2">
293
- <div class="io-line">Defined in <a href="" data-line="68" class="link-to-prism">src/lib/directives/options-from-method.directive.ts:68</a></div>
303
+ <div class="io-line">Defined in <a href="" data-line="79" class="link-to-prism">src/lib/directives/options-from-method.directive.ts:79</a></div>
294
304
  </td>
295
305
  </tr>
296
306
  </tbody>
@@ -311,7 +321,7 @@
311
321
  </tr>
312
322
  <tr>
313
323
  <td class="col-md-2" colspan="2">
314
- <div class="io-line">Defined in <a href="" data-line="60" class="link-to-prism">src/lib/directives/options-from-method.directive.ts:60</a></div>
324
+ <div class="io-line">Defined in <a href="" data-line="71" class="link-to-prism">src/lib/directives/options-from-method.directive.ts:71</a></div>
315
325
  </td>
316
326
  </tr>
317
327
  </tbody>
@@ -332,7 +342,7 @@
332
342
  </tr>
333
343
  <tr>
334
344
  <td class="col-md-2" colspan="2">
335
- <div class="io-line">Defined in <a href="" data-line="63" class="link-to-prism">src/lib/directives/options-from-method.directive.ts:63</a></div>
345
+ <div class="io-line">Defined in <a href="" data-line="74" class="link-to-prism">src/lib/directives/options-from-method.directive.ts:74</a></div>
336
346
  </td>
337
347
  </tr>
338
348
  </tbody>
@@ -369,8 +379,8 @@
369
379
 
370
380
  <tr>
371
381
  <td class="col-md-4">
372
- <div class="io-line">Defined in <a href="" data-line="136"
373
- class="link-to-prism">src/lib/directives/options-from-method.directive.ts:136</a></div>
382
+ <div class="io-line">Defined in <a href="" data-line="153"
383
+ class="link-to-prism">src/lib/directives/options-from-method.directive.ts:153</a></div>
374
384
  </td>
375
385
  </tr>
376
386
 
@@ -443,8 +453,8 @@
443
453
 
444
454
  <tr>
445
455
  <td class="col-md-4">
446
- <div class="io-line">Defined in <a href="" data-line="102"
447
- class="link-to-prism">src/lib/directives/options-from-method.directive.ts:102</a></div>
456
+ <div class="io-line">Defined in <a href="" data-line="119"
457
+ class="link-to-prism">src/lib/directives/options-from-method.directive.ts:119</a></div>
448
458
  </td>
449
459
  </tr>
450
460
 
@@ -480,7 +490,7 @@
480
490
  </table>
481
491
  </div>
482
492
  <div class="io-description">
483
- <b>Returns : </b> <code>Promise&lt;ControlOptions | null&gt;</code>
493
+ <b>Returns : </b> <code>Promise&lt;Observable | ControlOptions | null&gt;</code>
484
494
 
485
495
  </div>
486
496
  <div class="io-description">
@@ -512,8 +522,8 @@
512
522
 
513
523
  <tr>
514
524
  <td class="col-md-4">
515
- <div class="io-line">Defined in <a href="" data-line="52"
516
- class="link-to-prism">src/lib/directives/options-from-method.directive.ts:52</a></div>
525
+ <div class="io-line">Defined in <a href="" data-line="61"
526
+ class="link-to-prism">src/lib/directives/options-from-method.directive.ts:61</a></div>
517
527
  </td>
518
528
  </tr>
519
529
 
@@ -593,8 +603,8 @@
593
603
 
594
604
  <tr>
595
605
  <td class="col-md-4">
596
- <div class="io-line">Defined in <a href="" data-line="106"
597
- class="link-to-prism">src/lib/directives/options-from-method.directive.ts:106</a></div>
606
+ <div class="io-line">Defined in <a href="" data-line="123"
607
+ class="link-to-prism">src/lib/directives/options-from-method.directive.ts:123</a></div>
598
608
  </td>
599
609
  </tr>
600
610
 
@@ -632,8 +642,8 @@
632
642
 
633
643
  <tr>
634
644
  <td class="col-md-4">
635
- <div class="io-line">Defined in <a href="" data-line="126"
636
- class="link-to-prism">src/lib/directives/options-from-method.directive.ts:126</a></div>
645
+ <div class="io-line">Defined in <a href="" data-line="143"
646
+ class="link-to-prism">src/lib/directives/options-from-method.directive.ts:143</a></div>
637
647
  </td>
638
648
  </tr>
639
649
 
@@ -685,6 +695,34 @@
685
695
  <h3 id="inputs">
686
696
  Properties
687
697
  </h3>
698
+ <table class="table table-sm table-bordered">
699
+ <tbody>
700
+ <tr>
701
+ <td class="col-md-4">
702
+ <a name="_loadOptionsSubscription"></a>
703
+ <span class="name">
704
+ <span class="modifier">Protected</span>
705
+ <span class="modifier">Optional</span>
706
+ <span ><b>_loadOptionsSubscription</b></span>
707
+ <a href="#_loadOptionsSubscription"><span class="icon ion-ios-link"></span></a>
708
+ </span>
709
+ </td>
710
+ </tr>
711
+ <tr>
712
+ <td class="col-md-4">
713
+ <i>Type : </i> <code>Subscription</code>
714
+
715
+ </td>
716
+ </tr>
717
+ <tr>
718
+ <td class="col-md-4">
719
+ <div class="io-line">Defined in <a href="" data-line="88" class="link-to-prism">src/lib/directives/options-from-method.directive.ts:88</a></div>
720
+ </td>
721
+ </tr>
722
+
723
+
724
+ </tbody>
725
+ </table>
688
726
  <table class="table table-sm table-bordered">
689
727
  <tbody>
690
728
  <tr>
@@ -711,7 +749,7 @@
711
749
  </tr>
712
750
  <tr>
713
751
  <td class="col-md-4">
714
- <div class="io-line">Defined in <a href="" data-line="74" class="link-to-prism">src/lib/directives/options-from-method.directive.ts:74</a></div>
752
+ <div class="io-line">Defined in <a href="" data-line="85" class="link-to-prism">src/lib/directives/options-from-method.directive.ts:85</a></div>
715
753
  </td>
716
754
  </tr>
717
755
 
@@ -744,7 +782,33 @@
744
782
  </tr>
745
783
  <tr>
746
784
  <td class="col-md-4">
747
- <div class="io-line">Defined in <a href="" data-line="73" class="link-to-prism">src/lib/directives/options-from-method.directive.ts:73</a></div>
785
+ <div class="io-line">Defined in <a href="" data-line="84" class="link-to-prism">src/lib/directives/options-from-method.directive.ts:84</a></div>
786
+ </td>
787
+ </tr>
788
+
789
+
790
+ </tbody>
791
+ </table>
792
+ <table class="table table-sm table-bordered">
793
+ <tbody>
794
+ <tr>
795
+ <td class="col-md-4">
796
+ <a name="loading"></a>
797
+ <span class="name">
798
+ <span class="modifier">Readonly</span>
799
+ <span ><b>loading</b></span>
800
+ <a href="#loading"><span class="icon ion-ios-link"></span></a>
801
+ </span>
802
+ </td>
803
+ </tr>
804
+ <tr>
805
+ <td class="col-md-4">
806
+ <i>Default value : </i><code>signal&lt;boolean&gt;(true)</code>
807
+ </td>
808
+ </tr>
809
+ <tr>
810
+ <td class="col-md-4">
811
+ <div class="io-line">Defined in <a href="" data-line="68" class="link-to-prism">src/lib/directives/options-from-method.directive.ts:68</a></div>
748
812
  </td>
749
813
  </tr>
750
814
 
@@ -776,7 +840,7 @@
776
840
  </tr>
777
841
  <tr>
778
842
  <td class="col-md-4">
779
- <div class="io-line">Defined in <a href="" data-line="70" class="link-to-prism">src/lib/directives/options-from-method.directive.ts:70</a></div>
843
+ <div class="io-line">Defined in <a href="" data-line="81" class="link-to-prism">src/lib/directives/options-from-method.directive.ts:81</a></div>
780
844
  </td>
781
845
  </tr>
782
846
 
@@ -808,7 +872,7 @@
808
872
  </tr>
809
873
  <tr>
810
874
  <td class="col-md-4">
811
- <div class="io-line">Defined in <a href="" data-line="69" class="link-to-prism">src/lib/directives/options-from-method.directive.ts:69</a></div>
875
+ <div class="io-line">Defined in <a href="" data-line="80" class="link-to-prism">src/lib/directives/options-from-method.directive.ts:80</a></div>
812
876
  </td>
813
877
  </tr>
814
878
 
@@ -840,7 +904,7 @@
840
904
  </tr>
841
905
  <tr>
842
906
  <td class="col-md-4">
843
- <div class="io-line">Defined in <a href="" data-line="65" class="link-to-prism">src/lib/directives/options-from-method.directive.ts:65</a></div>
907
+ <div class="io-line">Defined in <a href="" data-line="76" class="link-to-prism">src/lib/directives/options-from-method.directive.ts:76</a></div>
844
908
  </td>
845
909
  </tr>
846
910
 
@@ -872,7 +936,7 @@
872
936
  </tr>
873
937
  <tr>
874
938
  <td class="col-md-4">
875
- <div class="io-line">Defined in <a href="" data-line="71" class="link-to-prism">src/lib/directives/options-from-method.directive.ts:71</a></div>
939
+ <div class="io-line">Defined in <a href="" data-line="82" class="link-to-prism">src/lib/directives/options-from-method.directive.ts:82</a></div>
876
940
  </td>
877
941
  </tr>
878
942
 
@@ -905,7 +969,7 @@
905
969
  </tr>
906
970
  <tr>
907
971
  <td class="col-md-4">
908
- <div class="io-line">Defined in <a href="" data-line="72" class="link-to-prism">src/lib/directives/options-from-method.directive.ts:72</a></div>
972
+ <div class="io-line">Defined in <a href="" data-line="83" class="link-to-prism">src/lib/directives/options-from-method.directive.ts:83</a></div>
909
973
  </td>
910
974
  </tr>
911
975
 
@@ -924,11 +988,12 @@
924
988
  ChangeDetectorRef,
925
989
  Directive,
926
990
  inject,
927
- InjectFlags,
928
991
  INJECTOR,
929
992
  Injector,
930
993
  Input,
931
994
  OnChanges,
995
+ OnDestroy,
996
+ signal,
932
997
  SimpleChanges,
933
998
  TemplateRef,
934
999
  ViewContainerRef,
@@ -940,12 +1005,20 @@ import {
940
1005
  import { MatFormField } from &#x27;@angular/material/form-field&#x27;;
941
1006
  import { RxapFormControl } from &#x27;@rxap/forms&#x27;;
942
1007
  import { Mixin } from &#x27;@rxap/mixin&#x27;;
943
- import { Method } from &#x27;@rxap/pattern&#x27;;
944
1008
  import {
945
1009
  ControlOption,
946
1010
  ControlOptions,
947
1011
  } from &#x27;@rxap/utilities&#x27;;
948
- import { ExtractOptionsMethodMixin } from &#x27;../mixins/extract-options-method.mixin&#x27;;
1012
+ import {
1013
+ isObservable,
1014
+ Observable,
1015
+ Subscription,
1016
+ tap,
1017
+ } from &#x27;rxjs&#x27;;
1018
+ import {
1019
+ ExtractOptionsMethodMixin,
1020
+ OptionsMethod,
1021
+ } from &#x27;../mixins/extract-options-method.mixin&#x27;;
949
1022
 
950
1023
 
951
1024
  export interface OptionsFromMethodTemplateContext {
@@ -968,7 +1041,7 @@ export interface OptionsFromMethodDirective&lt;Value &#x3D; any, Parameters &#x3
968
1041
  standalone: true,
969
1042
  exportAs: &#x27;rxapOptionsFromMethod&#x27;,
970
1043
  })
971
- export class OptionsFromMethodDirective&lt;Value &#x3D; any, Parameters &#x3D; any&gt; implements AfterViewInit, OnChanges {
1044
+ export class OptionsFromMethodDirective&lt;Value &#x3D; any, Parameters &#x3D; any&gt; implements AfterViewInit, OnChanges, OnDestroy {
972
1045
 
973
1046
  static ngTemplateContextGuard(
974
1047
  dir: OptionsFromMethodDirective,
@@ -977,6 +1050,8 @@ export class OptionsFromMethodDirective&lt;Value &#x3D; any, Parameters &#x3D; a
977
1050
  return true;
978
1051
  }
979
1052
 
1053
+ readonly loading &#x3D; signal&lt;boolean&gt;(true);
1054
+
980
1055
  @Input(&#x27;rxapOptionsFromMethodParameters&#x27;)
981
1056
  public parameters?: Parameters;
982
1057
 
@@ -986,7 +1061,7 @@ export class OptionsFromMethodDirective&lt;Value &#x3D; any, Parameters &#x3D; a
986
1061
  public options: ControlOptions | null &#x3D; null;
987
1062
  // eslint-disable-next-line @angular-eslint/no-input-rename
988
1063
  @Input(&#x27;rxapOptionsFromMethodCall&#x27;)
989
- public method!: Method&lt;ControlOptions, Parameters&gt;;
1064
+ public method!: OptionsMethod&lt;Parameters&gt;;
990
1065
  protected ngControl: NgControl | AbstractControlDirective | null &#x3D; null;
991
1066
  protected matFormField: MatFormField | null &#x3D; null;
992
1067
  protected settings: OptionsFromMethodDirectiveSettings &#x3D; {};
@@ -995,6 +1070,8 @@ export class OptionsFromMethodDirective&lt;Value &#x3D; any, Parameters &#x3D; a
995
1070
  protected readonly cdr: ChangeDetectorRef &#x3D; inject(ChangeDetectorRef);
996
1071
  private readonly template: TemplateRef&lt;OptionsFromMethodTemplateContext&gt; &#x3D; inject(TemplateRef);
997
1072
 
1073
+ protected _loadOptionsSubscription?: Subscription;
1074
+
998
1075
  public async ngAfterViewInit() {
999
1076
  this.matFormField &#x3D; this.injector.get(MatFormField, null);
1000
1077
  this.ngControl &#x3D; this.matFormField?._control.ngControl ?? this.injector.get(NgControl, null);
@@ -1003,10 +1080,14 @@ export class OptionsFromMethodDirective&lt;Value &#x3D; any, Parameters &#x3D; a
1003
1080
  // ensure that the options are loaded. It is possible that the ngOnChange is triggered before the ngAfterViewInit
1004
1081
  // then the options are not loaded.
1005
1082
  if (!this.options) {
1006
- this.setOptions(await this.loadOptions(this.parameters));
1083
+ await this.load(this.parameters);
1007
1084
  }
1008
1085
  }
1009
1086
 
1087
+ ngOnDestroy() {
1088
+ this._loadOptionsSubscription?.unsubscribe();
1089
+ }
1090
+
1010
1091
  public async ngOnChanges(changes: SimpleChanges) {
1011
1092
  // only try to load the options if the method is defined
1012
1093
  // else the initial load will be triggered in the ngAfterViewInit
@@ -1020,7 +1101,7 @@ export class OptionsFromMethodDirective&lt;Value &#x3D; any, Parameters &#x3D; a
1020
1101
  }
1021
1102
  }
1022
1103
 
1023
- protected async loadOptions(parameters?: Parameters): Promise&lt;ControlOptions | null&gt; {
1104
+ protected async loadOptions(parameters?: Parameters): Promise&lt;Observable&lt;ControlOptions | null&gt; | ControlOptions | null&gt; {
1024
1105
  return this.method.call(parameters);
1025
1106
  }
1026
1107
 
@@ -1055,7 +1136,20 @@ export class OptionsFromMethodDirective&lt;Value &#x3D; any, Parameters &#x3D; a
1055
1136
  }
1056
1137
 
1057
1138
  public async load(parameters: Parameters | undefined &#x3D; this.parameters) {
1058
- this.setOptions(await this.loadOptions(parameters));
1139
+ this.loading.set(true);
1140
+ try {
1141
+ const result &#x3D; await this.loadOptions(parameters);
1142
+ if (isObservable(result)) {
1143
+ this._loadOptionsSubscription?.unsubscribe();
1144
+ this._loadOptionsSubscription &#x3D; result.pipe(
1145
+ tap(options &#x3D;&gt; this.setOptions(options)),
1146
+ ).subscribe();
1147
+ } else {
1148
+ this.setOptions(result);
1149
+ }
1150
+ } finally {
1151
+ this.loading.set(false);
1152
+ }
1059
1153
  }
1060
1154
 
1061
1155
  }
@@ -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="103"
186
- class="link-to-prism">src/lib/directives/autocomplete-options-from-method.directive.ts:103</a></div>
185
+ <div class="io-line">Defined in <a href="" data-line="114"
186
+ class="link-to-prism">src/lib/directives/autocomplete-options-from-method.directive.ts:114</a></div>
187
187
  </td>
188
188
  </tr>
189
189
 
@@ -289,22 +289,32 @@ export class GetCompanyMethod implements Method&lt;ControlOption, { parameters:
289
289
  OnDestroy,
290
290
  ProviderToken,
291
291
  } from &#x27;@angular/core&#x27;;
292
- import { MatAutocomplete } from &#x27;@angular/material/autocomplete&#x27;;
293
- import { ControlOption, ControlOptions } from &#x27;@rxap/utilities&#x27;;
294
- import { distinctUntilChanged, Subscription, tap } from &#x27;rxjs&#x27;;
295
- import { isUUID } from &#x27;@rxap/validator&#x27;;
296
- import { Method, MethodWithParameters } from &#x27;@rxap/pattern&#x27;;
297
- import { Mixin } from &#x27;@rxap/mixin&#x27;;
298
292
  import { NgControl } from &#x27;@angular/forms&#x27;;
293
+ import { MatAutocomplete } from &#x27;@angular/material/autocomplete&#x27;;
299
294
  import { MatFormField } from &#x27;@angular/material/form-field&#x27;;
295
+ import { controlValueChanges$ } from &#x27;@rxap/forms&#x27;;
296
+ import { Mixin } from &#x27;@rxap/mixin&#x27;;
297
+ import { OpenApiRemoteMethodParameter } from &#x27;@rxap/open-api/remote-method&#x27;;
298
+ import {
299
+ Method,
300
+ MethodWithParameters,
301
+ } from &#x27;@rxap/pattern&#x27;;
300
302
  import { isDefined } from &#x27;@rxap/rxjs&#x27;;
301
- import { ExtractControlMixin } from &#x27;../mixins/extract-control.mixin&#x27;;
302
- import { ExtractFormDefinitionMixin } from &#x27;../mixins/extract-form-definition.mixin&#x27;;
303
+ import {
304
+ ControlOption,
305
+ ControlOptions,
306
+ } from &#x27;@rxap/utilities&#x27;;
307
+ import { isUUID } from &#x27;@rxap/validator&#x27;;
308
+ import {
309
+ distinctUntilChanged,
310
+ Observable,
311
+ Subscription,
312
+ tap,
313
+ } from &#x27;rxjs&#x27;;
303
314
  import {
304
315
  ExtractIsValueFunctionMixin,
305
316
  UseIsValueFunction,
306
317
  } from &#x27;../mixins/extract-is-value-function.mixin&#x27;;
307
- import { ExtractMethodMixin } from &#x27;../mixins/extract-method.mixin&#x27;;
308
318
  import { UseMethodConfig } from &#x27;../mixins/extract-methods.mixin&#x27;;
309
319
  import { UseOptionsMethod } from &#x27;../mixins/extract-options-method.mixin&#x27;;
310
320
  import {
@@ -315,9 +325,10 @@ import {
315
325
  ExtractToDisplayFunctionMixin,
316
326
  UseToDisplayFunction,
317
327
  } from &#x27;../mixins/extract-to-display-function.mixin&#x27;;
318
- import { OptionsFromMethodDirective, OptionsFromMethodDirectiveSettings } from &#x27;./options-from-method.directive&#x27;;
319
- import { OpenApiRemoteMethodParameter } from &#x27;@rxap/open-api/remote-method&#x27;;
320
- import { controlValueChanges$ } from &#x27;@rxap/forms&#x27;;
328
+ import {
329
+ OptionsFromMethodDirective,
330
+ OptionsFromMethodDirectiveSettings,
331
+ } from &#x27;./options-from-method.directive&#x27;;
321
332
 
322
333
  export function UseAutocompleteOptionsMethod(
323
334
  method: ProviderToken&lt;MethodWithParameters&lt;ControlOptions, AutocompleteOptionsFromMethodDirectiveParameters&gt;&gt;,
@@ -436,7 +447,8 @@ export class AutocompleteOptionsFromMethodDirective&lt;Value &#x3D; any, Paramet
436
447
 
437
448
  private _subscription?: Subscription;
438
449
 
439
- public ngOnDestroy() {
450
+ public override ngOnDestroy() {
451
+ super.ngOnDestroy();
440
452
  this._subscription?.unsubscribe();
441
453
  }
442
454
 
@@ -469,7 +481,7 @@ export class AutocompleteOptionsFromMethodDirective&lt;Value &#x3D; any, Paramet
469
481
  // to trigger the toDisplay function in the mat-autocomplete
470
482
  distinctUntilChanged(),
471
483
  tap(async value &#x3D;&gt; {
472
- this.setOptions(await this.loadOptions(this.parameters));
484
+ await this.load(this.parameters);
473
485
  if (this.isValue?.(value)) {
474
486
  this.triggerAutocompleteToDisplay();
475
487
  }
@@ -477,7 +489,7 @@ export class AutocompleteOptionsFromMethodDirective&lt;Value &#x3D; any, Paramet
477
489
  ).subscribe();
478
490
  }
479
491
 
480
- protected override loadOptions(parameters: Parameters &#x3D; {} as Parameters): Promise&lt;ControlOptions | null&gt; {
492
+ protected override loadOptions(parameters: Parameters &#x3D; {} as Parameters): Promise&lt;ControlOptions | null | Observable&lt;ControlOptions | null&gt;&gt; {
481
493
  if (!this.control) {
482
494
  throw new Error(&#x27;The control is not yet defined&#x27;);
483
495
  }
@@ -262,22 +262,32 @@ export class GetCompanyMethod implements Method&lt;ControlOption, { parameters:
262
262
  OnDestroy,
263
263
  ProviderToken,
264
264
  } from &#x27;@angular/core&#x27;;
265
- import { MatAutocomplete } from &#x27;@angular/material/autocomplete&#x27;;
266
- import { ControlOption, ControlOptions } from &#x27;@rxap/utilities&#x27;;
267
- import { distinctUntilChanged, Subscription, tap } from &#x27;rxjs&#x27;;
268
- import { isUUID } from &#x27;@rxap/validator&#x27;;
269
- import { Method, MethodWithParameters } from &#x27;@rxap/pattern&#x27;;
270
- import { Mixin } from &#x27;@rxap/mixin&#x27;;
271
265
  import { NgControl } from &#x27;@angular/forms&#x27;;
266
+ import { MatAutocomplete } from &#x27;@angular/material/autocomplete&#x27;;
272
267
  import { MatFormField } from &#x27;@angular/material/form-field&#x27;;
268
+ import { controlValueChanges$ } from &#x27;@rxap/forms&#x27;;
269
+ import { Mixin } from &#x27;@rxap/mixin&#x27;;
270
+ import { OpenApiRemoteMethodParameter } from &#x27;@rxap/open-api/remote-method&#x27;;
271
+ import {
272
+ Method,
273
+ MethodWithParameters,
274
+ } from &#x27;@rxap/pattern&#x27;;
273
275
  import { isDefined } from &#x27;@rxap/rxjs&#x27;;
274
- import { ExtractControlMixin } from &#x27;../mixins/extract-control.mixin&#x27;;
275
- import { ExtractFormDefinitionMixin } from &#x27;../mixins/extract-form-definition.mixin&#x27;;
276
+ import {
277
+ ControlOption,
278
+ ControlOptions,
279
+ } from &#x27;@rxap/utilities&#x27;;
280
+ import { isUUID } from &#x27;@rxap/validator&#x27;;
281
+ import {
282
+ distinctUntilChanged,
283
+ Observable,
284
+ Subscription,
285
+ tap,
286
+ } from &#x27;rxjs&#x27;;
276
287
  import {
277
288
  ExtractIsValueFunctionMixin,
278
289
  UseIsValueFunction,
279
290
  } from &#x27;../mixins/extract-is-value-function.mixin&#x27;;
280
- import { ExtractMethodMixin } from &#x27;../mixins/extract-method.mixin&#x27;;
281
291
  import { UseMethodConfig } from &#x27;../mixins/extract-methods.mixin&#x27;;
282
292
  import { UseOptionsMethod } from &#x27;../mixins/extract-options-method.mixin&#x27;;
283
293
  import {
@@ -288,9 +298,10 @@ import {
288
298
  ExtractToDisplayFunctionMixin,
289
299
  UseToDisplayFunction,
290
300
  } from &#x27;../mixins/extract-to-display-function.mixin&#x27;;
291
- import { OptionsFromMethodDirective, OptionsFromMethodDirectiveSettings } from &#x27;./options-from-method.directive&#x27;;
292
- import { OpenApiRemoteMethodParameter } from &#x27;@rxap/open-api/remote-method&#x27;;
293
- import { controlValueChanges$ } from &#x27;@rxap/forms&#x27;;
301
+ import {
302
+ OptionsFromMethodDirective,
303
+ OptionsFromMethodDirectiveSettings,
304
+ } from &#x27;./options-from-method.directive&#x27;;
294
305
 
295
306
  export function UseAutocompleteOptionsMethod(
296
307
  method: ProviderToken&lt;MethodWithParameters&lt;ControlOptions, AutocompleteOptionsFromMethodDirectiveParameters&gt;&gt;,
@@ -409,7 +420,8 @@ export class AutocompleteOptionsFromMethodDirective&lt;Value &#x3D; any, Paramet
409
420
 
410
421
  private _subscription?: Subscription;
411
422
 
412
- public ngOnDestroy() {
423
+ public override ngOnDestroy() {
424
+ super.ngOnDestroy();
413
425
  this._subscription?.unsubscribe();
414
426
  }
415
427
 
@@ -442,7 +454,7 @@ export class AutocompleteOptionsFromMethodDirective&lt;Value &#x3D; any, Paramet
442
454
  // to trigger the toDisplay function in the mat-autocomplete
443
455
  distinctUntilChanged(),
444
456
  tap(async value &#x3D;&gt; {
445
- this.setOptions(await this.loadOptions(this.parameters));
457
+ await this.load(this.parameters);
446
458
  if (this.isValue?.(value)) {
447
459
  this.triggerAutocompleteToDisplay();
448
460
  }
@@ -450,7 +462,7 @@ export class AutocompleteOptionsFromMethodDirective&lt;Value &#x3D; any, Paramet
450
462
  ).subscribe();
451
463
  }
452
464
 
453
- protected override loadOptions(parameters: Parameters &#x3D; {} as Parameters): Promise&lt;ControlOptions | null&gt; {
465
+ protected override loadOptions(parameters: Parameters &#x3D; {} as Parameters): Promise&lt;ControlOptions | null | Observable&lt;ControlOptions | null&gt;&gt; {
454
466
  if (!this.control) {
455
467
  throw new Error(&#x27;The control is not yet defined&#x27;);
456
468
  }
@@ -268,22 +268,32 @@ export class GetCompanyMethod implements Method&lt;ControlOption, { parameters:
268
268
  OnDestroy,
269
269
  ProviderToken,
270
270
  } from &#x27;@angular/core&#x27;;
271
- import { MatAutocomplete } from &#x27;@angular/material/autocomplete&#x27;;
272
- import { ControlOption, ControlOptions } from &#x27;@rxap/utilities&#x27;;
273
- import { distinctUntilChanged, Subscription, tap } from &#x27;rxjs&#x27;;
274
- import { isUUID } from &#x27;@rxap/validator&#x27;;
275
- import { Method, MethodWithParameters } from &#x27;@rxap/pattern&#x27;;
276
- import { Mixin } from &#x27;@rxap/mixin&#x27;;
277
271
  import { NgControl } from &#x27;@angular/forms&#x27;;
272
+ import { MatAutocomplete } from &#x27;@angular/material/autocomplete&#x27;;
278
273
  import { MatFormField } from &#x27;@angular/material/form-field&#x27;;
274
+ import { controlValueChanges$ } from &#x27;@rxap/forms&#x27;;
275
+ import { Mixin } from &#x27;@rxap/mixin&#x27;;
276
+ import { OpenApiRemoteMethodParameter } from &#x27;@rxap/open-api/remote-method&#x27;;
277
+ import {
278
+ Method,
279
+ MethodWithParameters,
280
+ } from &#x27;@rxap/pattern&#x27;;
279
281
  import { isDefined } from &#x27;@rxap/rxjs&#x27;;
280
- import { ExtractControlMixin } from &#x27;../mixins/extract-control.mixin&#x27;;
281
- import { ExtractFormDefinitionMixin } from &#x27;../mixins/extract-form-definition.mixin&#x27;;
282
+ import {
283
+ ControlOption,
284
+ ControlOptions,
285
+ } from &#x27;@rxap/utilities&#x27;;
286
+ import { isUUID } from &#x27;@rxap/validator&#x27;;
287
+ import {
288
+ distinctUntilChanged,
289
+ Observable,
290
+ Subscription,
291
+ tap,
292
+ } from &#x27;rxjs&#x27;;
282
293
  import {
283
294
  ExtractIsValueFunctionMixin,
284
295
  UseIsValueFunction,
285
296
  } from &#x27;../mixins/extract-is-value-function.mixin&#x27;;
286
- import { ExtractMethodMixin } from &#x27;../mixins/extract-method.mixin&#x27;;
287
297
  import { UseMethodConfig } from &#x27;../mixins/extract-methods.mixin&#x27;;
288
298
  import { UseOptionsMethod } from &#x27;../mixins/extract-options-method.mixin&#x27;;
289
299
  import {
@@ -294,9 +304,10 @@ import {
294
304
  ExtractToDisplayFunctionMixin,
295
305
  UseToDisplayFunction,
296
306
  } from &#x27;../mixins/extract-to-display-function.mixin&#x27;;
297
- import { OptionsFromMethodDirective, OptionsFromMethodDirectiveSettings } from &#x27;./options-from-method.directive&#x27;;
298
- import { OpenApiRemoteMethodParameter } from &#x27;@rxap/open-api/remote-method&#x27;;
299
- import { controlValueChanges$ } from &#x27;@rxap/forms&#x27;;
307
+ import {
308
+ OptionsFromMethodDirective,
309
+ OptionsFromMethodDirectiveSettings,
310
+ } from &#x27;./options-from-method.directive&#x27;;
300
311
 
301
312
  export function UseAutocompleteOptionsMethod(
302
313
  method: ProviderToken&lt;MethodWithParameters&lt;ControlOptions, AutocompleteOptionsFromMethodDirectiveParameters&gt;&gt;,
@@ -415,7 +426,8 @@ export class AutocompleteOptionsFromMethodDirective&lt;Value &#x3D; any, Paramet
415
426
 
416
427
  private _subscription?: Subscription;
417
428
 
418
- public ngOnDestroy() {
429
+ public override ngOnDestroy() {
430
+ super.ngOnDestroy();
419
431
  this._subscription?.unsubscribe();
420
432
  }
421
433
 
@@ -448,7 +460,7 @@ export class AutocompleteOptionsFromMethodDirective&lt;Value &#x3D; any, Paramet
448
460
  // to trigger the toDisplay function in the mat-autocomplete
449
461
  distinctUntilChanged(),
450
462
  tap(async value &#x3D;&gt; {
451
- this.setOptions(await this.loadOptions(this.parameters));
463
+ await this.load(this.parameters);
452
464
  if (this.isValue?.(value)) {
453
465
  this.triggerAutocompleteToDisplay();
454
466
  }
@@ -456,7 +468,7 @@ export class AutocompleteOptionsFromMethodDirective&lt;Value &#x3D; any, Paramet
456
468
  ).subscribe();
457
469
  }
458
470
 
459
- protected override loadOptions(parameters: Parameters &#x3D; {} as Parameters): Promise&lt;ControlOptions | null&gt; {
471
+ protected override loadOptions(parameters: Parameters &#x3D; {} as Parameters): Promise&lt;ControlOptions | null | Observable&lt;ControlOptions | null&gt;&gt; {
460
472
  if (!this.control) {
461
473
  throw new Error(&#x27;The control is not yet defined&#x27;);
462
474
  }