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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (359) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/compodoc/changelog.html +23 -0
  3. package/compodoc/dependencies.html +17 -17
  4. package/compodoc/js/search/search_index.js +2 -2
  5. package/compodoc/properties.html +1 -1
  6. package/docs/documentation.json +3243 -3015
  7. package/docs/html/assets/hierarchy.js +1 -1
  8. package/docs/html/classes/AutocompleteOptionsFromMethodDirective.html +6 -6
  9. package/docs/html/classes/ControlDataSource.html +13 -13
  10. package/docs/html/classes/ControlHideShowDirective.html +4 -4
  11. package/docs/html/classes/ExtractControlFromParentMixin.html +2 -2
  12. package/docs/html/classes/ExtractControlMixin.html +2 -2
  13. package/docs/html/classes/ExtractDataSourcesMixin.html +2 -2
  14. package/docs/html/classes/ExtractFormDefinitionMixin.html +2 -2
  15. package/docs/html/classes/ExtractFunctionMixin.html +2 -2
  16. package/docs/html/classes/ExtractFunctionsMixin.html +2 -2
  17. package/docs/html/classes/ExtractIsValueFunctionMixin.html +2 -2
  18. package/docs/html/classes/ExtractMethodMixin.html +2 -2
  19. package/docs/html/classes/ExtractMethodsMixin.html +2 -2
  20. package/docs/html/classes/ExtractOptionsDataSourceMixin.html +2 -2
  21. package/docs/html/classes/ExtractOptionsMethodMixin.html +2 -2
  22. package/docs/html/classes/ExtractRemoteMethodsMixin.html +2 -2
  23. package/docs/html/classes/ExtractResolveMethodMixin.html +2 -2
  24. package/docs/html/classes/ExtractToDisplayFunctionMixin.html +2 -2
  25. package/docs/html/classes/ForFormArrayItemsDirective.html +4 -4
  26. package/docs/html/classes/FormArrayAddItemButtonDirective.html +4 -4
  27. package/docs/html/classes/FormArrayItemButton.html +4 -4
  28. package/docs/html/classes/FormArrayItemRemoveButtonDirective.html +5 -5
  29. package/docs/html/classes/FormArrayItemRestoreButtonDirective.html +4 -4
  30. package/docs/html/classes/FormArrayRemovableDirective.html +4 -4
  31. package/docs/html/classes/FormSystemControlDirective.html +8 -8
  32. package/docs/html/classes/FormSystemDirectivesModule.html +2 -2
  33. package/docs/html/classes/InputSelectOptionsDirective.html +4 -4
  34. package/docs/html/classes/IsEqualToDirective.html +4 -4
  35. package/docs/html/classes/IsSelectableValueDirective.html +3 -3
  36. package/docs/html/classes/NoopResolveMethod.html +2 -2
  37. package/docs/html/classes/OptionsFromMethodDirective.html +6 -6
  38. package/docs/html/classes/OptionsFromRemoteMethodDirective.html +5 -5
  39. package/docs/html/classes/RxapFormSystemError.html +6 -5
  40. package/docs/html/classes/SubmitContextFormAdapter.html +10 -10
  41. package/docs/html/classes/TestNgControl.html +26 -26
  42. package/docs/html/enums/FormSystemMetadataKeys.html +2 -2
  43. package/docs/html/functions/ApplyUseFunctionAdapters.html +1 -1
  44. package/docs/html/functions/ApplyUseMethodAdapters.html +1 -1
  45. package/docs/html/functions/ComposeOptionsTransformers.html +1 -1
  46. package/docs/html/functions/FormContextFromActivatedRouteFactory.html +1 -1
  47. package/docs/html/functions/ResolveByUuidParameter.html +1 -1
  48. package/docs/html/functions/ResolveByUuidResultFactory.html +1 -1
  49. package/docs/html/functions/SubmitContextFormAdapterFactory.html +1 -1
  50. package/docs/html/functions/UseAutocompleteIsValueFunction.html +1 -1
  51. package/docs/html/functions/UseAutocompleteOptionsMethod.html +1 -1
  52. package/docs/html/functions/UseAutocompleteResolveMethod.html +1 -1
  53. package/docs/html/functions/UseAutocompleteToDisplayFunction.html +1 -1
  54. package/docs/html/functions/UseComponent.html +1 -1
  55. package/docs/html/functions/UseDataSource.html +1 -1
  56. package/docs/html/functions/UseFormComponent.html +2 -2
  57. package/docs/html/functions/UseFunction.html +1 -1
  58. package/docs/html/functions/UseHideFunction.html +1 -1
  59. package/docs/html/functions/UseIsValueFunction.html +1 -1
  60. package/docs/html/functions/UseMethod.html +1 -1
  61. package/docs/html/functions/UseOptionsDataSource.html +1 -1
  62. package/docs/html/functions/UseOptionsMethod.html +1 -1
  63. package/docs/html/functions/UseOptionsRemoteMethod.html +1 -1
  64. package/docs/html/functions/UseRemoteMethod.html +1 -1
  65. package/docs/html/functions/UseResolveMethod.html +1 -1
  66. package/docs/html/functions/UseShowFunction.html +1 -1
  67. package/docs/html/functions/UseToDisplayFunction.html +1 -1
  68. package/docs/html/functions/controlDataSource-1.html +1 -1
  69. package/docs/html/hierarchy.html +1 -1
  70. package/docs/html/index.html +2 -2
  71. package/docs/html/interfaces/AutocompleteOptionsFromMethodDirectiveParameters.html +2 -2
  72. package/docs/html/interfaces/AutocompleteOptionsFromMethodDirectiveSettings.html +2 -2
  73. package/docs/html/interfaces/AutocompleteOptionsFromRemoteMethodTemplateContext.html +2 -2
  74. package/docs/html/interfaces/ControlHideShowOptions.html +2 -2
  75. package/docs/html/interfaces/ControlWithDataSource.html +2 -2
  76. package/docs/html/interfaces/ForFormArrayItemsDirectiveContext.html +2 -2
  77. package/docs/html/interfaces/InputSelectOptionsSettings.html +4 -4
  78. package/docs/html/interfaces/InputSelectOptionsTemplateContext.html +2 -2
  79. package/docs/html/interfaces/OptionsFromMethodDirectiveSettings.html +1 -1
  80. package/docs/html/interfaces/OptionsFromMethodTemplateContext.html +2 -2
  81. package/docs/html/interfaces/OptionsFromRemoteMethodTemplateContext.html +2 -2
  82. package/docs/html/interfaces/UseDataSourceSettings.html +2 -2
  83. package/docs/html/interfaces/UseDataSourceValue.html +3 -3
  84. package/docs/html/interfaces/UseFunctionConfig.html +2 -2
  85. package/docs/html/interfaces/UseFunctionDefinition.html +2 -2
  86. package/docs/html/interfaces/UseMethodConfig.html +2 -2
  87. package/docs/html/interfaces/UseMethodDefinition.html +2 -2
  88. package/docs/html/modules.html +1 -1
  89. package/docs/html/types/ControlHideShowFunction.html +1 -1
  90. package/docs/html/types/FunctionParameterAdapterFunction.html +1 -1
  91. package/docs/html/types/FunctionResultAdapterFunction.html +1 -1
  92. package/docs/html/types/MethodParameterAdapterFunction.html +1 -1
  93. package/docs/html/types/MethodResultAdapterFunction.html +1 -1
  94. package/docs/html/types/OptionsMethod.html +1 -1
  95. package/docs/html/types/UseFunctionType.html +1 -1
  96. package/docs/html/types/UseOptionsDataSourceSettings.html +1 -1
  97. package/docs/html/variables/DATA_SOURCE_NAME.html +1 -1
  98. package/docs/html/variables/IS_VALUE_FUNCTION_NAME.html +1 -1
  99. package/docs/html/variables/OPTIONS_METHOD_NAME.html +1 -1
  100. package/docs/html/variables/REMOTE_METHOD_NAME.html +1 -1
  101. package/docs/html/variables/RESOLVE_METHOD_NAME.html +1 -1
  102. package/docs/html/variables/RXAP_FORM_CONTROL_SOURCE.html +1 -1
  103. package/docs/html/variables/RXAP_FORM_SYSTEM_HIDE_METADATA.html +1 -1
  104. package/docs/html/variables/RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS.html +1 -1
  105. package/docs/html/variables/RXAP_FORM_SYSTEM_SHOW_METADATA.html +1 -1
  106. package/docs/html/variables/RXAP_USE_FUNCTION.html +1 -1
  107. package/docs/html/variables/RXAP_USE_METHOD.html +1 -1
  108. package/docs/html/variables/RXAP_USE_REMOTE_METHOD.html +1 -1
  109. package/docs/html/variables/SUBMIT_CONTEXT_FORM_ADAPTER_METHOD.html +1 -1
  110. package/docs/html/variables/TO_DISPLAY_FUNCTION_NAME.html +1 -1
  111. package/docs/markdown/README.md +1 -1
  112. package/docs/markdown/classes/AutocompleteOptionsFromMethodDirective.md +38 -40
  113. package/docs/markdown/classes/ControlDataSource.md +51 -51
  114. package/docs/markdown/classes/ControlHideShowDirective.md +9 -9
  115. package/docs/markdown/classes/ExtractControlFromParentMixin.md +3 -3
  116. package/docs/markdown/classes/ExtractControlMixin.md +6 -6
  117. package/docs/markdown/classes/ExtractDataSourcesMixin.md +3 -3
  118. package/docs/markdown/classes/ExtractFormDefinitionMixin.md +3 -3
  119. package/docs/markdown/classes/ExtractFunctionMixin.md +5 -5
  120. package/docs/markdown/classes/ExtractFunctionsMixin.md +3 -3
  121. package/docs/markdown/classes/ExtractIsValueFunctionMixin.md +11 -11
  122. package/docs/markdown/classes/ExtractMethodMixin.md +5 -5
  123. package/docs/markdown/classes/ExtractMethodsMixin.md +3 -3
  124. package/docs/markdown/classes/ExtractOptionsDataSourceMixin.md +17 -17
  125. package/docs/markdown/classes/ExtractOptionsMethodMixin.md +11 -11
  126. package/docs/markdown/classes/ExtractRemoteMethodsMixin.md +3 -3
  127. package/docs/markdown/classes/ExtractResolveMethodMixin.md +11 -11
  128. package/docs/markdown/classes/ExtractToDisplayFunctionMixin.md +11 -11
  129. package/docs/markdown/classes/ForFormArrayItemsDirective.md +5 -5
  130. package/docs/markdown/classes/FormArrayAddItemButtonDirective.md +12 -12
  131. package/docs/markdown/classes/FormArrayItemButton.md +19 -19
  132. package/docs/markdown/classes/FormArrayItemRemoveButtonDirective.md +20 -20
  133. package/docs/markdown/classes/FormArrayItemRestoreButtonDirective.md +19 -19
  134. package/docs/markdown/classes/FormArrayRemovableDirective.md +10 -10
  135. package/docs/markdown/classes/FormSystemControlDirective.md +14 -14
  136. package/docs/markdown/classes/FormSystemDirectivesModule.md +2 -2
  137. package/docs/markdown/classes/InputSelectOptionsDirective.md +28 -28
  138. package/docs/markdown/classes/IsEqualToDirective.md +5 -5
  139. package/docs/markdown/classes/IsSelectableValueDirective.md +19 -19
  140. package/docs/markdown/classes/NoopResolveMethod.md +3 -3
  141. package/docs/markdown/classes/OptionsFromMethodDirective.md +28 -30
  142. package/docs/markdown/classes/OptionsFromRemoteMethodDirective.md +10 -12
  143. package/docs/markdown/classes/RxapFormSystemError.md +25 -13
  144. package/docs/markdown/classes/SubmitContextFormAdapter.md +32 -32
  145. package/docs/markdown/classes/TestNgControl.md +29 -29
  146. package/docs/markdown/enumerations/FormSystemMetadataKeys.md +6 -6
  147. package/docs/markdown/functions/ApplyUseFunctionAdapters.md +2 -2
  148. package/docs/markdown/functions/ApplyUseMethodAdapters.md +2 -2
  149. package/docs/markdown/functions/ComposeOptionsTransformers.md +2 -2
  150. package/docs/markdown/functions/FormContextFromActivatedRouteFactory.md +2 -2
  151. package/docs/markdown/functions/ResolveByUuidParameter.md +2 -2
  152. package/docs/markdown/functions/ResolveByUuidResultFactory.md +2 -2
  153. package/docs/markdown/functions/SubmitContextFormAdapterFactory.md +2 -2
  154. package/docs/markdown/functions/UseAutocompleteIsValueFunction.md +2 -2
  155. package/docs/markdown/functions/UseAutocompleteOptionsMethod.md +4 -4
  156. package/docs/markdown/functions/UseAutocompleteResolveMethod.md +2 -2
  157. package/docs/markdown/functions/UseAutocompleteToDisplayFunction.md +2 -2
  158. package/docs/markdown/functions/UseComponent.md +2 -2
  159. package/docs/markdown/functions/UseDataSource.md +2 -2
  160. package/docs/markdown/functions/UseFormComponent.md +2 -2
  161. package/docs/markdown/functions/UseFunction.md +2 -2
  162. package/docs/markdown/functions/UseHideFunction.md +2 -2
  163. package/docs/markdown/functions/UseIsValueFunction.md +3 -3
  164. package/docs/markdown/functions/UseMethod.md +2 -2
  165. package/docs/markdown/functions/UseOptionsDataSource.md +2 -2
  166. package/docs/markdown/functions/UseOptionsMethod.md +2 -2
  167. package/docs/markdown/functions/UseOptionsRemoteMethod.md +2 -2
  168. package/docs/markdown/functions/UseRemoteMethod.md +2 -2
  169. package/docs/markdown/functions/UseResolveMethod.md +3 -3
  170. package/docs/markdown/functions/UseShowFunction.md +2 -2
  171. package/docs/markdown/functions/UseToDisplayFunction.md +3 -3
  172. package/docs/markdown/functions/controlDataSource.md +2 -2
  173. package/docs/markdown/globals.md +2 -2
  174. package/docs/markdown/interfaces/AutocompleteOptionsFromMethodDirectiveParameters.md +3 -3
  175. package/docs/markdown/interfaces/AutocompleteOptionsFromMethodDirectiveSettings.md +3 -3
  176. package/docs/markdown/interfaces/AutocompleteOptionsFromRemoteMethodTemplateContext.md +3 -3
  177. package/docs/markdown/interfaces/ControlHideShowOptions.md +3 -3
  178. package/docs/markdown/interfaces/ControlWithDataSource.md +3 -3
  179. package/docs/markdown/interfaces/ForFormArrayItemsDirectiveContext.md +9 -9
  180. package/docs/markdown/interfaces/InputSelectOptionsSettings.md +6 -6
  181. package/docs/markdown/interfaces/InputSelectOptionsTemplateContext.md +3 -3
  182. package/docs/markdown/interfaces/OptionsFromMethodDirectiveSettings.md +2 -2
  183. package/docs/markdown/interfaces/OptionsFromMethodTemplateContext.md +3 -3
  184. package/docs/markdown/interfaces/OptionsFromRemoteMethodTemplateContext.md +3 -3
  185. package/docs/markdown/interfaces/UseDataSourceSettings.md +3 -3
  186. package/docs/markdown/interfaces/UseDataSourceValue.md +5 -5
  187. package/docs/markdown/interfaces/UseFunctionConfig.md +3 -3
  188. package/docs/markdown/interfaces/UseFunctionDefinition.md +4 -4
  189. package/docs/markdown/interfaces/UseMethodConfig.md +3 -3
  190. package/docs/markdown/interfaces/UseMethodDefinition.md +4 -4
  191. package/docs/markdown/type-aliases/ControlHideShowFunction.md +2 -2
  192. package/docs/markdown/type-aliases/FunctionParameterAdapterFunction.md +2 -2
  193. package/docs/markdown/type-aliases/FunctionResultAdapterFunction.md +2 -2
  194. package/docs/markdown/type-aliases/MethodParameterAdapterFunction.md +2 -2
  195. package/docs/markdown/type-aliases/MethodResultAdapterFunction.md +2 -2
  196. package/docs/markdown/type-aliases/OptionsMethod.md +2 -2
  197. package/docs/markdown/type-aliases/UseFunctionType.md +2 -2
  198. package/docs/markdown/type-aliases/UseOptionsDataSourceSettings.md +2 -2
  199. package/docs/markdown/variables/DATA_SOURCE_NAME.md +2 -2
  200. package/docs/markdown/variables/IS_VALUE_FUNCTION_NAME.md +2 -2
  201. package/docs/markdown/variables/OPTIONS_METHOD_NAME.md +2 -2
  202. package/docs/markdown/variables/REMOTE_METHOD_NAME.md +2 -2
  203. package/docs/markdown/variables/RESOLVE_METHOD_NAME.md +2 -2
  204. package/docs/markdown/variables/RXAP_FORM_CONTROL_SOURCE.md +2 -2
  205. package/docs/markdown/variables/RXAP_FORM_SYSTEM_HIDE_METADATA.md +2 -2
  206. package/docs/markdown/variables/RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS.md +2 -2
  207. package/docs/markdown/variables/RXAP_FORM_SYSTEM_SHOW_METADATA.md +2 -2
  208. package/docs/markdown/variables/RXAP_USE_FUNCTION.md +2 -2
  209. package/docs/markdown/variables/RXAP_USE_METHOD.md +2 -2
  210. package/docs/markdown/variables/RXAP_USE_REMOTE_METHOD.md +2 -2
  211. package/docs/markdown/variables/SUBMIT_CONTEXT_FORM_ADAPTER_METHOD.md +2 -2
  212. package/docs/markdown/variables/TO_DISPLAY_FUNCTION_NAME.md +2 -2
  213. package/docs/wiki/Class.AutocompleteOptionsFromMethodDirective.md +37 -39
  214. package/docs/wiki/Class.ControlDataSource.md +50 -50
  215. package/docs/wiki/Class.ControlHideShowDirective.md +8 -8
  216. package/docs/wiki/Class.ExtractControlFromParentMixin.md +2 -2
  217. package/docs/wiki/Class.ExtractControlMixin.md +5 -5
  218. package/docs/wiki/Class.ExtractDataSourcesMixin.md +2 -2
  219. package/docs/wiki/Class.ExtractFormDefinitionMixin.md +2 -2
  220. package/docs/wiki/Class.ExtractFunctionMixin.md +4 -4
  221. package/docs/wiki/Class.ExtractFunctionsMixin.md +2 -2
  222. package/docs/wiki/Class.ExtractIsValueFunctionMixin.md +10 -10
  223. package/docs/wiki/Class.ExtractMethodMixin.md +4 -4
  224. package/docs/wiki/Class.ExtractMethodsMixin.md +2 -2
  225. package/docs/wiki/Class.ExtractOptionsDataSourceMixin.md +16 -16
  226. package/docs/wiki/Class.ExtractOptionsMethodMixin.md +10 -10
  227. package/docs/wiki/Class.ExtractRemoteMethodsMixin.md +2 -2
  228. package/docs/wiki/Class.ExtractResolveMethodMixin.md +10 -10
  229. package/docs/wiki/Class.ExtractToDisplayFunctionMixin.md +10 -10
  230. package/docs/wiki/Class.ForFormArrayItemsDirective.md +4 -4
  231. package/docs/wiki/Class.FormArrayAddItemButtonDirective.md +11 -11
  232. package/docs/wiki/Class.FormArrayItemButton.md +18 -18
  233. package/docs/wiki/Class.FormArrayItemRemoveButtonDirective.md +19 -19
  234. package/docs/wiki/Class.FormArrayItemRestoreButtonDirective.md +18 -18
  235. package/docs/wiki/Class.FormArrayRemovableDirective.md +9 -9
  236. package/docs/wiki/Class.FormSystemControlDirective.md +13 -13
  237. package/docs/wiki/Class.FormSystemDirectivesModule.md +1 -1
  238. package/docs/wiki/Class.InputSelectOptionsDirective.md +27 -27
  239. package/docs/wiki/Class.IsEqualToDirective.md +4 -4
  240. package/docs/wiki/Class.IsSelectableValueDirective.md +18 -18
  241. package/docs/wiki/Class.NoopResolveMethod.md +2 -2
  242. package/docs/wiki/Class.OptionsFromMethodDirective.md +27 -29
  243. package/docs/wiki/Class.OptionsFromRemoteMethodDirective.md +9 -11
  244. package/docs/wiki/Class.RxapFormSystemError.md +24 -12
  245. package/docs/wiki/Class.SubmitContextFormAdapter.md +31 -31
  246. package/docs/wiki/Class.TestNgControl.md +28 -28
  247. package/docs/wiki/Enumeration.FormSystemMetadataKeys.md +5 -5
  248. package/docs/wiki/Function.ApplyUseFunctionAdapters.md +1 -1
  249. package/docs/wiki/Function.ApplyUseMethodAdapters.md +1 -1
  250. package/docs/wiki/Function.ComposeOptionsTransformers.md +1 -1
  251. package/docs/wiki/Function.FormContextFromActivatedRouteFactory.md +1 -1
  252. package/docs/wiki/Function.ResolveByUuidParameter.md +1 -1
  253. package/docs/wiki/Function.ResolveByUuidResultFactory.md +1 -1
  254. package/docs/wiki/Function.SubmitContextFormAdapterFactory.md +1 -1
  255. package/docs/wiki/Function.UseAutocompleteIsValueFunction.md +1 -1
  256. package/docs/wiki/Function.UseAutocompleteOptionsMethod.md +3 -3
  257. package/docs/wiki/Function.UseAutocompleteResolveMethod.md +1 -1
  258. package/docs/wiki/Function.UseAutocompleteToDisplayFunction.md +1 -1
  259. package/docs/wiki/Function.UseComponent.md +1 -1
  260. package/docs/wiki/Function.UseDataSource.md +1 -1
  261. package/docs/wiki/Function.UseFormComponent.md +1 -1
  262. package/docs/wiki/Function.UseFunction.md +1 -1
  263. package/docs/wiki/Function.UseHideFunction.md +1 -1
  264. package/docs/wiki/Function.UseIsValueFunction.md +2 -2
  265. package/docs/wiki/Function.UseMethod.md +1 -1
  266. package/docs/wiki/Function.UseOptionsDataSource.md +1 -1
  267. package/docs/wiki/Function.UseOptionsMethod.md +1 -1
  268. package/docs/wiki/Function.UseOptionsRemoteMethod.md +1 -1
  269. package/docs/wiki/Function.UseRemoteMethod.md +1 -1
  270. package/docs/wiki/Function.UseResolveMethod.md +2 -2
  271. package/docs/wiki/Function.UseShowFunction.md +1 -1
  272. package/docs/wiki/Function.UseToDisplayFunction.md +2 -2
  273. package/docs/wiki/Function.controlDataSource.md +1 -1
  274. package/docs/wiki/Interface.AutocompleteOptionsFromMethodDirectiveParameters.md +2 -2
  275. package/docs/wiki/Interface.AutocompleteOptionsFromMethodDirectiveSettings.md +2 -2
  276. package/docs/wiki/Interface.AutocompleteOptionsFromRemoteMethodTemplateContext.md +2 -2
  277. package/docs/wiki/Interface.ControlHideShowOptions.md +2 -2
  278. package/docs/wiki/Interface.ControlWithDataSource.md +2 -2
  279. package/docs/wiki/Interface.ForFormArrayItemsDirectiveContext.md +8 -8
  280. package/docs/wiki/Interface.InputSelectOptionsSettings.md +5 -5
  281. package/docs/wiki/Interface.InputSelectOptionsTemplateContext.md +2 -2
  282. package/docs/wiki/Interface.OptionsFromMethodDirectiveSettings.md +1 -1
  283. package/docs/wiki/Interface.OptionsFromMethodTemplateContext.md +2 -2
  284. package/docs/wiki/Interface.OptionsFromRemoteMethodTemplateContext.md +2 -2
  285. package/docs/wiki/Interface.UseDataSourceSettings.md +2 -2
  286. package/docs/wiki/Interface.UseDataSourceValue.md +4 -4
  287. package/docs/wiki/Interface.UseFunctionConfig.md +2 -2
  288. package/docs/wiki/Interface.UseFunctionDefinition.md +3 -3
  289. package/docs/wiki/Interface.UseMethodConfig.md +2 -2
  290. package/docs/wiki/Interface.UseMethodDefinition.md +3 -3
  291. package/docs/wiki/TypeAlias.ControlHideShowFunction.md +1 -1
  292. package/docs/wiki/TypeAlias.FunctionParameterAdapterFunction.md +1 -1
  293. package/docs/wiki/TypeAlias.FunctionResultAdapterFunction.md +1 -1
  294. package/docs/wiki/TypeAlias.MethodParameterAdapterFunction.md +1 -1
  295. package/docs/wiki/TypeAlias.MethodResultAdapterFunction.md +1 -1
  296. package/docs/wiki/TypeAlias.OptionsMethod.md +1 -1
  297. package/docs/wiki/TypeAlias.UseFunctionType.md +1 -1
  298. package/docs/wiki/TypeAlias.UseOptionsDataSourceSettings.md +1 -1
  299. package/docs/wiki/Variable.DATA_SOURCE_NAME.md +1 -1
  300. package/docs/wiki/Variable.IS_VALUE_FUNCTION_NAME.md +1 -1
  301. package/docs/wiki/Variable.OPTIONS_METHOD_NAME.md +1 -1
  302. package/docs/wiki/Variable.REMOTE_METHOD_NAME.md +1 -1
  303. package/docs/wiki/Variable.RESOLVE_METHOD_NAME.md +1 -1
  304. package/docs/wiki/Variable.RXAP_FORM_CONTROL_SOURCE.md +1 -1
  305. package/docs/wiki/Variable.RXAP_FORM_SYSTEM_HIDE_METADATA.md +1 -1
  306. package/docs/wiki/Variable.RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS.md +1 -1
  307. package/docs/wiki/Variable.RXAP_FORM_SYSTEM_SHOW_METADATA.md +1 -1
  308. package/docs/wiki/Variable.RXAP_USE_FUNCTION.md +1 -1
  309. package/docs/wiki/Variable.RXAP_USE_METHOD.md +1 -1
  310. package/docs/wiki/Variable.RXAP_USE_REMOTE_METHOD.md +1 -1
  311. package/docs/wiki/Variable.SUBMIT_CONTEXT_FORM_ADAPTER_METHOD.md +1 -1
  312. package/docs/wiki/Variable.TO_DISPLAY_FUNCTION_NAME.md +1 -1
  313. package/docs/wiki/globals.md +1 -1
  314. package/fesm2022/rxap-form-system.mjs +57 -57
  315. package/fesm2022/rxap-form-system.mjs.map +1 -1
  316. package/package.json +49 -44
  317. package/types/rxap-form-system.d.ts +618 -0
  318. package/index.d.ts +0 -41
  319. package/lib/control-data-source.d.ts +0 -13
  320. package/lib/control-with-data-source.d.ts +0 -5
  321. package/lib/decorators/metadata-keys.d.ts +0 -6
  322. package/lib/decorators/use-component.d.ts +0 -3
  323. package/lib/decorators/use-data-source.d.ts +0 -14
  324. package/lib/decorators/use-form-component.d.ts +0 -7
  325. package/lib/directives/array/for-form-array-items.directive.d.ts +0 -26
  326. package/lib/directives/array/form-array-add-item-button.directive.d.ts +0 -20
  327. package/lib/directives/array/form-array-item-button.d.ts +0 -30
  328. package/lib/directives/array/form-array-item-remove-button.directive.d.ts +0 -16
  329. package/lib/directives/array/form-array-item-restore-button.directive.d.ts +0 -9
  330. package/lib/directives/array/form-array-removable.directive.d.ts +0 -19
  331. package/lib/directives/autocomplete-options-from-method.directive.d.ts +0 -76
  332. package/lib/directives/control-hide-show.directive.d.ts +0 -40
  333. package/lib/directives/form-directives.module.d.ts +0 -8
  334. package/lib/directives/input-select-options.directive.d.ts +0 -74
  335. package/lib/directives/options-from-method.directive.d.ts +0 -39
  336. package/lib/directives/options-from-remote-method.directive.d.ts +0 -38
  337. package/lib/directives/test-ng-control.d.ts +0 -7
  338. package/lib/error.d.ts +0 -4
  339. package/lib/form-context-from-activated-route.factory.d.ts +0 -2
  340. package/lib/form-system-control.directive.d.ts +0 -37
  341. package/lib/mixins/adapters.d.ts +0 -9
  342. package/lib/mixins/apply-use-function.adapters.d.ts +0 -3
  343. package/lib/mixins/apply-use-method.adapters.d.ts +0 -4
  344. package/lib/mixins/extract-control-from-parent.mixin.d.ts +0 -5
  345. package/lib/mixins/extract-control.mixin.d.ts +0 -9
  346. package/lib/mixins/extract-data-sources.mixin.d.ts +0 -5
  347. package/lib/mixins/extract-form-definition.mixin.d.ts +0 -4
  348. package/lib/mixins/extract-function.mixin.d.ts +0 -9
  349. package/lib/mixins/extract-functions.mixin.d.ts +0 -19
  350. package/lib/mixins/extract-is-value-function.mixin.d.ts +0 -13
  351. package/lib/mixins/extract-method.mixin.d.ts +0 -9
  352. package/lib/mixins/extract-methods.mixin.d.ts +0 -20
  353. package/lib/mixins/extract-options-data-source.mixin.d.ts +0 -26
  354. package/lib/mixins/extract-options-method.mixin.d.ts +0 -17
  355. package/lib/mixins/extract-resolve-method.mixin.d.ts +0 -16
  356. package/lib/mixins/extract-to-display-function.mixin.d.ts +0 -13
  357. package/lib/submit-context-form-adapter.factory.d.ts +0 -13
  358. package/lib/validators/is-equal-to.d.ts +0 -17
  359. package/lib/validators/is-selectable-value.directive.d.ts +0 -16
