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

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