@rxap/forms 19.1.0-dev.0 → 19.1.0-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 (408) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/compodoc/changelog.html +5 -0
  3. package/compodoc/directives/FormDirective.html +128 -80
  4. package/compodoc/interfaces/FormLoadFailedMethod.html +2 -2
  5. package/compodoc/interfaces/FormLoadMethod.html +33 -3
  6. package/compodoc/interfaces/FormLoadSuccessfulMethod.html +2 -2
  7. package/compodoc/interfaces/FormSubmitFailedMethod.html +2 -2
  8. package/compodoc/interfaces/FormSubmitMethod.html +3 -4
  9. package/compodoc/interfaces/FormSubmitSuccessfulMethod.html +2 -2
  10. package/compodoc/js/search/search_index.js +2 -2
  11. package/compodoc/properties.html +1 -1
  12. package/docs/documentation.json +7010 -6882
  13. package/docs/html/assets/hierarchy.js +1 -1
  14. package/docs/html/classes/ControlValueAccessor.html +5 -5
  15. package/docs/html/classes/FormArrayControlManager.html +2 -2
  16. package/docs/html/classes/FormControlErrorDirective.html +5 -5
  17. package/docs/html/classes/FormControlMarkDirtyDirective.html +2 -2
  18. package/docs/html/classes/FormControlMarkPristineDirective.html +2 -2
  19. package/docs/html/classes/FormControlMarkTouchedDirective.html +2 -2
  20. package/docs/html/classes/FormControlMarkUntouchedDirective.html +2 -2
  21. package/docs/html/classes/FormControlNameDirective.html +6 -6
  22. package/docs/html/classes/FormDirective.html +16 -16
  23. package/docs/html/classes/FormGroupNameDirective.html +6 -6
  24. package/docs/html/classes/FormLoadedDirective.html +4 -4
  25. package/docs/html/classes/FormLoadingDirective.html +4 -4
  26. package/docs/html/classes/FormLoadingErrorDirective.html +4 -4
  27. package/docs/html/classes/FormResetDirective.html +2 -2
  28. package/docs/html/classes/FormSubmitDirective.html +3 -3
  29. package/docs/html/classes/FormSubmitFailedDirective.html +4 -4
  30. package/docs/html/classes/FormSubmitInvalidDirective.html +4 -4
  31. package/docs/html/classes/FormSubmitSuccessfulDirective.html +4 -4
  32. package/docs/html/classes/FormSubmittingDirective.html +4 -4
  33. package/docs/html/classes/ParentControlContainerDirective.html +2 -2
  34. package/docs/html/classes/RxapFormArray.html +34 -34
  35. package/docs/html/classes/RxapFormBuilder.html +2 -2
  36. package/docs/html/classes/RxapFormControl.html +30 -30
  37. package/docs/html/classes/RxapFormGroup.html +35 -35
  38. package/docs/html/classes/RxapFormsModule.html +2 -2
  39. package/docs/html/enums/MetadataKeys.html +2 -2
  40. package/docs/html/functions/ControlAsyncValidator.html +1 -1
  41. package/docs/html/functions/ControlChange.html +1 -1
  42. package/docs/html/functions/ControlSetValue.html +1 -1
  43. package/docs/html/functions/ControlValidator.html +1 -1
  44. package/docs/html/functions/IsArray.html +1 -1
  45. package/docs/html/functions/IsBoolean.html +1 -1
  46. package/docs/html/functions/IsComplex.html +1 -1
  47. package/docs/html/functions/IsDate.html +1 -1
  48. package/docs/html/functions/IsEmail.html +1 -1
  49. package/docs/html/functions/IsEnum.html +1 -1
  50. package/docs/html/functions/IsIP.html +1 -1
  51. package/docs/html/functions/IsInt.html +1 -1
  52. package/docs/html/functions/IsNumber-1.html +2 -2
  53. package/docs/html/functions/IsObject.html +1 -1
  54. package/docs/html/functions/IsPhoneNumber.html +1 -1
  55. package/docs/html/functions/IsPort.html +1 -1
  56. package/docs/html/functions/IsString.html +1 -1
  57. package/docs/html/functions/IsUUID.html +1 -1
  58. package/docs/html/functions/IsUrl.html +1 -1
  59. package/docs/html/functions/RxapForm.html +1 -1
  60. package/docs/html/functions/ToFormMethod.html +1 -1
  61. package/docs/html/functions/ToFormSubmitMethod.html +2 -2
  62. package/docs/html/functions/UseFormArrayControl.html +1 -1
  63. package/docs/html/functions/UseFormArrayGroup.html +1 -1
  64. package/docs/html/functions/UseFormControl.html +1 -1
  65. package/docs/html/functions/UseFormGroup.html +1 -1
  66. package/docs/html/functions/_IsNumber.html +1 -1
  67. package/docs/html/functions/controlDisabledWhile.html +1 -1
  68. package/docs/html/functions/controlDisabled_.html +1 -1
  69. package/docs/html/functions/controlEnabledWhile.html +1 -1
  70. package/docs/html/functions/controlEnabled_.html +1 -1
  71. package/docs/html/functions/controlErrorChanges_.html +1 -1
  72. package/docs/html/functions/controlReadonly_.html +1 -1
  73. package/docs/html/functions/controlStatusChanges_.html +1 -1
  74. package/docs/html/functions/controlValueChanges_.html +1 -1
  75. package/docs/html/functions/disableControl.html +1 -1
  76. package/docs/html/functions/enableControl.html +1 -1
  77. package/docs/html/functions/hasErrorAndDirty.html +1 -1
  78. package/docs/html/functions/hasErrorAndTouched.html +1 -1
  79. package/docs/html/functions/isNumber.html +2 -2
  80. package/docs/html/functions/markAllDirty.html +1 -1
  81. package/docs/html/functions/markAllPristine.html +1 -1
  82. package/docs/html/functions/markAllUntouched.html +1 -1
  83. package/docs/html/functions/mergeControlValidators.html +1 -1
  84. package/docs/html/functions/selectControlValue_.html +1 -1
  85. package/docs/html/functions/validateControlOn.html +1 -1
  86. package/docs/html/hierarchy.html +1 -1
  87. package/docs/html/index.html +2 -2
  88. package/docs/html/interfaces/AbstractControl.html +5 -5
  89. package/docs/html/interfaces/AbstractControlOptions.html +3 -3
  90. package/docs/html/interfaces/BoxedValue.html +2 -2
  91. package/docs/html/interfaces/ComplexityOptions.html +2 -2
  92. package/docs/html/interfaces/ControlOptions.html +3 -3
  93. package/docs/html/interfaces/ControlSetValueOptions.html +2 -2
  94. package/docs/html/interfaces/FormArrayOptions.html +3 -3
  95. package/docs/html/interfaces/FormDefinition.html +6 -6
  96. package/docs/html/interfaces/FormDefinitionArray.html +3 -3
  97. package/docs/html/interfaces/FormDefinitionMetadata.html +3 -3
  98. package/docs/html/interfaces/FormGroupOptions.html +3 -3
  99. package/docs/html/interfaces/FormLoadFailedMethod.html +2 -2
  100. package/docs/html/interfaces/FormLoadMethod.html +2 -2
  101. package/docs/html/interfaces/FormLoadSuccessfulMethod.html +2 -2
  102. package/docs/html/interfaces/FormOptions.html +3 -3
  103. package/docs/html/interfaces/FormSubmitFailedMethod.html +2 -2
  104. package/docs/html/interfaces/FormSubmitMethod.html +2 -2
  105. package/docs/html/interfaces/FormSubmitSuccessfulMethod.html +2 -2
  106. package/docs/html/interfaces/InjectableValidator.html +2 -2
  107. package/docs/html/interfaces/IsNumberOptions.html +3 -3
  108. package/docs/html/interfaces/NgValidatorsErrors.html +2 -2
  109. package/docs/html/interfaces/RxapAbstractControlOptionsWithDefinition.html +3 -3
  110. package/docs/html/interfaces/_RxapAbstractControlOptions.html +3 -3
  111. package/docs/html/modules.html +1 -1
  112. package/docs/html/types/AsyncValidator.html +1 -1
  113. package/docs/html/types/AsyncValidatorFn.html +1 -1
  114. package/docs/html/types/ChangeFn.html +1 -1
  115. package/docs/html/types/ControlEventOptions.html +1 -1
  116. package/docs/html/types/ControlInsertedFn.html +1 -1
  117. package/docs/html/types/ControlPath.html +1 -1
  118. package/docs/html/types/ControlRemovedFn.html +1 -1
  119. package/docs/html/types/ControlState.html +1 -1
  120. package/docs/html/types/EmitEvent.html +1 -1
  121. package/docs/html/types/ExtractAbstractControl.html +1 -1
  122. package/docs/html/types/ExtractStrings.html +1 -1
  123. package/docs/html/types/FormBuilderFn.html +1 -1
  124. package/docs/html/types/FormType.html +1 -1
  125. package/docs/html/types/KeyValueControls.html +1 -1
  126. package/docs/html/types/OnlySelf.html +1 -1
  127. package/docs/html/types/OrBoxedValue.html +1 -1
  128. package/docs/html/types/RxapAbstractControlOptions.html +1 -1
  129. package/docs/html/types/SetValueFn.html +1 -1
  130. package/docs/html/types/ValidationErrors.html +1 -1
  131. package/docs/html/types/Validator.html +1 -1
  132. package/docs/html/types/ValidatorFn.html +1 -1
  133. package/docs/html/types/ValidatorOrOpts.html +1 -1
  134. package/docs/html/variables/RXAP_FORM_CONTEXT.html +1 -1
  135. package/docs/html/variables/RXAP_FORM_DEFINITION.html +1 -1
  136. package/docs/html/variables/RXAP_FORM_DEFINITION_BUILDER.html +1 -1
  137. package/docs/html/variables/RXAP_FORM_INITIAL_STATE.html +1 -1
  138. package/docs/html/variables/RXAP_FORM_LOAD_FAILED_METHOD.html +1 -1
  139. package/docs/html/variables/RXAP_FORM_LOAD_METHOD.html +1 -1
  140. package/docs/html/variables/RXAP_FORM_LOAD_SUCCESSFUL_METHOD.html +1 -1
  141. package/docs/html/variables/RXAP_FORM_SUBMIT_FAILED_METHOD.html +1 -1
  142. package/docs/html/variables/RXAP_FORM_SUBMIT_METHOD.html +1 -1
  143. package/docs/html/variables/RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD.html +1 -1
  144. package/docs/html/variables/RxapValidators.html +1 -1
  145. package/docs/markdown/README.md +1 -1
  146. package/docs/markdown/classes/ControlValueAccessor.md +8 -8
  147. package/docs/markdown/classes/FormArrayControlManager.md +5 -5
  148. package/docs/markdown/classes/FormControlErrorDirective.md +7 -7
  149. package/docs/markdown/classes/FormControlMarkDirtyDirective.md +4 -4
  150. package/docs/markdown/classes/FormControlMarkPristineDirective.md +4 -4
  151. package/docs/markdown/classes/FormControlMarkTouchedDirective.md +4 -4
  152. package/docs/markdown/classes/FormControlMarkUntouchedDirective.md +4 -4
  153. package/docs/markdown/classes/FormControlNameDirective.md +5 -5
  154. package/docs/markdown/classes/FormDirective.md +54 -46
  155. package/docs/markdown/classes/FormGroupNameDirective.md +5 -5
  156. package/docs/markdown/classes/FormLoadedDirective.md +5 -5
  157. package/docs/markdown/classes/FormLoadingDirective.md +5 -5
  158. package/docs/markdown/classes/FormLoadingErrorDirective.md +5 -5
  159. package/docs/markdown/classes/FormResetDirective.md +8 -8
  160. package/docs/markdown/classes/FormSubmitDirective.md +15 -15
  161. package/docs/markdown/classes/FormSubmitFailedDirective.md +5 -5
  162. package/docs/markdown/classes/FormSubmitInvalidDirective.md +5 -5
  163. package/docs/markdown/classes/FormSubmitSuccessfulDirective.md +5 -5
  164. package/docs/markdown/classes/FormSubmittingDirective.md +5 -5
  165. package/docs/markdown/classes/ParentControlContainerDirective.md +2 -2
  166. package/docs/markdown/classes/RxapFormArray.md +54 -54
  167. package/docs/markdown/classes/RxapFormBuilder.md +4 -4
  168. package/docs/markdown/classes/RxapFormControl.md +50 -50
  169. package/docs/markdown/classes/RxapFormGroup.md +74 -74
  170. package/docs/markdown/classes/RxapFormsModule.md +2 -2
  171. package/docs/markdown/enumerations/MetadataKeys.md +10 -10
  172. package/docs/markdown/functions/ControlAsyncValidator.md +2 -2
  173. package/docs/markdown/functions/ControlChange.md +2 -2
  174. package/docs/markdown/functions/ControlSetValue.md +2 -2
  175. package/docs/markdown/functions/ControlValidator.md +2 -2
  176. package/docs/markdown/functions/IsArray.md +2 -2
  177. package/docs/markdown/functions/IsBoolean.md +2 -2
  178. package/docs/markdown/functions/IsComplex.md +2 -2
  179. package/docs/markdown/functions/IsDate.md +2 -2
  180. package/docs/markdown/functions/IsEmail.md +2 -2
  181. package/docs/markdown/functions/IsEnum.md +2 -2
  182. package/docs/markdown/functions/IsIP.md +2 -2
  183. package/docs/markdown/functions/IsInt.md +2 -2
  184. package/docs/markdown/functions/IsNumber-2.md +2 -2
  185. package/docs/markdown/functions/IsNumber.md +2 -2
  186. package/docs/markdown/functions/IsObject.md +2 -2
  187. package/docs/markdown/functions/IsPhoneNumber.md +2 -2
  188. package/docs/markdown/functions/IsPort.md +2 -2
  189. package/docs/markdown/functions/IsString.md +2 -2
  190. package/docs/markdown/functions/IsUUID.md +2 -2
  191. package/docs/markdown/functions/IsUrl.md +2 -2
  192. package/docs/markdown/functions/RxapForm.md +2 -2
  193. package/docs/markdown/functions/ToFormMethod.md +2 -2
  194. package/docs/markdown/functions/ToFormSubmitMethod.md +2 -2
  195. package/docs/markdown/functions/UseFormArrayControl.md +2 -2
  196. package/docs/markdown/functions/UseFormArrayGroup.md +2 -2
  197. package/docs/markdown/functions/UseFormControl.md +2 -2
  198. package/docs/markdown/functions/UseFormGroup.md +2 -2
  199. package/docs/markdown/functions/controlDisabled$.md +2 -2
  200. package/docs/markdown/functions/controlDisabledWhile.md +2 -2
  201. package/docs/markdown/functions/controlEnabled$.md +2 -2
  202. package/docs/markdown/functions/controlEnabledWhile.md +2 -2
  203. package/docs/markdown/functions/controlErrorChanges$.md +2 -2
  204. package/docs/markdown/functions/controlReadonly$.md +2 -2
  205. package/docs/markdown/functions/controlStatusChanges$.md +2 -2
  206. package/docs/markdown/functions/controlValueChanges$.md +2 -2
  207. package/docs/markdown/functions/disableControl.md +2 -2
  208. package/docs/markdown/functions/enableControl.md +2 -2
  209. package/docs/markdown/functions/hasErrorAndDirty.md +2 -2
  210. package/docs/markdown/functions/hasErrorAndTouched.md +2 -2
  211. package/docs/markdown/functions/isNumber-1.md +2 -2
  212. package/docs/markdown/functions/markAllDirty.md +2 -2
  213. package/docs/markdown/functions/markAllPristine.md +2 -2
  214. package/docs/markdown/functions/markAllUntouched.md +2 -2
  215. package/docs/markdown/functions/mergeControlValidators.md +2 -2
  216. package/docs/markdown/functions/selectControlValue$.md +2 -2
  217. package/docs/markdown/functions/validateControlOn.md +2 -2
  218. package/docs/markdown/globals.md +2 -2
  219. package/docs/markdown/interfaces/AbstractControl.md +8 -8
  220. package/docs/markdown/interfaces/AbstractControlOptions.md +4 -4
  221. package/docs/markdown/interfaces/BoxedValue.md +4 -4
  222. package/docs/markdown/interfaces/ComplexityOptions.md +12 -12
  223. package/docs/markdown/interfaces/ControlOptions.md +9 -9
  224. package/docs/markdown/interfaces/ControlSetValueOptions.md +4 -4
  225. package/docs/markdown/interfaces/FormArrayOptions.md +11 -11
  226. package/docs/markdown/interfaces/FormDefinition.md +7 -7
  227. package/docs/markdown/interfaces/FormDefinitionArray.md +3 -3
  228. package/docs/markdown/interfaces/FormDefinitionMetadata.md +10 -10
  229. package/docs/markdown/interfaces/FormGroupOptions.md +8 -8
  230. package/docs/markdown/interfaces/FormLoadFailedMethod.md +4 -4
  231. package/docs/markdown/interfaces/FormLoadMethod.md +17 -5
  232. package/docs/markdown/interfaces/FormLoadSuccessfulMethod.md +4 -4
  233. package/docs/markdown/interfaces/FormOptions.md +8 -8
  234. package/docs/markdown/interfaces/FormSubmitFailedMethod.md +4 -4
  235. package/docs/markdown/interfaces/FormSubmitMethod.md +5 -5
  236. package/docs/markdown/interfaces/FormSubmitSuccessfulMethod.md +4 -4
  237. package/docs/markdown/interfaces/InjectableValidator.md +4 -4
  238. package/docs/markdown/interfaces/IsNumberOptions.md +6 -6
  239. package/docs/markdown/interfaces/NgValidatorsErrors.md +9 -9
  240. package/docs/markdown/interfaces/RxapAbstractControlOptions.md +7 -7
  241. package/docs/markdown/interfaces/RxapAbstractControlOptionsWithDefinition.md +8 -8
  242. package/docs/markdown/type-aliases/AsyncValidator.md +2 -2
  243. package/docs/markdown/type-aliases/AsyncValidatorFn.md +2 -2
  244. package/docs/markdown/type-aliases/ChangeFn.md +2 -2
  245. package/docs/markdown/type-aliases/ControlEventOptions.md +2 -2
  246. package/docs/markdown/type-aliases/ControlInsertedFn.md +2 -2
  247. package/docs/markdown/type-aliases/ControlPath.md +2 -2
  248. package/docs/markdown/type-aliases/ControlRemovedFn.md +2 -2
  249. package/docs/markdown/type-aliases/ControlState.md +2 -2
  250. package/docs/markdown/type-aliases/EmitEvent.md +2 -2
  251. package/docs/markdown/type-aliases/ExtractAbstractControl.md +2 -2
  252. package/docs/markdown/type-aliases/ExtractStrings.md +2 -2
  253. package/docs/markdown/type-aliases/FormBuilderFn.md +2 -2
  254. package/docs/markdown/type-aliases/FormType.md +2 -2
  255. package/docs/markdown/type-aliases/KeyValueControls.md +2 -2
  256. package/docs/markdown/type-aliases/OnlySelf.md +2 -2
  257. package/docs/markdown/type-aliases/OrBoxedValue.md +2 -2
  258. package/docs/markdown/type-aliases/RxapAbstractControlOptions.md +2 -2
  259. package/docs/markdown/type-aliases/SetValueFn.md +2 -2
  260. package/docs/markdown/type-aliases/ValidationErrors.md +2 -2
  261. package/docs/markdown/type-aliases/Validator.md +2 -2
  262. package/docs/markdown/type-aliases/ValidatorFn.md +2 -2
  263. package/docs/markdown/type-aliases/ValidatorOrOpts.md +2 -2
  264. package/docs/markdown/variables/RXAP_FORM_CONTEXT.md +2 -2
  265. package/docs/markdown/variables/RXAP_FORM_DEFINITION.md +2 -2
  266. package/docs/markdown/variables/RXAP_FORM_DEFINITION_BUILDER.md +2 -2
  267. package/docs/markdown/variables/RXAP_FORM_INITIAL_STATE.md +2 -2
  268. package/docs/markdown/variables/RXAP_FORM_LOAD_FAILED_METHOD.md +2 -2
  269. package/docs/markdown/variables/RXAP_FORM_LOAD_METHOD.md +2 -2
  270. package/docs/markdown/variables/RXAP_FORM_LOAD_SUCCESSFUL_METHOD.md +2 -2
  271. package/docs/markdown/variables/RXAP_FORM_SUBMIT_FAILED_METHOD.md +2 -2
  272. package/docs/markdown/variables/RXAP_FORM_SUBMIT_METHOD.md +2 -2
  273. package/docs/markdown/variables/RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD.md +2 -2
  274. package/docs/markdown/variables/RxapValidators.md +2 -2
  275. package/docs/wiki/Class.ControlValueAccessor.md +7 -7
  276. package/docs/wiki/Class.FormArrayControlManager.md +4 -4
  277. package/docs/wiki/Class.FormControlErrorDirective.md +6 -6
  278. package/docs/wiki/Class.FormControlMarkDirtyDirective.md +3 -3
  279. package/docs/wiki/Class.FormControlMarkPristineDirective.md +3 -3
  280. package/docs/wiki/Class.FormControlMarkTouchedDirective.md +3 -3
  281. package/docs/wiki/Class.FormControlMarkUntouchedDirective.md +3 -3
  282. package/docs/wiki/Class.FormControlNameDirective.md +4 -4
  283. package/docs/wiki/Class.FormDirective.md +53 -45
  284. package/docs/wiki/Class.FormGroupNameDirective.md +4 -4
  285. package/docs/wiki/Class.FormLoadedDirective.md +4 -4
  286. package/docs/wiki/Class.FormLoadingDirective.md +4 -4
  287. package/docs/wiki/Class.FormLoadingErrorDirective.md +4 -4
  288. package/docs/wiki/Class.FormResetDirective.md +7 -7
  289. package/docs/wiki/Class.FormSubmitDirective.md +14 -14
  290. package/docs/wiki/Class.FormSubmitFailedDirective.md +4 -4
  291. package/docs/wiki/Class.FormSubmitInvalidDirective.md +4 -4
  292. package/docs/wiki/Class.FormSubmitSuccessfulDirective.md +4 -4
  293. package/docs/wiki/Class.FormSubmittingDirective.md +4 -4
  294. package/docs/wiki/Class.ParentControlContainerDirective.md +1 -1
  295. package/docs/wiki/Class.RxapFormArray.md +53 -53
  296. package/docs/wiki/Class.RxapFormBuilder.md +3 -3
  297. package/docs/wiki/Class.RxapFormControl.md +49 -49
  298. package/docs/wiki/Class.RxapFormGroup.md +73 -73
  299. package/docs/wiki/Class.RxapFormsModule.md +1 -1
  300. package/docs/wiki/Enumeration.MetadataKeys.md +9 -9
  301. package/docs/wiki/Function.ControlAsyncValidator.md +1 -1
  302. package/docs/wiki/Function.ControlChange.md +1 -1
  303. package/docs/wiki/Function.ControlSetValue.md +1 -1
  304. package/docs/wiki/Function.ControlValidator.md +1 -1
  305. package/docs/wiki/Function.IsArray.md +1 -1
  306. package/docs/wiki/Function.IsBoolean.md +1 -1
  307. package/docs/wiki/Function.IsComplex.md +1 -1
  308. package/docs/wiki/Function.IsDate.md +1 -1
  309. package/docs/wiki/Function.IsEmail.md +1 -1
  310. package/docs/wiki/Function.IsEnum.md +1 -1
  311. package/docs/wiki/Function.IsIP.md +1 -1
  312. package/docs/wiki/Function.IsInt.md +1 -1
  313. package/docs/wiki/Function.IsNumber.md +1 -1
  314. package/docs/wiki/Function.IsObject.md +1 -1
  315. package/docs/wiki/Function.IsPhoneNumber.md +1 -1
  316. package/docs/wiki/Function.IsPort.md +1 -1
  317. package/docs/wiki/Function.IsString.md +1 -1
  318. package/docs/wiki/Function.IsUUID.md +1 -1
  319. package/docs/wiki/Function.IsUrl.md +1 -1
  320. package/docs/wiki/Function.RxapForm.md +1 -1
  321. package/docs/wiki/Function.ToFormMethod.md +1 -1
  322. package/docs/wiki/Function.ToFormSubmitMethod.md +1 -1
  323. package/docs/wiki/Function.UseFormArrayControl.md +1 -1
  324. package/docs/wiki/Function.UseFormArrayGroup.md +1 -1
  325. package/docs/wiki/Function.UseFormControl.md +1 -1
  326. package/docs/wiki/Function.UseFormGroup.md +1 -1
  327. package/docs/wiki/Function._IsNumber.md +1 -1
  328. package/docs/wiki/Function.controlDisabled$.md +1 -1
  329. package/docs/wiki/Function.controlDisabledWhile.md +1 -1
  330. package/docs/wiki/Function.controlEnabled$.md +1 -1
  331. package/docs/wiki/Function.controlEnabledWhile.md +1 -1
  332. package/docs/wiki/Function.controlErrorChanges$.md +1 -1
  333. package/docs/wiki/Function.controlReadonly$.md +1 -1
  334. package/docs/wiki/Function.controlStatusChanges$.md +1 -1
  335. package/docs/wiki/Function.controlValueChanges$.md +1 -1
  336. package/docs/wiki/Function.disableControl.md +1 -1
  337. package/docs/wiki/Function.enableControl.md +1 -1
  338. package/docs/wiki/Function.hasErrorAndDirty.md +1 -1
  339. package/docs/wiki/Function.hasErrorAndTouched.md +1 -1
  340. package/docs/wiki/Function.isNumber.md +1 -1
  341. package/docs/wiki/Function.markAllDirty.md +1 -1
  342. package/docs/wiki/Function.markAllPristine.md +1 -1
  343. package/docs/wiki/Function.markAllUntouched.md +1 -1
  344. package/docs/wiki/Function.mergeControlValidators.md +1 -1
  345. package/docs/wiki/Function.selectControlValue$.md +1 -1
  346. package/docs/wiki/Function.validateControlOn.md +1 -1
  347. package/docs/wiki/Interface.AbstractControl.md +7 -7
  348. package/docs/wiki/Interface.AbstractControlOptions.md +3 -3
  349. package/docs/wiki/Interface.BoxedValue.md +3 -3
  350. package/docs/wiki/Interface.ComplexityOptions.md +11 -11
  351. package/docs/wiki/Interface.ControlOptions.md +8 -8
  352. package/docs/wiki/Interface.ControlSetValueOptions.md +3 -3
  353. package/docs/wiki/Interface.FormArrayOptions.md +10 -10
  354. package/docs/wiki/Interface.FormDefinition.md +6 -6
  355. package/docs/wiki/Interface.FormDefinitionArray.md +2 -2
  356. package/docs/wiki/Interface.FormDefinitionMetadata.md +9 -9
  357. package/docs/wiki/Interface.FormGroupOptions.md +7 -7
  358. package/docs/wiki/Interface.FormLoadFailedMethod.md +3 -3
  359. package/docs/wiki/Interface.FormLoadMethod.md +16 -4
  360. package/docs/wiki/Interface.FormLoadSuccessfulMethod.md +3 -3
  361. package/docs/wiki/Interface.FormOptions.md +7 -7
  362. package/docs/wiki/Interface.FormSubmitFailedMethod.md +3 -3
  363. package/docs/wiki/Interface.FormSubmitMethod.md +4 -4
  364. package/docs/wiki/Interface.FormSubmitSuccessfulMethod.md +3 -3
  365. package/docs/wiki/Interface.InjectableValidator.md +3 -3
  366. package/docs/wiki/Interface.IsNumberOptions.md +5 -5
  367. package/docs/wiki/Interface.NgValidatorsErrors.md +8 -8
  368. package/docs/wiki/Interface.RxapAbstractControlOptionsWithDefinition.md +7 -7
  369. package/docs/wiki/Interface._RxapAbstractControlOptions.md +6 -6
  370. package/docs/wiki/TypeAlias.AsyncValidator.md +1 -1
  371. package/docs/wiki/TypeAlias.AsyncValidatorFn.md +1 -1
  372. package/docs/wiki/TypeAlias.ChangeFn.md +1 -1
  373. package/docs/wiki/TypeAlias.ControlEventOptions.md +1 -1
  374. package/docs/wiki/TypeAlias.ControlInsertedFn.md +1 -1
  375. package/docs/wiki/TypeAlias.ControlPath.md +1 -1
  376. package/docs/wiki/TypeAlias.ControlRemovedFn.md +1 -1
  377. package/docs/wiki/TypeAlias.ControlState.md +1 -1
  378. package/docs/wiki/TypeAlias.EmitEvent.md +1 -1
  379. package/docs/wiki/TypeAlias.ExtractAbstractControl.md +1 -1
  380. package/docs/wiki/TypeAlias.ExtractStrings.md +1 -1
  381. package/docs/wiki/TypeAlias.FormBuilderFn.md +1 -1
  382. package/docs/wiki/TypeAlias.FormType.md +1 -1
  383. package/docs/wiki/TypeAlias.KeyValueControls.md +1 -1
  384. package/docs/wiki/TypeAlias.OnlySelf.md +1 -1
  385. package/docs/wiki/TypeAlias.OrBoxedValue.md +1 -1
  386. package/docs/wiki/TypeAlias.RxapAbstractControlOptions.md +1 -1
  387. package/docs/wiki/TypeAlias.SetValueFn.md +1 -1
  388. package/docs/wiki/TypeAlias.ValidationErrors.md +1 -1
  389. package/docs/wiki/TypeAlias.Validator.md +1 -1
  390. package/docs/wiki/TypeAlias.ValidatorFn.md +1 -1
  391. package/docs/wiki/TypeAlias.ValidatorOrOpts.md +1 -1
  392. package/docs/wiki/Variable.RXAP_FORM_CONTEXT.md +1 -1
  393. package/docs/wiki/Variable.RXAP_FORM_DEFINITION.md +1 -1
  394. package/docs/wiki/Variable.RXAP_FORM_DEFINITION_BUILDER.md +1 -1
  395. package/docs/wiki/Variable.RXAP_FORM_INITIAL_STATE.md +1 -1
  396. package/docs/wiki/Variable.RXAP_FORM_LOAD_FAILED_METHOD.md +1 -1
  397. package/docs/wiki/Variable.RXAP_FORM_LOAD_METHOD.md +1 -1
  398. package/docs/wiki/Variable.RXAP_FORM_LOAD_SUCCESSFUL_METHOD.md +1 -1
  399. package/docs/wiki/Variable.RXAP_FORM_SUBMIT_FAILED_METHOD.md +1 -1
  400. package/docs/wiki/Variable.RXAP_FORM_SUBMIT_METHOD.md +1 -1
  401. package/docs/wiki/Variable.RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD.md +1 -1
  402. package/docs/wiki/Variable.RxapValidators.md +1 -1
  403. package/docs/wiki/globals.md +1 -1
  404. package/fesm2022/rxap-forms.mjs +30 -14
  405. package/fesm2022/rxap-forms.mjs.map +1 -1
  406. package/lib/directives/form.directive.d.ts +5 -5
  407. package/lib/directives/models.d.ts +5 -2
  408. package/package.json +2 -2
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **FormBuilderFn**\<`T`, `Data`\>: (`state`, `options`) => `T` \| [`RxapFormControl`](../wiki/Class.RxapFormControl)
6
6
 