package/index.d.ts DELETED
@@ -1,41 +0,0 @@
1
- export * from './lib/validators/is-equal-to';
2
- export * from './lib/validators/is-selectable-value.directive';
3
- export * from './lib/mixins/adapters';
4
- export * from './lib/mixins/apply-use-function.adapters';
5
- export * from './lib/mixins/apply-use-method.adapters';
6
- export * from './lib/mixins/extract-control-from-parent.mixin';
7
- export * from './lib/mixins/extract-control.mixin';
8
- export * from './lib/mixins/extract-data-sources.mixin';
9
- export * from './lib/mixins/extract-form-definition.mixin';
10
- export * from './lib/mixins/extract-function.mixin';
11
- export * from './lib/mixins/extract-functions.mixin';
12
- export * from './lib/mixins/extract-is-value-function.mixin';
13
- export * from './lib/mixins/extract-method.mixin';
14
- export * from './lib/mixins/extract-methods.mixin';
15
- export * from './lib/mixins/extract-options-data-source.mixin';
16
- export * from './lib/mixins/extract-options-method.mixin';
17
- export * from './lib/mixins/extract-resolve-method.mixin';
18
- export * from './lib/mixins/extract-to-display-function.mixin';
19
- export * from './lib/directives/array/for-form-array-items.directive';
20
- export * from './lib/directives/array/form-array-add-item-button.directive';
21
- export * from './lib/directives/array/form-array-item-button';
22
- export * from './lib/directives/array/form-array-item-remove-button.directive';
23
- export * from './lib/directives/array/form-array-item-restore-button.directive';
24
- export * from './lib/directives/array/form-array-removable.directive';
25
- export * from './lib/directives/autocomplete-options-from-method.directive';
26
- export * from './lib/directives/control-hide-show.directive';
27
- export * from './lib/directives/form-directives.module';
28
- export * from './lib/directives/input-select-options.directive';
29
- export * from './lib/directives/options-from-method.directive';
30
- export * from './lib/directives/options-from-remote-method.directive';
31
- export * from './lib/directives/test-ng-control';
32
- export * from './lib/decorators/metadata-keys';
33
- export * from './lib/decorators/use-component';
34
- export * from './lib/decorators/use-data-source';
35
- export * from './lib/decorators/use-form-component';
36
- export * from './lib/control-data-source';
37
- export * from './lib/control-with-data-source';
38
- export * from './lib/error';
39
- export * from './lib/form-context-from-activated-route.factory';
40
- export * from './lib/form-system-control.directive';
41
- export * from './lib/submit-context-form-adapter.factory';
@@ -1,13 +0,0 @@
1
- import { BaseDataSource, BaseDataSourceMetadata } from '@rxap/data-source';
2
- import { InjectionToken } from '@angular/core';
3
- import { AbstractControl } from '@rxap/forms';
4
- import * as i0 from "@angular/core";
5
- export declare const RXAP_FORM_CONTROL_SOURCE: InjectionToken<unknown>;
6
- export declare class ControlDataSource extends BaseDataSource {
7
- private readonly control;
8
- constructor(control: AbstractControl, metadata?: BaseDataSourceMetadata | null);
9
- init(): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<ControlDataSource, [null, { optional: true; }]>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<ControlDataSource>;
12
- }
13
- export declare function controlDataSource(control: AbstractControl): ControlDataSource;
@@ -1,5 +0,0 @@
1
- import { DataSource } from '@rxap/pattern';
2
- import { UseDataSourceSettings } from './decorators/use-data-source';
3
- export interface ControlWithDataSource<Source = any, Target = any> {
4
- setDataSource(name: string, dataSource: DataSource, settings?: UseDataSourceSettings<Source, Target>): void;
5
- }
@@ -1,6 +0,0 @@
1
- export declare enum FormSystemMetadataKeys {
2
- COMPONENTS = "rxap/form-system/components",
3
- DATA_SOURCES = "rxap/form-system/data-sources",
4
- COMPONENTS_PROPERTIES = "rxap/form-system/components-properties",
5
- FORM_COMPONENT = "rxap/window-form-system/form-component"
6
- }
@@ -1,3 +0,0 @@
1
- import { Constructor } from '@rxap/utilities';
2
- import { ControlValueAccessor } from '@angular/forms';
3
- export declare function UseComponent<Component extends ControlValueAccessor>(component: Constructor<Component>, setProperties?: Partial<Record<keyof Component, any>>): (target: any, propertyKey: string) => void;
@@ -1,14 +0,0 @@
1
- import { BaseDataSource } from '@rxap/data-source';
2
- import { IdOrInstanceOrToken } from '@rxap/definition';
3
- export interface UseDataSourceSettings<Source = any, Target = Source> {
4
- transformer?: (source: Source) => Target;
5
- }
6
- export interface UseDataSourceValue<Source = any, Target = Source> {
7
- dataSource: IdOrInstanceOrToken<BaseDataSource>;
8
- settings?: UseDataSourceSettings<Source, Target>;
9
- /**
10
- * The last value of the data source
11
- */
12
- lastValue?: Target;
13
- }
14
- export declare function UseDataSource<Data>(dataSource: IdOrInstanceOrToken<BaseDataSource<Data>>, name: string, settings?: UseDataSourceSettings): (target: any, propertyKey: string) => void;
@@ -1,7 +0,0 @@
1
- import { Constructor } from '@rxap/utilities';
2
- /**
3
- * Links a component with a form definition
4
- *
5
- * @param component
6
- */
7
- export declare function UseFormComponent(component: Constructor): (target: any) => void;
@@ -1,26 +0,0 @@
1
- import { AfterViewInit, ChangeDetectorRef, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
2
- import { ControlContainer, UntypedFormArray, UntypedFormGroup } from '@angular/forms';
3
- import * as i0 from "@angular/core";
4
- export interface ForFormArrayItemsDirectiveContext {
5
- $implicit: UntypedFormGroup;
6
- index: number;
7
- last: boolean;
8
- first: boolean;
9
- even: boolean;
10
- odd: boolean;
11
- array: UntypedFormArray;
12
- }
13
- export declare class ForFormArrayItemsDirective implements AfterViewInit, OnDestroy {
14
- private readonly container;
15
- private readonly template;
16
- private readonly viewContainerRef;
17
- private readonly cdr;
18
- private _formArrayValueSubscription?;
19
- private formArray;
20
- constructor(container: ControlContainer, template: TemplateRef<ForFormArrayItemsDirectiveContext>, viewContainerRef: ViewContainerRef, cdr: ChangeDetectorRef);
21
- ngAfterViewInit(): void;
22
- ngOnDestroy(): void;
23
- private render;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<ForFormArrayItemsDirective, [{ skipSelf: true; }, null, null, null]>;
25
- static ɵdir: i0.ɵɵDirectiveDeclaration<ForFormArrayItemsDirective, "[rxapForFormArrayItem]", never, {}, {}, never, never, true, never>;
26
- }
@@ -1,20 +0,0 @@
1
- import { AfterViewInit, OnDestroy } from '@angular/core';
2
- import { ControlContainer } from '@angular/forms';
3
- import { MatButton } from '@angular/material/button';
4
- import { RxapFormArray } from '@rxap/forms';
5
- import * as i0 from "@angular/core";
6
- export declare class FormArrayAddItemButtonDirective implements AfterViewInit, OnDestroy {
7
- protected readonly parent: ControlContainer;
8
- protected readonly matButton: MatButton;
9
- type: string;
10
- protected formArray: RxapFormArray;
11
- private _controlDisabledSubscription?;
12
- constructor(parent: ControlContainer, matButton: MatButton);
13
- get disabled(): boolean;
14
- protected get isDisabled(): boolean;
15
- ngAfterViewInit(): void;
16
- ngOnDestroy(): void;
17
- protected onClick(): void;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<FormArrayAddItemButtonDirective, [{ optional: true; skipSelf: true; }, { optional: true; }]>;
19
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormArrayAddItemButtonDirective, "[rxapFormArrayItemAddButton]", never, {}, {}, never, never, true, never>;
20
- }
@@ -1,30 +0,0 @@
1
- import { AfterViewInit, ElementRef, OnDestroy, Renderer2 } from '@angular/core';
2
- import { ControlContainer } from '@angular/forms';
3
- import { MatButton } from '@angular/material/button';
4
- import { RxapFormArray, RxapFormControl, RxapFormGroup } from '@rxap/forms';
5
- import * as i0 from "@angular/core";
6
- export declare abstract class FormArrayItemButton implements AfterViewInit, OnDestroy {
7
- protected readonly parent: ControlContainer;
8
- protected readonly matButton: MatButton;
9
- protected readonly renderer: Renderer2;
10
- protected readonly elementRef: ElementRef;
11
- type: string;
12
- protected formGroup: RxapFormGroup<{
13
- deleted: boolean;
14
- }>;
15
- protected formArray: RxapFormArray;
16
- protected deletedControl: RxapFormControl<boolean>;
17
- private _controlDisabledSubscription?;
18
- private _deletedControlValueSubscription?;
19
- constructor(parent: ControlContainer, matButton: MatButton, renderer: Renderer2, elementRef: ElementRef);
20
- get disabled(): boolean;
21
- get isDeleted(): boolean;
22
- get index(): number;
23
- protected get isDisabled(): boolean;
24
- ngAfterViewInit(): void;
25
- ngOnDestroy(): void;
26
- protected abstract onClick(): void;
27
- protected abstract updateDisplayStyle(): void;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<FormArrayItemButton, [{ skipSelf: true; }, { optional: true; }, null, null]>;
29
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormArrayItemButton, never, never, {}, {}, never, never, true, never>;
30
- }
@@ -1,16 +0,0 @@
1
- import { AfterViewInit, OnDestroy } from '@angular/core';
2
- import { RxapFormGroup } from '@rxap/forms';
3
- import { FormArrayItemButton } from './form-array-item-button';
4
- import * as i0 from "@angular/core";
5
- export declare class FormArrayItemRemoveButtonDirective extends FormArrayItemButton implements AfterViewInit, OnDestroy {
6
- /**
7
- * A function that returns if the control should be temporarily deleted.
8
- * true - in the given form group the deleted control is set to true
9
- * false - the form group is removed from the (parent) form array
10
- */
11
- shouldTemporarilyDeleted: (formGroup: RxapFormGroup) => boolean;
12
- protected onClick(): void;
13
- protected updateDisplayStyle(): void;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<FormArrayItemRemoveButtonDirective, never>;
15
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormArrayItemRemoveButtonDirective, "button[rxapFormArrayItemRemoveButton]", never, { "shouldTemporarilyDeleted": { "alias": "shouldTemporarilyDeleted"; "required": false; }; }, {}, never, never, true, never>;
16
- }
@@ -1,9 +0,0 @@
1
- import { AfterViewInit, OnDestroy } from '@angular/core';
2
- import { FormArrayItemButton } from './form-array-item-button';
3
- import * as i0 from "@angular/core";
4
- export declare class FormArrayItemRestoreButtonDirective extends FormArrayItemButton implements AfterViewInit, OnDestroy {
5
- onClick(): void;
6
- updateDisplayStyle(): void;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<FormArrayItemRestoreButtonDirective, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormArrayItemRestoreButtonDirective, "button[rxapFormArrayItemRestoreButton]", never, {}, {}, never, never, true, never>;
9
- }
@@ -1,19 +0,0 @@
1
- import { AfterViewInit, OnDestroy } from '@angular/core';
2
- import { ControlContainer } from '@angular/forms';
3
- import { RxapFormControl, RxapFormGroup } from '@rxap/forms';
4
- import * as i0 from "@angular/core";
5
- export declare class FormArrayRemovableDirective implements AfterViewInit, OnDestroy {
6
- protected readonly parent: ControlContainer;
7
- protected formGroup: RxapFormGroup<{
8
- deleted: boolean;
9
- }>;
10
- protected deletedControl: RxapFormControl<boolean>;
11
- private _deletedControlValueSubscription?;
12
- constructor(parent: ControlContainer);
13
- get isDeleted(): boolean;
14
- protected get isDisabled(): boolean;
15
- ngAfterViewInit(): void;
16
- ngOnDestroy(): void;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<FormArrayRemovableDirective, [{ optional: true; }]>;
18
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormArrayRemovableDirective, "[rxapFormArrayRemovable]", never, {}, {}, never, never, true, never>;
19
- }
@@ -1,76 +0,0 @@
1
- import { AfterViewInit, Injector, OnDestroy, ProviderToken } from '@angular/core';
2
- import { NgControl } from '@angular/forms';
3
- import { MatAutocomplete } from '@angular/material/autocomplete';
4
- import { MatFormField } from '@angular/material/form-field';
5
- import { OpenApiRemoteMethodParameter } from '@rxap/open-api/remote-method';
6
- import { Method, MethodWithParameters } from '@rxap/pattern';
7
- import { ControlOption, ControlOptions } from '@rxap/utilities';
8
- import { Observable } from 'rxjs';
9
- import { ExtractIsValueFunctionMixin } from '../mixins/extract-is-value-function.mixin';
10
- import { UseMethodConfig } from '../mixins/extract-methods.mixin';
11
- import { ExtractResolveMethodMixin } from '../mixins/extract-resolve-method.mixin';
12
- import { ExtractToDisplayFunctionMixin } from '../mixins/extract-to-display-function.mixin';
13
- import { OptionsFromMethodDirective, OptionsFromMethodDirectiveSettings } from './options-from-method.directive';
14
- import * as i0 from "@angular/core";
15
- export declare function UseAutocompleteOptionsMethod(method: ProviderToken<MethodWithParameters<ControlOptions, AutocompleteOptionsFromMethodDirectiveParameters>>): any;
16
- export declare function UseAutocompleteOptionsMethod(method: ProviderToken<MethodWithParameters<ControlOptions, OpenApiRemoteMethodParameter<AutocompleteOptionsFromMethodDirectiveParameters>>>): any;
17
- export declare function UseAutocompleteOptionsMethod(method: ProviderToken<MethodWithParameters>, config: UseMethodConfig<ControlOptions, AutocompleteOptionsFromMethodDirectiveParameters>): any;
18
- export declare function UseAutocompleteResolveMethod<Value = unknown>(method: ProviderToken<MethodWithParameters<ControlOption<Value>, OpenApiRemoteMethodParameter<{
19
- value: string;
20
- }>>>, config?: UseMethodConfig): any;
21
- export declare function UseAutocompleteIsValueFunction(isValue: (value: any) => boolean): any;
22
- export declare function UseAutocompleteToDisplayFunction(toDisplay: (value: any) => string): any;
23
- export interface AutocompleteOptionsFromRemoteMethodTemplateContext {
24
- $implicit: ControlOption;
25
- }
26
- export interface AutocompleteOptionsFromMethodDirectiveSettings extends OptionsFromMethodDirectiveSettings {
27
- filteredOptions?: boolean;
28
- }
29
- export interface AutocompleteOptionsFromMethodDirectiveParameters<Value = any> {
30
- search?: Value | null;
31
- }
32
- export interface AutocompleteOptionsFromMethodDirective<Value = any, Parameters extends AutocompleteOptionsFromMethodDirectiveParameters<Value> = AutocompleteOptionsFromMethodDirectiveParameters<Value>> extends ExtractResolveMethodMixin, ExtractIsValueFunctionMixin, ExtractToDisplayFunctionMixin, AfterViewInit, OnDestroy {
33
- }
34
- export declare class NoopResolveMethod<Value> implements Method<ControlOption, {
35
- value: Value;
36
- }> {
37
- call({ value }: {
38
- value: Value;
39
- }): Promise<ControlOption>;
40
- static ɵfac: i0.ɵɵFactoryDeclaration<NoopResolveMethod<any>, never>;
41
- static ɵprov: i0.ɵɵInjectableDeclaration<NoopResolveMethod<any>>;
42
- }
43
- export declare class AutocompleteOptionsFromMethodDirective<Value = any, Parameters extends AutocompleteOptionsFromMethodDirectiveParameters<Value> = AutocompleteOptionsFromMethodDirectiveParameters<Value>> extends OptionsFromMethodDirective<Value, Parameters> implements AfterViewInit, OnDestroy {
44
- static ngTemplateContextGuard(dir: OptionsFromMethodDirective, ctx: any): ctx is AutocompleteOptionsFromRemoteMethodTemplateContext;
45
- parameters?: Parameters;
46
- resetOnChange?: Value;
47
- matAutocomplete?: MatAutocomplete;
48
- method: Method<ControlOptions, Parameters>;
49
- resolveMethod?: MethodWithParameters<ControlOption, {
50
- value: Value;
51
- } & Parameters>;
52
- isValue?: (value: any) => boolean;
53
- toDisplay?: (value: any) => string;
54
- protected ngControl: NgControl | null;
55
- protected matFormField: MatFormField | null;
56
- protected injector: Injector;
57
- protected settings: AutocompleteOptionsFromMethodDirectiveSettings;
58
- /**
59
- * This flag is used to prevent the setValue is called for each refresh
60
- * of the options list. This is needed because the setValue method will
61
- * trigger a new refresh of the options list. This results in an endless
62
- * call stack. This flag is set to true if the setValue method is called
63
- * once.
64
- */
65
- private isAutocompleteToDisplayTriggered;
66
- private _subscription?;
67
- ngOnDestroy(): void;
68
- ngAfterViewInit(): Promise<void>;
69
- protected loadOptions(parameters?: Parameters): Promise<ControlOptions | null | Observable<ControlOptions | null>>;
70
- protected renderTemplate(): void;
71
- protected resolveValue(value: Value, parameters?: Parameters): Promise<ControlOptions | null>;
72
- private triggerAutocompleteToDisplay;
73
- private findOptionByValue;
74
- static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteOptionsFromMethodDirective<any, any>, never>;
75
- static ɵdir: i0.ɵɵDirectiveDeclaration<AutocompleteOptionsFromMethodDirective<any, any>, "[rxapAutocompleteOptionsFromMethod]", never, { "parameters": { "alias": "rxapAutocompleteOptionsFromMethodParameters"; "required": false; }; "resetOnChange": { "alias": "rxapAutocompleteOptionsFromMethodResetOnChange"; "required": false; }; "matAutocomplete": { "alias": "rxapAutocompleteOptionsFromMethodMatAutocomplete"; "required": false; }; "method": { "alias": "rxapAutocompleteOptionsFromMethodCall"; "required": false; }; "resolveMethod": { "alias": "rxapAutocompleteOptionsFromMethodResolve"; "required": false; }; "isValue": { "alias": "rxapAutocompleteOptionsFromMethodIsValue"; "required": false; }; "toDisplay": { "alias": "rxapAutocompleteOptionsFromMethodToDisplay"; "required": false; }; }, {}, never, never, true, never>;
76
- }
@@ -1,40 +0,0 @@
1
- import { ElementRef, OnDestroy, OnInit, Renderer2 } from '@angular/core';
2
- import { AbstractControl, RxapFormControl } from '@rxap/forms';
3
- import { ControlContainer, NgControl } from '@angular/forms';
4
- import { ExtractControlFromParentMixin } from '../mixins/extract-control-from-parent.mixin';
5
- import { ExtractFormDefinitionMixin } from '../mixins/extract-form-definition.mixin';
6
- import * as i0 from "@angular/core";
7
- export declare const RXAP_FORM_SYSTEM_SHOW_METADATA = "rxap/form-system/show-function";
8
- export declare const RXAP_FORM_SYSTEM_HIDE_METADATA = "rxap/form-system/hide-function";
9
- export declare const RXAP_FORM_SYSTEM_HIDE_SHOW_OPTIONS = "rxap/form-system/hide-show-options";
10
- export type ControlHideShowFunction<T = any> = (this: T, control: AbstractControl) => boolean | null;
11
- export interface ControlHideShowOptions {
12
- /**
13
- * Weather the hide/showFunction should be called on root group changes
14
- */
15
- rootChange?: boolean;
16
- }
17
- export declare function UseHideFunction(hideFunction: ControlHideShowFunction, options?: ControlHideShowOptions): (target: any, propertyKey: string) => void;
18
- export declare function UseShowFunction(showFunction: ControlHideShowFunction, options?: ControlHideShowOptions): (target: any, propertyKey: string) => void;
19
- export interface ControlHideShowDirective extends ExtractControlFromParentMixin, ExtractFormDefinitionMixin {
20
- }
21
- export declare class ControlHideShowDirective implements OnInit, OnDestroy {
22
- private readonly renderer;
23
- private readonly elementRef;
24
- private readonly parent;
25
- private readonly ngControl;
26
- controlId?: string;
27
- control: RxapFormControl;
28
- private subscription;
29
- constructor(renderer: Renderer2, elementRef: ElementRef, parent: ControlContainer | null, ngControl: NgControl | null);
30
- ngOnInit(): void;
31
- ngOnDestroy(): void;
32
- private extractOptions;
33
- private extractHideFunction;
34
- private extractShowFunction;
35
- private hide;
36
- private show;
37
- private reset;
38
- static ɵfac: i0.ɵɵFactoryDeclaration<ControlHideShowDirective, [null, null, { optional: true; }, { optional: true; self: true; }]>;
39
- static ɵdir: i0.ɵɵDirectiveDeclaration<ControlHideShowDirective, "[rxapControlHideShow]", never, { "controlId": { "alias": "rxapControlHideShow"; "required": false; }; }, {}, never, never, true, never>;
40
- }
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./input-select-options.directive";
3
- import * as i2 from "./control-hide-show.directive";
4
- export declare class FormSystemDirectivesModule {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<FormSystemDirectivesModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormSystemDirectivesModule, never, [typeof i1.InputSelectOptionsDirective, typeof i2.ControlHideShowDirective], [typeof i1.InputSelectOptionsDirective, typeof i2.ControlHideShowDirective]>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<FormSystemDirectivesModule>;
8
- }
@@ -1,74 +0,0 @@
1
- import { AfterViewInit, ChangeDetectorRef, Injector, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
2
- import { NgControl } from '@angular/forms';
3
- import { BaseDataSource, BaseDataSourceMetadata, BaseDataSourceViewer, DataSourceLoader } from '@rxap/data-source';
4
- import { RxapFormControl } from '@rxap/forms';
5
- import { ControlOption, ControlOptions } from '@rxap/utilities';
6
- import { Subscription } from 'rxjs';
7
- import { MatFormField } from '@angular/material/form-field';
8
- import { MatAutocomplete } from '@angular/material/autocomplete';
9
- import { ExtractOptionsDataSourceMixin, UseOptionsDataSourceSettings } from '../mixins/extract-options-data-source.mixin';
10
- import * as i0 from "@angular/core";
11
- export interface InputSelectOptionsTemplateContext {
12
- $implicit: ControlOption;
13
- }
14
- export interface InputSelectOptionsSettings<Source> extends UseOptionsDataSourceSettings<Source> {
15
- /**
16
- * true - the selected value is not send to the data source with the viewChange event.
17
- * Instead an empty object {} is send to trigger a data source refresh.
18
- *
19
- * The OpenApiDataSource expects a Paramters Object in the viewChange event. This
20
- * can couse issue if the select value object as a property that is also a parameter for
21
- * the open-api operation. For instaed the select object has the property company and
22
- * the open-api operation has a query parameter company. Then the BuildOptions method
23
- * in the OpenApiDataSource would create a HttpParams object with the param company and the
24
- * value from the select object property company. This will result in unpredictable behaviors.
25
- */
26
- ignoreSelectedValue?: boolean;
27
- /**
28
- * true - the options list is filtered by the current control value if the
29
- * control value is of type string. Then the display value of each option is
30
- * compared to the control value. If the display value of an option includes
31
- * the control value, then the option is used. This comprehensions it not type
32
- * sensitive
33
- */
34
- filteredOptions?: boolean;
35
- /**
36
- * true - the options list is only loaded once and not refreshed on each value change
37
- */
38
- loadOnce?: boolean;
39
- }
40
- export interface InputSelectOptionsDirective extends OnDestroy, AfterViewInit, ExtractOptionsDataSourceMixin {
41
- }
42
- export declare class InputSelectOptionsDirective implements OnDestroy, AfterViewInit {
43
- protected readonly template: TemplateRef<InputSelectOptionsTemplateContext>;
44
- protected readonly dataSourceLoader: DataSourceLoader;
45
- protected readonly viewContainerRef: ViewContainerRef;
46
- protected readonly injector: Injector;
47
- protected readonly cdr: ChangeDetectorRef;
48
- protected ngControl: NgControl | null;
49
- protected matFormField: MatFormField | null;
50
- viewer: BaseDataSourceViewer;
51
- metadata?: BaseDataSourceMetadata;
52
- matAutocomplete?: MatAutocomplete;
53
- protected readonly subscription: Subscription;
54
- protected control: RxapFormControl;
55
- protected dataSource: BaseDataSource<ControlOptions | Record<string, any>>;
56
- protected options: ControlOptions | Record<string, any> | null;
57
- protected settings?: InputSelectOptionsSettings<any>;
58
- /**
59
- * This flag is used to prevent the setValue is called for each refresh
60
- * of the options list. This is needed because the setValue method will
61
- * trigger a new refresh of the options list. This results in an endless
62
- * call stack. This flag is set to true if the setValue method is called
63
- * once.
64
- */
65
- private isAutocompleteToDisplayTriggered;
66
- constructor(template: TemplateRef<InputSelectOptionsTemplateContext>, dataSourceLoader: DataSourceLoader, viewContainerRef: ViewContainerRef, injector: Injector, cdr: ChangeDetectorRef, ngControl?: NgControl | null, matFormField?: MatFormField | null);
67
- ngAfterViewInit(): void;
68
- toDisplay(value: any): string;
69
- ngOnDestroy(): void;
70
- private loadOptions;
71
- protected renderTemplate(options?: ControlOptions | Record<string, any> | null): void;
72
- static ɵfac: i0.ɵɵFactoryDeclaration<InputSelectOptionsDirective, [null, null, null, null, null, { optional: true; }, { optional: true; }]>;
73
- static ɵdir: i0.ɵɵDirectiveDeclaration<InputSelectOptionsDirective, "[rxapInputSelectOptions]", never, { "viewer": { "alias": "rxapInputSelectOptionsViewer"; "required": false; }; "metadata": { "alias": "rxapInputSelectOptionsMetadata"; "required": false; }; "matAutocomplete": { "alias": "rxapInputSelectOptionsMatAutocomplete"; "required": false; }; }, {}, never, never, true, never>;
74
- }
@@ -1,39 +0,0 @@
1
- import { AfterViewInit, ChangeDetectorRef, Injector, OnChanges, OnDestroy, SimpleChanges, ViewContainerRef } from '@angular/core';
2
- import { AbstractControlDirective, NgControl } from '@angular/forms';
3
- import { MatFormField } from '@angular/material/form-field';
4
- import { ControlOption, ControlOptions } from '@rxap/utilities';
5
- import { Observable, Subscription } from 'rxjs';
6
- import { ExtractOptionsMethodMixin, OptionsMethod } from '../mixins/extract-options-method.mixin';
7
- import * as i0 from "@angular/core";
8
- export interface OptionsFromMethodTemplateContext {
9
- $implicit: ControlOption;
10
- }
11
- export interface OptionsFromMethodDirectiveSettings {
12
- }
13
- export interface OptionsFromMethodDirective<Value = any, Parameters = any> extends AfterViewInit, OnChanges, ExtractOptionsMethodMixin {
14
- }
15
- export declare class OptionsFromMethodDirective<Value = any, Parameters = any> implements AfterViewInit, OnChanges, OnDestroy {
16
- static ngTemplateContextGuard(dir: OptionsFromMethodDirective, ctx: any): ctx is OptionsFromMethodTemplateContext;
17
- readonly loading: import("@angular/core").WritableSignal<boolean>;
18
- parameters?: Parameters;
19
- resetOnChange?: Value;
20
- options: ControlOptions | null;
21
- method: OptionsMethod<ControlOptions<Value>, Parameters>;
22
- protected ngControl: NgControl | AbstractControlDirective | null;
23
- protected matFormField: MatFormField | null;
24
- protected settings: OptionsFromMethodDirectiveSettings;
25
- protected readonly viewContainerRef: ViewContainerRef;
26
- protected readonly injector: Injector;
27
- protected readonly cdr: ChangeDetectorRef;
28
- private readonly template;
29
- protected _loadOptionsSubscription?: Subscription;
30
- ngAfterViewInit(): Promise<void>;
31
- ngOnDestroy(): void;
32
- ngOnChanges(changes: SimpleChanges): Promise<void>;
33
- protected loadOptions(parameters?: Parameters): Promise<Observable<ControlOptions | null> | ControlOptions | null>;
34
- protected renderTemplate(): void;
35
- protected setOptions(options: ControlOptions | null): void;
36
- load(parameters?: Parameters | undefined): Promise<void>;
37
- static ɵfac: i0.ɵɵFactoryDeclaration<OptionsFromMethodDirective<any, any>, never>;
38
- static ɵdir: i0.ɵɵDirectiveDeclaration<OptionsFromMethodDirective<any, any>, "[rxapOptionsFromMethod]", ["rxapOptionsFromMethod"], { "parameters": { "alias": "rxapOptionsFromMethodParameters"; "required": false; }; "resetOnChange": { "alias": "rxapOptionsFromMethodResetOnChange"; "required": false; }; "method": { "alias": "rxapOptionsFromMethodCall"; "required": false; }; }, {}, never, never, true, never>;
39
- }
@@ -1,38 +0,0 @@
1
- import { ChangeDetectorRef, Injector, OnChanges, OnInit, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core';
2
- import { Constructor, ControlOption, ControlOptions } from '@rxap/utilities';
3
- import { NgControl } from '@angular/forms';
4
- import { FormDefinition } from '@rxap/forms';
5
- import { BaseRemoteMethod, RemoteMethodLoader } from '@rxap/remote-method';
6
- import { IdOrInstanceOrToken } from '@rxap/definition';
7
- import { ExtractFormDefinitionMixin } from '../mixins/extract-form-definition.mixin';
8
- import * as i0 from "@angular/core";
9
- export interface OptionsFromRemoteMethodTemplateContext {
10
- $implicit: ControlOption;
11
- }
12
- export declare const REMOTE_METHOD_NAME = "options";
13
- export declare const RXAP_USE_REMOTE_METHOD = "rxap/form-system/remote-method/use";
14
- export declare function UseRemoteMethod(remoteMethod: Constructor<BaseRemoteMethod>, name: string): (target: any, propertyKey: string) => void;
15
- export declare function UseOptionsRemoteMethod(dataSource: Constructor<BaseRemoteMethod<ControlOptions>>): (target: any, propertyKey: string) => void;
16
- export declare class ExtractRemoteMethodsMixin {
17
- protected extractRemoteMethods(formDefinition: FormDefinition, controlId: string): Map<string, Constructor<IdOrInstanceOrToken<BaseRemoteMethod>>>;
18
- }
19
- export interface OptionsFromRemoteMethodDirective<Value, Parameters> extends OnInit, ExtractFormDefinitionMixin, ExtractRemoteMethodsMixin {
20
- }
21
- export declare class OptionsFromRemoteMethodDirective<Value, Parameters> implements OnChanges {
22
- private readonly ngControl;
23
- private readonly template;
24
- private readonly remoteMethodLoader;
25
- private readonly viewContainerRef;
26
- private readonly injector;
27
- private readonly cdr;
28
- parameters?: Parameters;
29
- resetOnChange?: Value;
30
- withoutParameters: boolean;
31
- private remoteMethodToken;
32
- constructor(ngControl: NgControl, template: TemplateRef<OptionsFromRemoteMethodTemplateContext>, remoteMethodLoader: RemoteMethodLoader, viewContainerRef: ViewContainerRef, injector: Injector, cdr: ChangeDetectorRef);
33
- ngOnChanges(changes: SimpleChanges): void;
34
- private extractRemoteMethodToken;
35
- private renderTemplate;
36
- static ɵfac: i0.ɵɵFactoryDeclaration<OptionsFromRemoteMethodDirective<any, any>, never>;
37
- static ɵdir: i0.ɵɵDirectiveDeclaration<OptionsFromRemoteMethodDirective<any, any>, "[rxapOptionsFromRemoteMethod]", never, { "parameters": { "alias": "rxapOptionsFromRemoteMethodParameters"; "required": false; }; "resetOnChange": { "alias": "rxapOptionsFromRemoteMethodResetOnChange"; "required": false; }; "withoutParameters": { "alias": "rxapOptionsFromRemoteMethodWithoutParameters"; "required": false; }; }, {}, never, never, true, never>;
38
- }
@@ -1,7 +0,0 @@
1
- import { AbstractControl, NgControl } from '@angular/forms';
2
- export declare class TestNgControl extends NgControl {
3
- private readonly _control;
4
- constructor(_control: AbstractControl);
5
- get control(): AbstractControl<any, any> | null;
6
- viewToModelUpdate(newValue: any): void;
7
- }
package/lib/error.d.ts DELETED
@@ -1,4 +0,0 @@
1
- import { RxapError } from '@rxap/utilities';
2
- export declare class RxapFormSystemError extends RxapError {
3
- constructor(message: string, code: string, className?: string);
4
- }
@@ -1,2 +0,0 @@
1
- import { ActivatedRoute } from '@angular/router';
2
- export declare function FormContextFromActivatedRouteFactory(route: ActivatedRoute): import("@angular/router").Params;
@@ -1,37 +0,0 @@
1
- import { ComponentFactoryResolver, ComponentRef, Injector, OnInit, ViewContainerRef } from '@angular/core';
2
- import { ControlContainer, ControlValueAccessor } from '@angular/forms';
3
- import { RxapFormControl } from '@rxap/forms';
4
- import { ControlWithDataSource } from './control-with-data-source';
5
- import { DataSourceLoader } from '@rxap/data-source';
6
- import { ExtractDataSourcesMixin } from './mixins/extract-data-sources.mixin';
7
- import * as i0 from "@angular/core";
8
- export interface FormSystemControlDirective<T> extends ExtractDataSourcesMixin, ControlValueAccessor, OnInit {
9
- }
10
- export declare class FormSystemControlDirective<T> implements ControlValueAccessor, OnInit {
11
- private readonly parent;
12
- private readonly cfr;
13
- private readonly viewContainerRef;
14
- private readonly dataSourceLoader;
15
- private readonly injector;
16
- /**
17
- * Defines the form control id
18
- */
19
- controlId: string;
20
- protected control: RxapFormControl;
21
- protected componentRef: ComponentRef<ControlValueAccessor & Partial<ControlWithDataSource>>;
22
- constructor(parent: ControlContainer, cfr: ComponentFactoryResolver, viewContainerRef: ViewContainerRef, dataSourceLoader: DataSourceLoader, injector: Injector);
23
- ngOnInit(): void;
24
- registerOnChange(fn: (value: (any | null)) => void): void;
25
- registerOnTouched(fn: () => void): void;
26
- writeValue(value: any): void;
27
- setDisabledState(isDisabled: boolean): void;
28
- private setDataSources;
29
- private setComponentProperties;
30
- private createComponent;
31
- private extractControl;
32
- private extractFormDefinition;
33
- private extractComponent;
34
- private extractComponentProperties;
35
- static ɵfac: i0.ɵɵFactoryDeclaration<FormSystemControlDirective<any>, never>;
36
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormSystemControlDirective<any>, "[rxapFormSystemControl]", never, { "controlId": { "alias": "controlId"; "required": true; }; }, {}, never, never, true, never>;
37
- }
@@ -1,9 +0,0 @@
1
- import { ControlOption } from '@rxap/utilities';
2
- export declare function ResolveByUuidParameter({ value }: {
3
- value: string;
4
- }): {
5
- parameters: {
6
- uuid: string;
7
- };
8
- };
9
- export declare function ResolveByUuidResultFactory<Entity>(transformer: (entity: Entity) => ControlOption): (entity: Entity) => ControlOption<any, string>;
@@ -1,3 +0,0 @@
1
- import { Injector } from '@angular/core';
2
- import { UseFunctionConfig, UseFunctionType } from './extract-functions.mixin';
3
- export declare function ApplyUseFunctionAdapters<Args extends any[], Result>(injector: Injector, fnc: UseFunctionType<any[], any>, config?: UseFunctionConfig): UseFunctionType<any[], any>;
@@ -1,4 +0,0 @@
1
- import { Injector } from '@angular/core';
2
- import { Method } from '@rxap/pattern';
3
- import { UseMethodConfig } from './extract-methods.mixin';
4
- export declare function ApplyUseMethodAdapters(injector: Injector, method: Method, config?: UseMethodConfig): Method<any, any>;
@@ -1,5 +0,0 @@
1
- import { ControlContainer } from '@angular/forms';
2
- import { AbstractControl } from '@rxap/forms';
3
- export declare class ExtractControlFromParentMixin {
4
- protected extractControlFromParent(parent: ControlContainer, controlPath: string): AbstractControl;
5
- }
@@ -1,9 +0,0 @@
1
- import { AbstractControlDirective, NgControl } from '@angular/forms';
2
- import { MatFormField } from '@angular/material/form-field';
3
- import { RxapFormControl } from '@rxap/forms';
4
- export declare class ExtractControlMixin {
5
- protected ngControl: NgControl | AbstractControlDirective | null;
6
- protected matFormField?: MatFormField | null;
7
- protected control?: RxapFormControl;
8
- protected extractControl(ngControl?: NgControl | AbstractControlDirective | null): RxapFormControl;
9
- }
@@ -1,5 +0,0 @@
1
- import { FormDefinition } from '@rxap/forms';
2
- import { UseDataSourceValue } from '../decorators/use-data-source';
3
- export declare class ExtractDataSourcesMixin {
4
- protected extractDataSources(formDefinition: FormDefinition, controlId: string): Map<string, UseDataSourceValue>;
5
- }
@@ -1,4 +0,0 @@
1
- import { AbstractControl, FormDefinition } from '@rxap/forms';
2
- export declare class ExtractFormDefinitionMixin {
3
- protected extractFormDefinition(control: AbstractControl): FormDefinition;
4
- }