7
- Defined in: [packages/angular/forms/src/lib/model.ts:121](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/model.ts#L121)
7
+ Defined in: [packages/angular/forms/src/lib/model.ts:121](https://gitlab.com/rxap/packages/-/blob/ad83fbc9256589930e76aa14f4ee5687e9609ea4/packages/angular/forms/src/lib/model.ts#L121)
8
8
 
9
9
  ## Type Parameters
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **FormType**\<`T`\>: `Partial`\<[`FormDefinition`](../wiki/Interface.FormDefinition)\<`T`\>\> & \{ \[K in keyof T\]: T\[K\] extends (infer U)\[\] ? FormDefinitionArray\<FormType\<U\>\> \| FormDefinitionArray\<RxapFormControl\<U\>\> \| RxapFormControl\<T\[K\]\> \| RxapFormArray\<U\> : T\[K\] extends Record\<string, any\> ? FormType\<T\[K\]\> & Partial\<FormDefinition\<T\[K\]\>\> \| RxapFormControl\<T\[K\]\> : RxapFormControl\<NonEmpty\<T\[K\]\>\> \}
6
6
 
7
- Defined in: [packages/angular/forms/src/lib/model.ts:88](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/model.ts#L88)
7
+ Defined in: [packages/angular/forms/src/lib/model.ts:88](https://gitlab.com/rxap/packages/-/blob/ad83fbc9256589930e76aa14f4ee5687e9609ea4/packages/angular/forms/src/lib/model.ts#L88)
8
8
 
9
9
  ## Type Parameters
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **KeyValueControls**\<`T`\>: `{ [K in keyof T]: T[K] extends RxapFormControl<T[K]> ? RxapFormControl<T[K]> : T[K] extends RxapFormGroup<T[K]> ? RxapFormGroup<T[K]> : T[K] extends RxapFormArray<ArrayType<T[K]>> ? RxapFormArray<ArrayType<T[K]>> : AbstractControl<T[K]> }`
6
6
 
7
- Defined in: [packages/angular/forms/src/lib/types.ts:100](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/types.ts#L100)
7
+ Defined in: [packages/angular/forms/src/lib/types.ts:100](https://gitlab.com/rxap/packages/-/blob/ad83fbc9256589930e76aa14f4ee5687e9609ea4/packages/angular/forms/src/lib/types.ts#L100)
8
8
 
9
9
  ## Type Parameters
10
10
 
@@ -4,4 +4,4 @@
4
4
 
5
5
  > **OnlySelf**: `Pick`\<[`ControlOptions`](../wiki/Interface.ControlOptions), `"onlySelf"`\>
6
6
 
7
- Defined in: [packages/angular/forms/src/lib/types.ts:65](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/types.ts#L65)
7
+ Defined in: [packages/angular/forms/src/lib/types.ts:65](https://gitlab.com/rxap/packages/-/blob/ad83fbc9256589930e76aa14f4ee5687e9609ea4/packages/angular/forms/src/lib/types.ts#L65)
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **OrBoxedValue**\<`T`\>: `T` \| [`BoxedValue`](../wiki/Interface.BoxedValue)\<`T`\> \| () => `T`
6
6
 
7
- Defined in: [packages/angular/forms/src/lib/types.ts:96](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/types.ts#L96)
7
+ Defined in: [packages/angular/forms/src/lib/types.ts:96](https://gitlab.com/rxap/packages/-/blob/ad83fbc9256589930e76aa14f4ee5687e9609ea4/packages/angular/forms/src/lib/types.ts#L96)
8
8
 
9
9
  ## Type Parameters
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **RxapAbstractControlOptions**\<`T`\>: [`_RxapAbstractControlOptions`](../wiki/Interface._RxapAbstractControlOptions) & `T`
6
6
 
7
- Defined in: [packages/angular/forms/src/lib/model.ts:45](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/model.ts#L45)
7
+ Defined in: [packages/angular/forms/src/lib/model.ts:45](https://gitlab.com/rxap/packages/-/blob/ad83fbc9256589930e76aa14f4ee5687e9609ea4/packages/angular/forms/src/lib/model.ts#L45)
8
8
 
9
9
  ## Type Parameters
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **SetValueFn**\<`T`\>: (`value`, `options`?) => `void`
6
6
 
7
- Defined in: [packages/angular/forms/src/lib/model.ts:119](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/model.ts#L119)
7
+ Defined in: [packages/angular/forms/src/lib/model.ts:119](https://gitlab.com/rxap/packages/-/blob/ad83fbc9256589930e76aa14f4ee5687e9609ea4/packages/angular/forms/src/lib/model.ts#L119)
8
8
 
9
9
  ## Type Parameters
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **ValidationErrors**\<`T`\>: `T`
6
6
 
7
- Defined in: [packages/angular/forms/src/lib/types.ts:15](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/types.ts#L15)
7
+ Defined in: [packages/angular/forms/src/lib/types.ts:15](https://gitlab.com/rxap/packages/-/blob/ad83fbc9256589930e76aa14f4ee5687e9609ea4/packages/angular/forms/src/lib/types.ts#L15)
8
8
 
9
9
  ## Type Parameters
10
10
 
@@ -4,4 +4,4 @@
4
4
 
5
5
  > **Validator**: [`ValidatorFn`](../wiki/TypeAlias.ValidatorFn) \| [`ValidatorFn`](../wiki/TypeAlias.ValidatorFn)[]
6
6
 
7
- Defined in: [packages/angular/forms/src/lib/types.ts:28](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/types.ts#L28)
7
+ Defined in: [packages/angular/forms/src/lib/types.ts:28](https://gitlab.com/rxap/packages/-/blob/ad83fbc9256589930e76aa14f4ee5687e9609ea4/packages/angular/forms/src/lib/types.ts#L28)
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **ValidatorFn**\<`T`, `E`\>: (`control`) => [`ValidationErrors`](../wiki/TypeAlias.ValidationErrors)\<`E`\> \| `null`
6
6
 
7
- Defined in: [packages/angular/forms/src/lib/types.ts:16](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/types.ts#L16)
7
+ Defined in: [packages/angular/forms/src/lib/types.ts:16](https://gitlab.com/rxap/packages/-/blob/ad83fbc9256589930e76aa14f4ee5687e9609ea4/packages/angular/forms/src/lib/types.ts#L16)
8
8
 
9
9
  ## Type Parameters
10
10
 
@@ -4,4 +4,4 @@
4
4
 
5
5
  > **ValidatorOrOpts**: [`ValidatorFn`](../wiki/TypeAlias.ValidatorFn) \| [`ValidatorFn`](../wiki/TypeAlias.ValidatorFn)[] \| [`AbstractControlOptions`](../wiki/Interface.AbstractControlOptions) \| `null`
6
6
 
7
- Defined in: [packages/angular/forms/src/lib/types.ts:26](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/types.ts#L26)
7
+ Defined in: [packages/angular/forms/src/lib/types.ts:26](https://gitlab.com/rxap/packages/-/blob/ad83fbc9256589930e76aa14f4ee5687e9609ea4/packages/angular/forms/src/lib/types.ts#L26)
@@ -4,4 +4,4 @@
4
4
 
5
5
  > `const` **RXAP\_FORM\_CONTEXT**: `InjectionToken`\<`unknown`\>
6
6
 
7
- Defined in: [packages/angular/forms/src/lib/tokens.ts:4](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/tokens.ts#L4)
7
+ Defined in: [packages/angular/forms/src/lib/tokens.ts:4](https://gitlab.com/rxap/packages/-/blob/ad83fbc9256589930e76aa14f4ee5687e9609ea4/packages/angular/forms/src/lib/tokens.ts#L4)
@@ -4,4 +4,4 @@
4
4
 
5
5
  > `const` **RXAP\_FORM\_DEFINITION**: `InjectionToken`\<[`FormDefinition`](../wiki/Interface.FormDefinition)\<`any`, `any`, `any`\>\>
6
6
 
7
- Defined in: [packages/angular/forms/src/lib/directives/tokens.ts:9](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/directives/tokens.ts#L9)
7
+ Defined in: [packages/angular/forms/src/lib/directives/tokens.ts:9](https://gitlab.com/rxap/packages/-/blob/ad83fbc9256589930e76aa14f4ee5687e9609ea4/packages/angular/forms/src/lib/directives/tokens.ts#L9)
@@ -4,4 +4,4 @@
4
4
 
5
5
  > `const` **RXAP\_FORM\_DEFINITION\_BUILDER**: `InjectionToken`\<[`RxapFormBuilder`](../wiki/Class.RxapFormBuilder)\<`any`, [`FormType`](../wiki/TypeAlias.FormType)\<`any`\>\>\>
6
6
 
7
- Defined in: [packages/angular/forms/src/lib/directives/tokens.ts:11](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/directives/tokens.ts#L11)
7
+ Defined in: [packages/angular/forms/src/lib/directives/tokens.ts:11](https://gitlab.com/rxap/packages/-/blob/ad83fbc9256589930e76aa14f4ee5687e9609ea4/packages/angular/forms/src/lib/directives/tokens.ts#L11)
@@ -4,4 +4,4 @@
4
4
 
5
5
  > `const` **RXAP\_FORM\_INITIAL\_STATE**: `InjectionToken`\<`unknown`\>
6
6
 
7
- Defined in: [packages/angular/forms/src/lib/tokens.ts:3](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/tokens.ts#L3)
7
+ Defined in: [packages/angular/forms/src/lib/tokens.ts:3](https://gitlab.com/rxap/packages/-/blob/ad83fbc9256589930e76aa14f4ee5687e9609ea4/packages/angular/forms/src/lib/tokens.ts#L3)
@@ -4,4 +4,4 @@
4
4
 
5
5
  > `const` **RXAP\_FORM\_LOAD\_FAILED\_METHOD**: `InjectionToken`\<[`FormLoadMethod`](../wiki/Interface.FormLoadMethod)\<`any`\>\>
6
6
 
7
- Defined in: [packages/angular/forms/src/lib/directives/tokens.ts:22](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/directives/tokens.ts#L22)
7
+ Defined in: [packages/angular/forms/src/lib/directives/tokens.ts:22](https://gitlab.com/rxap/packages/-/blob/ad83fbc9256589930e76aa14f4ee5687e9609ea4/packages/angular/forms/src/lib/directives/tokens.ts#L22)
@@ -4,4 +4,4 @@
4
4
 
5
5
  > `const` **RXAP\_FORM\_LOAD\_METHOD**: `InjectionToken`\<[`FormLoadMethod`](../wiki/Interface.FormLoadMethod)\<`any`\>\>
6
6
 
7
- Defined in: [packages/angular/forms/src/lib/directives/tokens.ts:20](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/directives/tokens.ts#L20)
7
+ Defined in: [packages/angular/forms/src/lib/directives/tokens.ts:20](https://gitlab.com/rxap/packages/-/blob/ad83fbc9256589930e76aa14f4ee5687e9609ea4/packages/angular/forms/src/lib/directives/tokens.ts#L20)
@@ -4,4 +4,4 @@
4
4
 
5
5
  > `const` **RXAP\_FORM\_LOAD\_SUCCESSFUL\_METHOD**: `InjectionToken`\<[`FormLoadMethod`](../wiki/Interface.FormLoadMethod)\<`any`\>\>
6
6
 
7
- Defined in: [packages/angular/forms/src/lib/directives/tokens.ts:24](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/directives/tokens.ts#L24)
7
+ Defined in: [packages/angular/forms/src/lib/directives/tokens.ts:24](https://gitlab.com/rxap/packages/-/blob/ad83fbc9256589930e76aa14f4ee5687e9609ea4/packages/angular/forms/src/lib/directives/tokens.ts#L24)
@@ -4,4 +4,4 @@
4
4
 
5
5
  > `const` **RXAP\_FORM\_SUBMIT\_FAILED\_METHOD**: `InjectionToken`\<[`FormSubmitMethod`](../wiki/Interface.FormSubmitMethod)\<`any`\>\>
6
6
 
7
- Defined in: [packages/angular/forms/src/lib/directives/tokens.ts:15](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/directives/tokens.ts#L15)
7
+ Defined in: [packages/angular/forms/src/lib/directives/tokens.ts:15](https://gitlab.com/rxap/packages/-/blob/ad83fbc9256589930e76aa14f4ee5687e9609ea4/packages/angular/forms/src/lib/directives/tokens.ts#L15)
@@ -4,4 +4,4 @@
4
4
 
5
5
  > `const` **RXAP\_FORM\_SUBMIT\_METHOD**: `InjectionToken`\<[`FormSubmitMethod`](../wiki/Interface.FormSubmitMethod)\<`any`\>\>
6
6
 
7
- Defined in: [packages/angular/forms/src/lib/directives/tokens.ts:13](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/directives/tokens.ts#L13)
7
+ Defined in: [packages/angular/forms/src/lib/directives/tokens.ts:13](https://gitlab.com/rxap/packages/-/blob/ad83fbc9256589930e76aa14f4ee5687e9609ea4/packages/angular/forms/src/lib/directives/tokens.ts#L13)
@@ -4,4 +4,4 @@
4
4
 
5
5
  > `const` **RXAP\_FORM\_SUBMIT\_SUCCESSFUL\_METHOD**: `InjectionToken`\<[`FormSubmitMethod`](../wiki/Interface.FormSubmitMethod)\<`any`\>\>
6
6
 
7
- Defined in: [packages/angular/forms/src/lib/directives/tokens.ts:17](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/directives/tokens.ts#L17)
7
+ Defined in: [packages/angular/forms/src/lib/directives/tokens.ts:17](https://gitlab.com/rxap/packages/-/blob/ad83fbc9256589930e76aa14f4ee5687e9609ea4/packages/angular/forms/src/lib/directives/tokens.ts#L17)
@@ -4,7 +4,7 @@
4
4
 
5
5
  > `const` **RxapValidators**: `object`
6
6
 
7
- Defined in: [packages/angular/forms/src/lib/validators/index.ts:17](https://gitlab.com/rxap/packages/-/blob/4ccea20e4b55409c03fff67caa320c69b96312b9/packages/angular/forms/src/lib/validators/index.ts#L17)
7
+ Defined in: [packages/angular/forms/src/lib/validators/index.ts:17](https://gitlab.com/rxap/packages/-/blob/ad83fbc9256589930e76aa14f4ee5687e9609ea4/packages/angular/forms/src/lib/validators/index.ts#L17)
8
8
 
9
9
  ## Type declaration
10
10
 
@@ -1,4 +1,4 @@
1
- # @rxap/forms v19.1.0-dev.0
1
+ # @rxap/forms v19.1.0-dev.1
2
2
 
3
3
  ## Enumerations
4
4
 
@@ -1,6 +1,6 @@
1
1
  import { isEmail, isIP, isMobilePhone, isPort, isURL, isUUID } from '@rxap/validator';
2
2
  import * as i0 from '@angular/core';
3
- import { Directive, Host, SkipSelf, Input, HostListener, forwardRef, Optional, Self, Inject, InjectionToken, isDevMode, Injector, input, EventEmitter, ChangeDetectorRef, Output, HostBinding, TemplateRef, ViewContainerRef, output, computed, NgModule } from '@angular/core';
3
+ import { Directive, Host, SkipSelf, Input, HostListener, forwardRef, Optional, Self, Inject, InjectionToken, isDevMode, Injector, model, EventEmitter, ChangeDetectorRef, Output, HostBinding, TemplateRef, ViewContainerRef, input, output, computed, NgModule } from '@angular/core';
4
4
  import * as i1 from '@angular/forms';
5
5
  import { FormControlName, NG_VALIDATORS, NG_ASYNC_VALIDATORS, NG_VALUE_ACCESSOR, NgControl, FormGroupName, ControlContainer, UntypedFormArray, AbstractControl, UntypedFormGroup, UntypedFormControl, Validators, FormGroupDirective } from '@angular/forms';
6
6
  import { startWith, filter, tap, map, distinctUntilChanged, debounceTime, take } from 'rxjs/operators';
@@ -687,6 +687,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
687
687
  args: ['rxapFormGroupName']
688
688
  }] } });
689
689
 
690
+ const RXAP_FORM_INITIAL_STATE = new InjectionToken('rxap/forms/initial-state');
691
+ const RXAP_FORM_CONTEXT = new InjectionToken('rxap/forms/context');
692
+
690
693
  const RXAP_FORM_DEFINITION = new InjectionToken('rxap/forms/definition');
691
694
  const RXAP_FORM_DEFINITION_BUILDER = new InjectionToken('rxap/forms/definition-builder');
692
695
  const RXAP_FORM_SUBMIT_METHOD = new InjectionToken('rxap/form/submit-method');
@@ -1814,12 +1817,13 @@ class FormDirective extends FormGroupDirective {
1814
1817
  // skip self, bc the token is set to null
1815
1818
  submitSuccessfulMethod = null,
1816
1819
  // skip self, bc the token is set to null
1817
- formDefinitionBuilder = null, loadingIndicatorService = null) {
1820
+ formDefinitionBuilder = null, loadingIndicatorService = null, context = null, initial = null) {
1818
1821
  super([], []);
1819
1822
  this.cdr = cdr;
1820
1823
  this.formDefinitionBuilder = formDefinitionBuilder;
1821
1824
  this.loadingIndicatorService = loadingIndicatorService;
1822
- this.context = input({});
1825
+ this.initial = model(null);
1826
+ this.context = model(null);
1823
1827
  /**
1824
1828
  * Emits when the submit method is executed without errors. The result of the
1825
1829
  * submit method is passed as event object.
@@ -1858,6 +1862,12 @@ class FormDirective extends FormGroupDirective {
1858
1862
  }
1859
1863
  this.loadingIndicatorService?.attachLoading(this.loading$);
1860
1864
  this.loadingIndicatorService?.attachLoading(this.submitting$);
1865
+ if (context) {
1866
+ this.context.set(context);
1867
+ }
1868
+ if (initial && typeof initial === 'object' && !Array.isArray(initial)) {
1869
+ this.initial.set(initial);
1870
+ }
1861
1871
  }
1862
1872
  ngOnChanges(changes) {
1863
1873
  super.ngOnChanges(changes);
@@ -1974,17 +1984,18 @@ class FormDirective extends FormGroupDirective {
1974
1984
  return false;
1975
1985
  }
1976
1986
  loadInitialState(form) {
1977
- if (this.initial) {
1987
+ const initial = this.initial();
1988
+ if (initial && typeof initial === 'object' && !Array.isArray(initial)) {
1978
1989
  if (isDevMode()) {
1979
1990
  console.log('use the value from input initial');
1980
1991
  }
1981
- form.patchValue(this.initial);
1992
+ form.patchValue(initial);
1982
1993
  }
1983
1994
  else {
1984
1995
  if (this.loadMethod) {
1985
1996
  this.loading$.enable();
1986
1997
  try {
1987
- const resultOrPromise = this.loadMethod.call();
1998
+ const resultOrPromise = this.loadMethod.call({ context: this.context(), initial: this.initial() });
1988
1999
  if (isPromise(resultOrPromise)) {
1989
2000
  resultOrPromise
1990
2001
  .then((value) => {
@@ -2128,8 +2139,8 @@ class FormDirective extends FormGroupDirective {
2128
2139
  this._formDefinition.ngOnDestroy();
2129
2140
  }
2130
2141
  }
2131
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: FormDirective, deps: [{ token: ChangeDetectorRef }, { token: RXAP_FORM_DEFINITION, optional: true }, { token: RXAP_FORM_SUBMIT_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_LOAD_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_LOAD_FAILED_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_LOAD_SUCCESSFUL_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_SUBMIT_FAILED_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_DEFINITION_BUILDER, optional: true, skipSelf: true }, { token: LoadingIndicatorService, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
2132
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.1", type: FormDirective, isStandalone: true, selector: "form[rxapForm]:not([formGroup]):not([ngForm]),rxap-form,form[rxapForm]", inputs: { initial: { classPropertyName: "initial", publicName: "initial", isSignal: false, isRequired: false, transformFunction: null }, context: { classPropertyName: "context", publicName: "context", isSignal: true, isRequired: false, transformFunction: null }, useFormDefinition: { classPropertyName: "useFormDefinition", publicName: "rxapForm", isSignal: false, isRequired: false, transformFunction: null }, submitMethod: { classPropertyName: "submitMethod", publicName: "submitMethod", isSignal: false, isRequired: false, transformFunction: null }, loadMethod: { classPropertyName: "loadMethod", publicName: "loadMethod", isSignal: false, isRequired: false, transformFunction: null }, loadFailedMethod: { classPropertyName: "loadFailedMethod", publicName: "loadFailedMethod", isSignal: false, isRequired: false, transformFunction: null }, loadSuccessfulMethod: { classPropertyName: "loadSuccessfulMethod", publicName: "loadSuccessfulMethod", isSignal: false, isRequired: false, transformFunction: null }, submitFailedMethod: { classPropertyName: "submitFailedMethod", publicName: "submitFailedMethod", isSignal: false, isRequired: false, transformFunction: null }, submitSuccessfulMethod: { classPropertyName: "submitSuccessfulMethod", publicName: "submitSuccessfulMethod", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { ngSubmit: "ngSubmit", rxapSubmit: "rxapSubmit", invalidSubmit: "invalidSubmit", submitSuccessful$: "submitSuccessful" }, host: { listeners: { "reset": "onReset()" }, properties: { "class.rxap-submitting": "this.submitting", "class.rxap-submit-error": "this.submitError", "class.rxap-loading": "this.loading", "class.rxap-loaded": "this.loaded", "class.rxap-loading-error": "this.loadingError" } }, providers: [
2142
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: FormDirective, deps: [{ token: ChangeDetectorRef }, { token: RXAP_FORM_DEFINITION, optional: true }, { token: RXAP_FORM_SUBMIT_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_LOAD_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_LOAD_FAILED_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_LOAD_SUCCESSFUL_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_SUBMIT_FAILED_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_DEFINITION_BUILDER, optional: true, skipSelf: true }, { token: LoadingIndicatorService, optional: true }, { token: RXAP_FORM_CONTEXT, optional: true }, { token: RXAP_FORM_INITIAL_STATE, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
2143
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.1", type: FormDirective, isStandalone: true, selector: "form[rxapForm]:not([formGroup]):not([ngForm]),rxap-form,form[rxapForm]", inputs: { initial: { classPropertyName: "initial", publicName: "initial", isSignal: true, isRequired: false, transformFunction: null }, context: { classPropertyName: "context", publicName: "context", isSignal: true, isRequired: false, transformFunction: null }, useFormDefinition: { classPropertyName: "useFormDefinition", publicName: "rxapForm", isSignal: false, isRequired: false, transformFunction: null }, submitMethod: { classPropertyName: "submitMethod", publicName: "submitMethod", isSignal: false, isRequired: false, transformFunction: null }, loadMethod: { classPropertyName: "loadMethod", publicName: "loadMethod", isSignal: false, isRequired: false, transformFunction: null }, loadFailedMethod: { classPropertyName: "loadFailedMethod", publicName: "loadFailedMethod", isSignal: false, isRequired: false, transformFunction: null }, loadSuccessfulMethod: { classPropertyName: "loadSuccessfulMethod", publicName: "loadSuccessfulMethod", isSignal: false, isRequired: false, transformFunction: null }, submitFailedMethod: { classPropertyName: "submitFailedMethod", publicName: "submitFailedMethod", isSignal: false, isRequired: false, transformFunction: null }, submitSuccessfulMethod: { classPropertyName: "submitSuccessfulMethod", publicName: "submitSuccessfulMethod", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { ngSubmit: "ngSubmit", initial: "initialChange", context: "contextChange", rxapSubmit: "rxapSubmit", invalidSubmit: "invalidSubmit", submitSuccessful$: "submitSuccessful" }, host: { listeners: { "reset": "onReset()" }, properties: { "class.rxap-submitting": "this.submitting", "class.rxap-submit-error": "this.submitError", "class.rxap-loading": "this.loading", "class.rxap-loaded": "this.loaded", "class.rxap-loading-error": "this.loadingError" } }, providers: [
2133
2144
  {
2134
2145
  provide: ControlContainer,
2135
2146
  // ignore coverage
@@ -2288,9 +2299,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
2288
2299
  }, {
2289
2300
  type: Inject,
2290
2301
  args: [LoadingIndicatorService]
2291
- }] }], propDecorators: { initial: [{
2292
- type: Input
2293
- }], rxapSubmit: [{
2302
+ }] }, { type: undefined, decorators: [{
2303
+ type: Optional
2304
+ }, {
2305
+ type: Inject,
2306
+ args: [RXAP_FORM_CONTEXT]
2307
+ }] }, { type: undefined, decorators: [{
2308
+ type: Optional
2309
+ }, {
2310
+ type: Inject,
2311
+ args: [RXAP_FORM_INITIAL_STATE]
2312
+ }] }], propDecorators: { rxapSubmit: [{
2294
2313
  type: Output
2295
2314
  }], invalidSubmit: [{
2296
2315
  type: Output
@@ -2884,9 +2903,6 @@ class ControlValueAccessor {
2884
2903
  }
2885
2904
  }
2886
2905
 
2887
- const RXAP_FORM_INITIAL_STATE = new InjectionToken('rxap/forms/initial-state');
2888
- const RXAP_FORM_CONTEXT = new InjectionToken('rxap/forms/context');
2889
-
2890
2906
  // region validators
2891
2907
  // endregion
2892
2908