@rxap/forms 19.1.0-dev.2 → 19.1.0-dev.4

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 (399) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/compodoc/changelog.html +10 -0
  3. package/compodoc/classes/RxapFormArray.html +75 -61
  4. package/compodoc/js/search/search_index.js +2 -2
  5. package/compodoc/properties.html +1 -1
  6. package/docs/documentation.json +1104 -1104
  7. package/docs/html/classes/ControlValueAccessor.html +5 -5
  8. package/docs/html/classes/FormArrayControlManager.html +2 -2
  9. package/docs/html/classes/FormControlErrorDirective.html +5 -5
  10. package/docs/html/classes/FormControlMarkDirtyDirective.html +2 -2
  11. package/docs/html/classes/FormControlMarkPristineDirective.html +2 -2
  12. package/docs/html/classes/FormControlMarkTouchedDirective.html +2 -2
  13. package/docs/html/classes/FormControlMarkUntouchedDirective.html +2 -2
  14. package/docs/html/classes/FormControlNameDirective.html +6 -6
  15. package/docs/html/classes/FormDirective.html +15 -15
  16. package/docs/html/classes/FormGroupNameDirective.html +6 -6
  17. package/docs/html/classes/FormLoadedDirective.html +4 -4
  18. package/docs/html/classes/FormLoadingDirective.html +4 -4
  19. package/docs/html/classes/FormLoadingErrorDirective.html +4 -4
  20. package/docs/html/classes/FormResetDirective.html +2 -2
  21. package/docs/html/classes/FormSubmitDirective.html +3 -3
  22. package/docs/html/classes/FormSubmitFailedDirective.html +4 -4
  23. package/docs/html/classes/FormSubmitInvalidDirective.html +4 -4
  24. package/docs/html/classes/FormSubmitSuccessfulDirective.html +4 -4
  25. package/docs/html/classes/FormSubmittingDirective.html +4 -4
  26. package/docs/html/classes/ParentControlContainerDirective.html +2 -2
  27. package/docs/html/classes/RxapFormArray.html +34 -34
  28. package/docs/html/classes/RxapFormBuilder.html +2 -2
  29. package/docs/html/classes/RxapFormControl.html +30 -30
  30. package/docs/html/classes/RxapFormGroup.html +35 -35
  31. package/docs/html/classes/RxapFormsModule.html +2 -2
  32. package/docs/html/enums/MetadataKeys.html +2 -2
  33. package/docs/html/functions/ControlAsyncValidator.html +1 -1
  34. package/docs/html/functions/ControlChange.html +1 -1
  35. package/docs/html/functions/ControlSetValue.html +1 -1
  36. package/docs/html/functions/ControlValidator.html +1 -1
  37. package/docs/html/functions/IsArray.html +1 -1
  38. package/docs/html/functions/IsBoolean.html +1 -1
  39. package/docs/html/functions/IsComplex.html +1 -1
  40. package/docs/html/functions/IsDate.html +1 -1
  41. package/docs/html/functions/IsEmail.html +1 -1
  42. package/docs/html/functions/IsEnum.html +1 -1
  43. package/docs/html/functions/IsIP.html +1 -1
  44. package/docs/html/functions/IsInt.html +1 -1
  45. package/docs/html/functions/IsNumber-1.html +2 -2
  46. package/docs/html/functions/IsObject.html +1 -1
  47. package/docs/html/functions/IsPhoneNumber.html +1 -1
  48. package/docs/html/functions/IsPort.html +1 -1
  49. package/docs/html/functions/IsString.html +1 -1
  50. package/docs/html/functions/IsUUID.html +1 -1
  51. package/docs/html/functions/IsUrl.html +1 -1
  52. package/docs/html/functions/RxapForm.html +1 -1
  53. package/docs/html/functions/ToFormMethod.html +1 -1
  54. package/docs/html/functions/ToFormSubmitMethod.html +2 -2
  55. package/docs/html/functions/UseFormArrayControl.html +1 -1
  56. package/docs/html/functions/UseFormArrayGroup.html +1 -1
  57. package/docs/html/functions/UseFormControl.html +1 -1
  58. package/docs/html/functions/UseFormGroup.html +1 -1
  59. package/docs/html/functions/_IsNumber.html +1 -1
  60. package/docs/html/functions/controlDisabledWhile.html +1 -1
  61. package/docs/html/functions/controlDisabled_.html +1 -1
  62. package/docs/html/functions/controlEnabledWhile.html +1 -1
  63. package/docs/html/functions/controlEnabled_.html +1 -1
  64. package/docs/html/functions/controlErrorChanges_.html +1 -1
  65. package/docs/html/functions/controlReadonly_.html +1 -1
  66. package/docs/html/functions/controlStatusChanges_.html +1 -1
  67. package/docs/html/functions/controlValueChanges_.html +1 -1
  68. package/docs/html/functions/disableControl.html +1 -1
  69. package/docs/html/functions/enableControl.html +1 -1
  70. package/docs/html/functions/hasErrorAndDirty.html +1 -1
  71. package/docs/html/functions/hasErrorAndTouched.html +1 -1
  72. package/docs/html/functions/isNumber.html +2 -2
  73. package/docs/html/functions/markAllDirty.html +1 -1
  74. package/docs/html/functions/markAllPristine.html +1 -1
  75. package/docs/html/functions/markAllUntouched.html +1 -1
  76. package/docs/html/functions/mergeControlValidators.html +1 -1
  77. package/docs/html/functions/selectControlValue_.html +1 -1
  78. package/docs/html/functions/validateControlOn.html +1 -1
  79. package/docs/html/hierarchy.html +1 -1
  80. package/docs/html/index.html +2 -2
  81. package/docs/html/interfaces/AbstractControl.html +5 -5
  82. package/docs/html/interfaces/AbstractControlOptions.html +3 -3
  83. package/docs/html/interfaces/BoxedValue.html +2 -2
  84. package/docs/html/interfaces/ComplexityOptions.html +2 -2
  85. package/docs/html/interfaces/ControlOptions.html +3 -3
  86. package/docs/html/interfaces/ControlSetValueOptions.html +2 -2
  87. package/docs/html/interfaces/FormArrayOptions.html +3 -3
  88. package/docs/html/interfaces/FormDefinition.html +6 -6
  89. package/docs/html/interfaces/FormDefinitionArray.html +3 -3
  90. package/docs/html/interfaces/FormDefinitionMetadata.html +3 -3
  91. package/docs/html/interfaces/FormGroupOptions.html +3 -3
  92. package/docs/html/interfaces/FormLoadFailedMethod.html +2 -2
  93. package/docs/html/interfaces/FormLoadMethod.html +2 -2
  94. package/docs/html/interfaces/FormLoadSuccessfulMethod.html +2 -2
  95. package/docs/html/interfaces/FormOptions.html +3 -3
  96. package/docs/html/interfaces/FormSubmitFailedMethod.html +2 -2
  97. package/docs/html/interfaces/FormSubmitMethod.html +2 -2
  98. package/docs/html/interfaces/FormSubmitSuccessfulMethod.html +2 -2
  99. package/docs/html/interfaces/InjectableValidator.html +2 -2
  100. package/docs/html/interfaces/IsNumberOptions.html +3 -3
  101. package/docs/html/interfaces/NgValidatorsErrors.html +2 -2
  102. package/docs/html/interfaces/RxapAbstractControlOptionsWithDefinition.html +3 -3
  103. package/docs/html/interfaces/_RxapAbstractControlOptions.html +3 -3
  104. package/docs/html/modules.html +1 -1
  105. package/docs/html/types/AsyncValidator.html +1 -1
  106. package/docs/html/types/AsyncValidatorFn.html +1 -1
  107. package/docs/html/types/ChangeFn.html +1 -1
  108. package/docs/html/types/ControlEventOptions.html +1 -1
  109. package/docs/html/types/ControlInsertedFn.html +1 -1
  110. package/docs/html/types/ControlPath.html +1 -1
  111. package/docs/html/types/ControlRemovedFn.html +1 -1
  112. package/docs/html/types/ControlState.html +1 -1
  113. package/docs/html/types/EmitEvent.html +1 -1
  114. package/docs/html/types/ExtractAbstractControl.html +1 -1
  115. package/docs/html/types/ExtractStrings.html +1 -1
  116. package/docs/html/types/FormBuilderFn.html +1 -1
  117. package/docs/html/types/FormType.html +1 -1
  118. package/docs/html/types/KeyValueControls.html +1 -1
  119. package/docs/html/types/OnlySelf.html +1 -1
  120. package/docs/html/types/OrBoxedValue.html +1 -1
  121. package/docs/html/types/RxapAbstractControlOptions.html +1 -1
  122. package/docs/html/types/SetValueFn.html +1 -1
  123. package/docs/html/types/ValidationErrors.html +1 -1
  124. package/docs/html/types/Validator.html +1 -1
  125. package/docs/html/types/ValidatorFn.html +1 -1
  126. package/docs/html/types/ValidatorOrOpts.html +1 -1
  127. package/docs/html/variables/RXAP_FORM_CONTEXT.html +1 -1
  128. package/docs/html/variables/RXAP_FORM_DEFINITION.html +1 -1
  129. package/docs/html/variables/RXAP_FORM_DEFINITION_BUILDER.html +1 -1
  130. package/docs/html/variables/RXAP_FORM_INITIAL_STATE.html +1 -1
  131. package/docs/html/variables/RXAP_FORM_LOAD_FAILED_METHOD.html +1 -1
  132. package/docs/html/variables/RXAP_FORM_LOAD_METHOD.html +1 -1
  133. package/docs/html/variables/RXAP_FORM_LOAD_SUCCESSFUL_METHOD.html +1 -1
  134. package/docs/html/variables/RXAP_FORM_SUBMIT_FAILED_METHOD.html +1 -1
  135. package/docs/html/variables/RXAP_FORM_SUBMIT_METHOD.html +1 -1
  136. package/docs/html/variables/RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD.html +1 -1
  137. package/docs/html/variables/RxapValidators.html +1 -1
  138. package/docs/markdown/README.md +1 -1
  139. package/docs/markdown/classes/ControlValueAccessor.md +8 -8
  140. package/docs/markdown/classes/FormArrayControlManager.md +5 -5
  141. package/docs/markdown/classes/FormControlErrorDirective.md +7 -7
  142. package/docs/markdown/classes/FormControlMarkDirtyDirective.md +4 -4
  143. package/docs/markdown/classes/FormControlMarkPristineDirective.md +4 -4
  144. package/docs/markdown/classes/FormControlMarkTouchedDirective.md +4 -4
  145. package/docs/markdown/classes/FormControlMarkUntouchedDirective.md +4 -4
  146. package/docs/markdown/classes/FormControlNameDirective.md +5 -5
  147. package/docs/markdown/classes/FormDirective.md +42 -42
  148. package/docs/markdown/classes/FormGroupNameDirective.md +5 -5
  149. package/docs/markdown/classes/FormLoadedDirective.md +5 -5
  150. package/docs/markdown/classes/FormLoadingDirective.md +5 -5
  151. package/docs/markdown/classes/FormLoadingErrorDirective.md +5 -5
  152. package/docs/markdown/classes/FormResetDirective.md +8 -8
  153. package/docs/markdown/classes/FormSubmitDirective.md +15 -15
  154. package/docs/markdown/classes/FormSubmitFailedDirective.md +5 -5
  155. package/docs/markdown/classes/FormSubmitInvalidDirective.md +5 -5
  156. package/docs/markdown/classes/FormSubmitSuccessfulDirective.md +5 -5
  157. package/docs/markdown/classes/FormSubmittingDirective.md +5 -5
  158. package/docs/markdown/classes/ParentControlContainerDirective.md +2 -2
  159. package/docs/markdown/classes/RxapFormArray.md +54 -54
  160. package/docs/markdown/classes/RxapFormBuilder.md +4 -4
  161. package/docs/markdown/classes/RxapFormControl.md +50 -50
  162. package/docs/markdown/classes/RxapFormGroup.md +74 -74
  163. package/docs/markdown/classes/RxapFormsModule.md +2 -2
  164. package/docs/markdown/enumerations/MetadataKeys.md +10 -10
  165. package/docs/markdown/functions/ControlAsyncValidator.md +2 -2
  166. package/docs/markdown/functions/ControlChange.md +2 -2
  167. package/docs/markdown/functions/ControlSetValue.md +2 -2
  168. package/docs/markdown/functions/ControlValidator.md +2 -2
  169. package/docs/markdown/functions/IsArray.md +2 -2
  170. package/docs/markdown/functions/IsBoolean.md +2 -2
  171. package/docs/markdown/functions/IsComplex.md +2 -2
  172. package/docs/markdown/functions/IsDate.md +2 -2
  173. package/docs/markdown/functions/IsEmail.md +2 -2
  174. package/docs/markdown/functions/IsEnum.md +2 -2
  175. package/docs/markdown/functions/IsIP.md +2 -2
  176. package/docs/markdown/functions/IsInt.md +2 -2
  177. package/docs/markdown/functions/IsNumber-2.md +2 -2
  178. package/docs/markdown/functions/IsNumber.md +2 -2
  179. package/docs/markdown/functions/IsObject.md +2 -2
  180. package/docs/markdown/functions/IsPhoneNumber.md +2 -2
  181. package/docs/markdown/functions/IsPort.md +2 -2
  182. package/docs/markdown/functions/IsString.md +2 -2
  183. package/docs/markdown/functions/IsUUID.md +2 -2
  184. package/docs/markdown/functions/IsUrl.md +2 -2
  185. package/docs/markdown/functions/RxapForm.md +2 -2
  186. package/docs/markdown/functions/ToFormMethod.md +2 -2
  187. package/docs/markdown/functions/ToFormSubmitMethod.md +2 -2
  188. package/docs/markdown/functions/UseFormArrayControl.md +2 -2
  189. package/docs/markdown/functions/UseFormArrayGroup.md +2 -2
  190. package/docs/markdown/functions/UseFormControl.md +2 -2
  191. package/docs/markdown/functions/UseFormGroup.md +2 -2
  192. package/docs/markdown/functions/controlDisabled$.md +2 -2
  193. package/docs/markdown/functions/controlDisabledWhile.md +2 -2
  194. package/docs/markdown/functions/controlEnabled$.md +2 -2
  195. package/docs/markdown/functions/controlEnabledWhile.md +2 -2
  196. package/docs/markdown/functions/controlErrorChanges$.md +2 -2
  197. package/docs/markdown/functions/controlReadonly$.md +2 -2
  198. package/docs/markdown/functions/controlStatusChanges$.md +2 -2
  199. package/docs/markdown/functions/controlValueChanges$.md +2 -2
  200. package/docs/markdown/functions/disableControl.md +2 -2
  201. package/docs/markdown/functions/enableControl.md +2 -2
  202. package/docs/markdown/functions/hasErrorAndDirty.md +2 -2
  203. package/docs/markdown/functions/hasErrorAndTouched.md +2 -2
  204. package/docs/markdown/functions/isNumber-1.md +2 -2
  205. package/docs/markdown/functions/markAllDirty.md +2 -2
  206. package/docs/markdown/functions/markAllPristine.md +2 -2
  207. package/docs/markdown/functions/markAllUntouched.md +2 -2
  208. package/docs/markdown/functions/mergeControlValidators.md +2 -2
  209. package/docs/markdown/functions/selectControlValue$.md +2 -2
  210. package/docs/markdown/functions/validateControlOn.md +2 -2
  211. package/docs/markdown/globals.md +2 -2
  212. package/docs/markdown/interfaces/AbstractControl.md +8 -8
  213. package/docs/markdown/interfaces/AbstractControlOptions.md +4 -4
  214. package/docs/markdown/interfaces/BoxedValue.md +4 -4
  215. package/docs/markdown/interfaces/ComplexityOptions.md +12 -12
  216. package/docs/markdown/interfaces/ControlOptions.md +9 -9
  217. package/docs/markdown/interfaces/ControlSetValueOptions.md +4 -4
  218. package/docs/markdown/interfaces/FormArrayOptions.md +11 -11
  219. package/docs/markdown/interfaces/FormDefinition.md +7 -7
  220. package/docs/markdown/interfaces/FormDefinitionArray.md +3 -3
  221. package/docs/markdown/interfaces/FormDefinitionMetadata.md +10 -10
  222. package/docs/markdown/interfaces/FormGroupOptions.md +8 -8
  223. package/docs/markdown/interfaces/FormLoadFailedMethod.md +4 -4
  224. package/docs/markdown/interfaces/FormLoadMethod.md +4 -4
  225. package/docs/markdown/interfaces/FormLoadSuccessfulMethod.md +4 -4
  226. package/docs/markdown/interfaces/FormOptions.md +8 -8
  227. package/docs/markdown/interfaces/FormSubmitFailedMethod.md +4 -4
  228. package/docs/markdown/interfaces/FormSubmitMethod.md +4 -4
  229. package/docs/markdown/interfaces/FormSubmitSuccessfulMethod.md +4 -4
  230. package/docs/markdown/interfaces/InjectableValidator.md +4 -4
  231. package/docs/markdown/interfaces/IsNumberOptions.md +6 -6
  232. package/docs/markdown/interfaces/NgValidatorsErrors.md +9 -9
  233. package/docs/markdown/interfaces/RxapAbstractControlOptions.md +7 -7
  234. package/docs/markdown/interfaces/RxapAbstractControlOptionsWithDefinition.md +8 -8
  235. package/docs/markdown/type-aliases/AsyncValidator.md +2 -2
  236. package/docs/markdown/type-aliases/AsyncValidatorFn.md +2 -2
  237. package/docs/markdown/type-aliases/ChangeFn.md +2 -2
  238. package/docs/markdown/type-aliases/ControlEventOptions.md +2 -2
  239. package/docs/markdown/type-aliases/ControlInsertedFn.md +2 -2
  240. package/docs/markdown/type-aliases/ControlPath.md +2 -2
  241. package/docs/markdown/type-aliases/ControlRemovedFn.md +2 -2
  242. package/docs/markdown/type-aliases/ControlState.md +2 -2
  243. package/docs/markdown/type-aliases/EmitEvent.md +2 -2
  244. package/docs/markdown/type-aliases/ExtractAbstractControl.md +2 -2
  245. package/docs/markdown/type-aliases/ExtractStrings.md +2 -2
  246. package/docs/markdown/type-aliases/FormBuilderFn.md +2 -2
  247. package/docs/markdown/type-aliases/FormType.md +2 -2
  248. package/docs/markdown/type-aliases/KeyValueControls.md +2 -2
  249. package/docs/markdown/type-aliases/OnlySelf.md +2 -2
  250. package/docs/markdown/type-aliases/OrBoxedValue.md +2 -2
  251. package/docs/markdown/type-aliases/RxapAbstractControlOptions.md +2 -2
  252. package/docs/markdown/type-aliases/SetValueFn.md +2 -2
  253. package/docs/markdown/type-aliases/ValidationErrors.md +2 -2
  254. package/docs/markdown/type-aliases/Validator.md +2 -2
  255. package/docs/markdown/type-aliases/ValidatorFn.md +2 -2
  256. package/docs/markdown/type-aliases/ValidatorOrOpts.md +2 -2
  257. package/docs/markdown/variables/RXAP_FORM_CONTEXT.md +2 -2
  258. package/docs/markdown/variables/RXAP_FORM_DEFINITION.md +2 -2
  259. package/docs/markdown/variables/RXAP_FORM_DEFINITION_BUILDER.md +2 -2
  260. package/docs/markdown/variables/RXAP_FORM_INITIAL_STATE.md +2 -2
  261. package/docs/markdown/variables/RXAP_FORM_LOAD_FAILED_METHOD.md +2 -2
  262. package/docs/markdown/variables/RXAP_FORM_LOAD_METHOD.md +2 -2
  263. package/docs/markdown/variables/RXAP_FORM_LOAD_SUCCESSFUL_METHOD.md +2 -2
  264. package/docs/markdown/variables/RXAP_FORM_SUBMIT_FAILED_METHOD.md +2 -2
  265. package/docs/markdown/variables/RXAP_FORM_SUBMIT_METHOD.md +2 -2
  266. package/docs/markdown/variables/RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD.md +2 -2
  267. package/docs/markdown/variables/RxapValidators.md +2 -2
  268. package/docs/wiki/Class.ControlValueAccessor.md +7 -7
  269. package/docs/wiki/Class.FormArrayControlManager.md +4 -4
  270. package/docs/wiki/Class.FormControlErrorDirective.md +6 -6
  271. package/docs/wiki/Class.FormControlMarkDirtyDirective.md +3 -3
  272. package/docs/wiki/Class.FormControlMarkPristineDirective.md +3 -3
  273. package/docs/wiki/Class.FormControlMarkTouchedDirective.md +3 -3
  274. package/docs/wiki/Class.FormControlMarkUntouchedDirective.md +3 -3
  275. package/docs/wiki/Class.FormControlNameDirective.md +4 -4
  276. package/docs/wiki/Class.FormDirective.md +41 -41
  277. package/docs/wiki/Class.FormGroupNameDirective.md +4 -4
  278. package/docs/wiki/Class.FormLoadedDirective.md +4 -4
  279. package/docs/wiki/Class.FormLoadingDirective.md +4 -4
  280. package/docs/wiki/Class.FormLoadingErrorDirective.md +4 -4
  281. package/docs/wiki/Class.FormResetDirective.md +7 -7
  282. package/docs/wiki/Class.FormSubmitDirective.md +14 -14
  283. package/docs/wiki/Class.FormSubmitFailedDirective.md +4 -4
  284. package/docs/wiki/Class.FormSubmitInvalidDirective.md +4 -4
  285. package/docs/wiki/Class.FormSubmitSuccessfulDirective.md +4 -4
  286. package/docs/wiki/Class.FormSubmittingDirective.md +4 -4
  287. package/docs/wiki/Class.ParentControlContainerDirective.md +1 -1
  288. package/docs/wiki/Class.RxapFormArray.md +53 -53
  289. package/docs/wiki/Class.RxapFormBuilder.md +3 -3
  290. package/docs/wiki/Class.RxapFormControl.md +49 -49
  291. package/docs/wiki/Class.RxapFormGroup.md +73 -73
  292. package/docs/wiki/Class.RxapFormsModule.md +1 -1
  293. package/docs/wiki/Enumeration.MetadataKeys.md +9 -9
  294. package/docs/wiki/Function.ControlAsyncValidator.md +1 -1
  295. package/docs/wiki/Function.ControlChange.md +1 -1
  296. package/docs/wiki/Function.ControlSetValue.md +1 -1
  297. package/docs/wiki/Function.ControlValidator.md +1 -1
  298. package/docs/wiki/Function.IsArray.md +1 -1
  299. package/docs/wiki/Function.IsBoolean.md +1 -1
  300. package/docs/wiki/Function.IsComplex.md +1 -1
  301. package/docs/wiki/Function.IsDate.md +1 -1
  302. package/docs/wiki/Function.IsEmail.md +1 -1
  303. package/docs/wiki/Function.IsEnum.md +1 -1
  304. package/docs/wiki/Function.IsIP.md +1 -1
  305. package/docs/wiki/Function.IsInt.md +1 -1
  306. package/docs/wiki/Function.IsNumber.md +1 -1
  307. package/docs/wiki/Function.IsObject.md +1 -1
  308. package/docs/wiki/Function.IsPhoneNumber.md +1 -1
  309. package/docs/wiki/Function.IsPort.md +1 -1
  310. package/docs/wiki/Function.IsString.md +1 -1
  311. package/docs/wiki/Function.IsUUID.md +1 -1
  312. package/docs/wiki/Function.IsUrl.md +1 -1
  313. package/docs/wiki/Function.RxapForm.md +1 -1
  314. package/docs/wiki/Function.ToFormMethod.md +1 -1
  315. package/docs/wiki/Function.ToFormSubmitMethod.md +1 -1
  316. package/docs/wiki/Function.UseFormArrayControl.md +1 -1
  317. package/docs/wiki/Function.UseFormArrayGroup.md +1 -1
  318. package/docs/wiki/Function.UseFormControl.md +1 -1
  319. package/docs/wiki/Function.UseFormGroup.md +1 -1
  320. package/docs/wiki/Function._IsNumber.md +1 -1
  321. package/docs/wiki/Function.controlDisabled$.md +1 -1
  322. package/docs/wiki/Function.controlDisabledWhile.md +1 -1
  323. package/docs/wiki/Function.controlEnabled$.md +1 -1
  324. package/docs/wiki/Function.controlEnabledWhile.md +1 -1
  325. package/docs/wiki/Function.controlErrorChanges$.md +1 -1
  326. package/docs/wiki/Function.controlReadonly$.md +1 -1
  327. package/docs/wiki/Function.controlStatusChanges$.md +1 -1
  328. package/docs/wiki/Function.controlValueChanges$.md +1 -1
  329. package/docs/wiki/Function.disableControl.md +1 -1
  330. package/docs/wiki/Function.enableControl.md +1 -1
  331. package/docs/wiki/Function.hasErrorAndDirty.md +1 -1
  332. package/docs/wiki/Function.hasErrorAndTouched.md +1 -1
  333. package/docs/wiki/Function.isNumber.md +1 -1
  334. package/docs/wiki/Function.markAllDirty.md +1 -1
  335. package/docs/wiki/Function.markAllPristine.md +1 -1
  336. package/docs/wiki/Function.markAllUntouched.md +1 -1
  337. package/docs/wiki/Function.mergeControlValidators.md +1 -1
  338. package/docs/wiki/Function.selectControlValue$.md +1 -1
  339. package/docs/wiki/Function.validateControlOn.md +1 -1
  340. package/docs/wiki/Interface.AbstractControl.md +7 -7
  341. package/docs/wiki/Interface.AbstractControlOptions.md +3 -3
  342. package/docs/wiki/Interface.BoxedValue.md +3 -3
  343. package/docs/wiki/Interface.ComplexityOptions.md +11 -11
  344. package/docs/wiki/Interface.ControlOptions.md +8 -8
  345. package/docs/wiki/Interface.ControlSetValueOptions.md +3 -3
  346. package/docs/wiki/Interface.FormArrayOptions.md +10 -10
  347. package/docs/wiki/Interface.FormDefinition.md +6 -6
  348. package/docs/wiki/Interface.FormDefinitionArray.md +2 -2
  349. package/docs/wiki/Interface.FormDefinitionMetadata.md +9 -9
  350. package/docs/wiki/Interface.FormGroupOptions.md +7 -7
  351. package/docs/wiki/Interface.FormLoadFailedMethod.md +3 -3
  352. package/docs/wiki/Interface.FormLoadMethod.md +3 -3
  353. package/docs/wiki/Interface.FormLoadSuccessfulMethod.md +3 -3
  354. package/docs/wiki/Interface.FormOptions.md +7 -7
  355. package/docs/wiki/Interface.FormSubmitFailedMethod.md +3 -3
  356. package/docs/wiki/Interface.FormSubmitMethod.md +3 -3
  357. package/docs/wiki/Interface.FormSubmitSuccessfulMethod.md +3 -3
  358. package/docs/wiki/Interface.InjectableValidator.md +3 -3
  359. package/docs/wiki/Interface.IsNumberOptions.md +5 -5
  360. package/docs/wiki/Interface.NgValidatorsErrors.md +8 -8
  361. package/docs/wiki/Interface.RxapAbstractControlOptionsWithDefinition.md +7 -7
  362. package/docs/wiki/Interface._RxapAbstractControlOptions.md +6 -6
  363. package/docs/wiki/TypeAlias.AsyncValidator.md +1 -1
  364. package/docs/wiki/TypeAlias.AsyncValidatorFn.md +1 -1
  365. package/docs/wiki/TypeAlias.ChangeFn.md +1 -1
  366. package/docs/wiki/TypeAlias.ControlEventOptions.md +1 -1
  367. package/docs/wiki/TypeAlias.ControlInsertedFn.md +1 -1
  368. package/docs/wiki/TypeAlias.ControlPath.md +1 -1
  369. package/docs/wiki/TypeAlias.ControlRemovedFn.md +1 -1
  370. package/docs/wiki/TypeAlias.ControlState.md +1 -1
  371. package/docs/wiki/TypeAlias.EmitEvent.md +1 -1
  372. package/docs/wiki/TypeAlias.ExtractAbstractControl.md +1 -1
  373. package/docs/wiki/TypeAlias.ExtractStrings.md +1 -1
  374. package/docs/wiki/TypeAlias.FormBuilderFn.md +1 -1
  375. package/docs/wiki/TypeAlias.FormType.md +1 -1
  376. package/docs/wiki/TypeAlias.KeyValueControls.md +1 -1
  377. package/docs/wiki/TypeAlias.OnlySelf.md +1 -1
  378. package/docs/wiki/TypeAlias.OrBoxedValue.md +1 -1
  379. package/docs/wiki/TypeAlias.RxapAbstractControlOptions.md +1 -1
  380. package/docs/wiki/TypeAlias.SetValueFn.md +1 -1
  381. package/docs/wiki/TypeAlias.ValidationErrors.md +1 -1
  382. package/docs/wiki/TypeAlias.Validator.md +1 -1
  383. package/docs/wiki/TypeAlias.ValidatorFn.md +1 -1
  384. package/docs/wiki/TypeAlias.ValidatorOrOpts.md +1 -1
  385. package/docs/wiki/Variable.RXAP_FORM_CONTEXT.md +1 -1
  386. package/docs/wiki/Variable.RXAP_FORM_DEFINITION.md +1 -1
  387. package/docs/wiki/Variable.RXAP_FORM_DEFINITION_BUILDER.md +1 -1
  388. package/docs/wiki/Variable.RXAP_FORM_INITIAL_STATE.md +1 -1
  389. package/docs/wiki/Variable.RXAP_FORM_LOAD_FAILED_METHOD.md +1 -1
  390. package/docs/wiki/Variable.RXAP_FORM_LOAD_METHOD.md +1 -1
  391. package/docs/wiki/Variable.RXAP_FORM_LOAD_SUCCESSFUL_METHOD.md +1 -1
  392. package/docs/wiki/Variable.RXAP_FORM_SUBMIT_FAILED_METHOD.md +1 -1
  393. package/docs/wiki/Variable.RXAP_FORM_SUBMIT_METHOD.md +1 -1
  394. package/docs/wiki/Variable.RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD.md +1 -1
  395. package/docs/wiki/Variable.RxapValidators.md +1 -1
  396. package/docs/wiki/globals.md +1 -1
  397. package/fesm2022/rxap-forms.mjs +20 -5
  398. package/fesm2022/rxap-forms.mjs.map +1 -1
  399. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [19.1.0-dev.4](https://gitlab.com/rxap/packages/compare/@rxap/forms@19.1.0-dev.3...@rxap/forms@19.1.0-dev.4) (2025-08-18)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **form-array:** correct control insertion logic and ID updates ([fc949e3](https://gitlab.com/rxap/packages/commit/fc949e312c243075d47ab7fc4d31432bbf6880a7))
11
+
12
+ # [19.1.0-dev.3](https://gitlab.com/rxap/packages/compare/@rxap/forms@19.1.0-dev.2...@rxap/forms@19.1.0-dev.3) (2025-08-18)
13
+
14
+ ### Bug Fixes
15
+
16
+ - **form-array:** handle control insertion edge case ([97c1e1c](https://gitlab.com/rxap/packages/commit/97c1e1c15eea4276267dc1dfc54a530d28a6818f))
17
+
6
18
  # [19.1.0-dev.2](https://gitlab.com/rxap/packages/compare/@rxap/forms@19.1.0-dev.1...@rxap/forms@19.1.0-dev.2) (2025-08-12)
7
19
 
8
20
  ### Features
@@ -85,6 +85,16 @@
85
85
  <h1>Change Log</h1>
86
86
  <p>All notable changes to this project will be documented in this file.
87
87
  See <a href="https://conventionalcommits.org">Conventional Commits</a> for commit guidelines.</p>
88
+ <h1><a href="https://gitlab.com/rxap/packages/compare/@rxap/forms@19.1.0-dev.3...@rxap/forms@19.1.0-dev.4">19.1.0-dev.4</a> (2025-08-18)</h1>
89
+ <h3>Bug Fixes</h3>
90
+ <ul>
91
+ <li><strong>form-array:</strong> correct control insertion logic and ID updates (<a href="https://gitlab.com/rxap/packages/commit/fc949e312c243075d47ab7fc4d31432bbf6880a7">fc949e3</a>)</li>
92
+ </ul>
93
+ <h1><a href="https://gitlab.com/rxap/packages/compare/@rxap/forms@19.1.0-dev.2...@rxap/forms@19.1.0-dev.3">19.1.0-dev.3</a> (2025-08-18)</h1>
94
+ <h3>Bug Fixes</h3>
95
+ <ul>
96
+ <li><strong>form-array:</strong> handle control insertion edge case (<a href="https://gitlab.com/rxap/packages/commit/97c1e1c15eea4276267dc1dfc54a530d28a6818f">97c1e1c</a>)</li>
97
+ </ul>
88
98
  <h1><a href="https://gitlab.com/rxap/packages/compare/@rxap/forms@19.1.0-dev.1...@rxap/forms@19.1.0-dev.2">19.1.0-dev.2</a> (2025-08-12)</h1>
89
99
  <h3>Features</h3>
90
100
  <ul>
@@ -975,8 +975,8 @@
975
975
 
976
976
  <tr>
977
977
  <td class="col-md-4">
978
- <div class="io-line">Defined in <a href="" data-line="193"
979
- class="link-to-prism">src/lib/form-array.ts:193</a></div>
978
+ <div class="io-line">Defined in <a href="" data-line="207"
979
+ class="link-to-prism">src/lib/form-array.ts:207</a></div>
980
980
  </td>
981
981
  </tr>
982
982
 
@@ -1056,8 +1056,8 @@
1056
1056
 
1057
1057
  <tr>
1058
1058
  <td class="col-md-4">
1059
- <div class="io-line">Defined in <a href="" data-line="200"
1060
- class="link-to-prism">src/lib/form-array.ts:200</a></div>
1059
+ <div class="io-line">Defined in <a href="" data-line="214"
1060
+ class="link-to-prism">src/lib/form-array.ts:214</a></div>
1061
1061
  </td>
1062
1062
  </tr>
1063
1063
 
@@ -1138,8 +1138,8 @@
1138
1138
 
1139
1139
  <tr>
1140
1140
  <td class="col-md-4">
1141
- <div class="io-line">Defined in <a href="" data-line="392"
1142
- class="link-to-prism">src/lib/form-array.ts:392</a></div>
1141
+ <div class="io-line">Defined in <a href="" data-line="406"
1142
+ class="link-to-prism">src/lib/form-array.ts:406</a></div>
1143
1143
  </td>
1144
1144
  </tr>
1145
1145
 
@@ -1268,8 +1268,8 @@
1268
1268
 
1269
1269
  <tr>
1270
1270
  <td class="col-md-4">
1271
- <div class="io-line">Defined in <a href="" data-line="384"
1272
- class="link-to-prism">src/lib/form-array.ts:384</a></div>
1271
+ <div class="io-line">Defined in <a href="" data-line="398"
1272
+ class="link-to-prism">src/lib/form-array.ts:398</a></div>
1273
1273
  </td>
1274
1274
  </tr>
1275
1275
 
@@ -1349,8 +1349,8 @@
1349
1349
 
1350
1350
  <tr>
1351
1351
  <td class="col-md-4">
1352
- <div class="io-line">Defined in <a href="" data-line="303"
1353
- class="link-to-prism">src/lib/form-array.ts:303</a></div>
1352
+ <div class="io-line">Defined in <a href="" data-line="317"
1353
+ class="link-to-prism">src/lib/form-array.ts:317</a></div>
1354
1354
  </td>
1355
1355
  </tr>
1356
1356
 
@@ -1430,8 +1430,8 @@
1430
1430
 
1431
1431
  <tr>
1432
1432
  <td class="col-md-4">
1433
- <div class="io-line">Defined in <a href="" data-line="251"
1434
- class="link-to-prism">src/lib/form-array.ts:251</a></div>
1433
+ <div class="io-line">Defined in <a href="" data-line="265"
1434
+ class="link-to-prism">src/lib/form-array.ts:265</a></div>
1435
1435
  </td>
1436
1436
  </tr>
1437
1437
 
@@ -1702,8 +1702,8 @@ the new control will be added to the end.</p>
1702
1702
 
1703
1703
  <tr>
1704
1704
  <td class="col-md-4">
1705
- <div class="io-line">Defined in <a href="" data-line="219"
1706
- class="link-to-prism">src/lib/form-array.ts:219</a></div>
1705
+ <div class="io-line">Defined in <a href="" data-line="233"
1706
+ class="link-to-prism">src/lib/form-array.ts:233</a></div>
1707
1707
  </td>
1708
1708
  </tr>
1709
1709
 
@@ -1741,8 +1741,8 @@ the new control will be added to the end.</p>
1741
1741
 
1742
1742
  <tr>
1743
1743
  <td class="col-md-4">
1744
- <div class="io-line">Defined in <a href="" data-line="223"
1745
- class="link-to-prism">src/lib/form-array.ts:223</a></div>
1744
+ <div class="io-line">Defined in <a href="" data-line="237"
1745
+ class="link-to-prism">src/lib/form-array.ts:237</a></div>
1746
1746
  </td>
1747
1747
  </tr>
1748
1748
 
@@ -1780,8 +1780,8 @@ the new control will be added to the end.</p>
1780
1780
 
1781
1781
  <tr>
1782
1782
  <td class="col-md-4">
1783
- <div class="io-line">Defined in <a href="" data-line="241"
1784
- class="link-to-prism">src/lib/form-array.ts:241</a></div>
1783
+ <div class="io-line">Defined in <a href="" data-line="255"
1784
+ class="link-to-prism">src/lib/form-array.ts:255</a></div>
1785
1785
  </td>
1786
1786
  </tr>
1787
1787
 
@@ -1820,8 +1820,8 @@ the new control will be added to the end.</p>
1820
1820
 
1821
1821
  <tr>
1822
1822
  <td class="col-md-4">
1823
- <div class="io-line">Defined in <a href="" data-line="355"
1824
- class="link-to-prism">src/lib/form-array.ts:355</a></div>
1823
+ <div class="io-line">Defined in <a href="" data-line="369"
1824
+ class="link-to-prism">src/lib/form-array.ts:369</a></div>
1825
1825
  </td>
1826
1826
  </tr>
1827
1827
 
@@ -1890,8 +1890,8 @@ the new control will be added to the end.</p>
1890
1890
 
1891
1891
  <tr>
1892
1892
  <td class="col-md-4">
1893
- <div class="io-line">Defined in <a href="" data-line="350"
1894
- class="link-to-prism">src/lib/form-array.ts:350</a></div>
1893
+ <div class="io-line">Defined in <a href="" data-line="364"
1894
+ class="link-to-prism">src/lib/form-array.ts:364</a></div>
1895
1895
  </td>
1896
1896
  </tr>
1897
1897
 
@@ -1960,8 +1960,8 @@ the new control will be added to the end.</p>
1960
1960
 
1961
1961
  <tr>
1962
1962
  <td class="col-md-4">
1963
- <div class="io-line">Defined in <a href="" data-line="340"
1964
- class="link-to-prism">src/lib/form-array.ts:340</a></div>
1963
+ <div class="io-line">Defined in <a href="" data-line="354"
1964
+ class="link-to-prism">src/lib/form-array.ts:354</a></div>
1965
1965
  </td>
1966
1966
  </tr>
1967
1967
 
@@ -2030,8 +2030,8 @@ the new control will be added to the end.</p>
2030
2030
 
2031
2031
  <tr>
2032
2032
  <td class="col-md-4">
2033
- <div class="io-line">Defined in <a href="" data-line="345"
2034
- class="link-to-prism">src/lib/form-array.ts:345</a></div>
2033
+ <div class="io-line">Defined in <a href="" data-line="359"
2034
+ class="link-to-prism">src/lib/form-array.ts:359</a></div>
2035
2035
  </td>
2036
2036
  </tr>
2037
2037
 
@@ -2099,8 +2099,8 @@ the new control will be added to the end.</p>
2099
2099
 
2100
2100
  <tr>
2101
2101
  <td class="col-md-4">
2102
- <div class="io-line">Defined in <a href="" data-line="211"
2103
- class="link-to-prism">src/lib/form-array.ts:211</a></div>
2102
+ <div class="io-line">Defined in <a href="" data-line="225"
2103
+ class="link-to-prism">src/lib/form-array.ts:225</a></div>
2104
2104
  </td>
2105
2105
  </tr>
2106
2106
 
@@ -2168,8 +2168,8 @@ the new control will be added to the end.</p>
2168
2168
 
2169
2169
  <tr>
2170
2170
  <td class="col-md-4">
2171
- <div class="io-line">Defined in <a href="" data-line="207"
2172
- class="link-to-prism">src/lib/form-array.ts:207</a></div>
2171
+ <div class="io-line">Defined in <a href="" data-line="221"
2172
+ class="link-to-prism">src/lib/form-array.ts:221</a></div>
2173
2173
  </td>
2174
2174
  </tr>
2175
2175
 
@@ -2238,8 +2238,8 @@ the new control will be added to the end.</p>
2238
2238
 
2239
2239
  <tr>
2240
2240
  <td class="col-md-4">
2241
- <div class="io-line">Defined in <a href="" data-line="290"
2242
- class="link-to-prism">src/lib/form-array.ts:290</a></div>
2241
+ <div class="io-line">Defined in <a href="" data-line="304"
2242
+ class="link-to-prism">src/lib/form-array.ts:304</a></div>
2243
2243
  </td>
2244
2244
  </tr>
2245
2245
 
@@ -2320,8 +2320,8 @@ the new control will be added to the end.</p>
2320
2320
 
2321
2321
  <tr>
2322
2322
  <td class="col-md-4">
2323
- <div class="io-line">Defined in <a href="" data-line="322"
2324
- class="link-to-prism">src/lib/form-array.ts:322</a></div>
2323
+ <div class="io-line">Defined in <a href="" data-line="336"
2324
+ class="link-to-prism">src/lib/form-array.ts:336</a></div>
2325
2325
  </td>
2326
2326
  </tr>
2327
2327
 
@@ -2402,8 +2402,8 @@ the new control will be added to the end.</p>
2402
2402
 
2403
2403
  <tr>
2404
2404
  <td class="col-md-4">
2405
- <div class="io-line">Defined in <a href="" data-line="310"
2406
- class="link-to-prism">src/lib/form-array.ts:310</a></div>
2405
+ <div class="io-line">Defined in <a href="" data-line="324"
2406
+ class="link-to-prism">src/lib/form-array.ts:324</a></div>
2407
2407
  </td>
2408
2408
  </tr>
2409
2409
 
@@ -2472,8 +2472,8 @@ the new control will be added to the end.</p>
2472
2472
 
2473
2473
  <tr>
2474
2474
  <td class="col-md-4">
2475
- <div class="io-line">Defined in <a href="" data-line="360"
2476
- class="link-to-prism">src/lib/form-array.ts:360</a></div>
2475
+ <div class="io-line">Defined in <a href="" data-line="374"
2476
+ class="link-to-prism">src/lib/form-array.ts:374</a></div>
2477
2477
  </td>
2478
2478
  </tr>
2479
2479
 
@@ -2631,8 +2631,8 @@ the new control will be added to the end.</p>
2631
2631
 
2632
2632
  <tr>
2633
2633
  <td class="col-md-4">
2634
- <div class="io-line">Defined in <a href="" data-line="374"
2635
- class="link-to-prism">src/lib/form-array.ts:374</a></div>
2634
+ <div class="io-line">Defined in <a href="" data-line="388"
2635
+ class="link-to-prism">src/lib/form-array.ts:388</a></div>
2636
2636
  </td>
2637
2637
  </tr>
2638
2638
 
@@ -2718,8 +2718,8 @@ the new control will be added to the end.</p>
2718
2718
 
2719
2719
  <tr>
2720
2720
  <td class="col-md-4">
2721
- <div class="io-line">Defined in <a href="" data-line="333"
2722
- class="link-to-prism">src/lib/form-array.ts:333</a></div>
2721
+ <div class="io-line">Defined in <a href="" data-line="347"
2722
+ class="link-to-prism">src/lib/form-array.ts:347</a></div>
2723
2723
  </td>
2724
2724
  </tr>
2725
2725
 
@@ -2811,8 +2811,8 @@ the new control will be added to the end.</p>
2811
2811
 
2812
2812
  <tr>
2813
2813
  <td class="col-md-4">
2814
- <div class="io-line">Defined in <a href="" data-line="329"
2815
- class="link-to-prism">src/lib/form-array.ts:329</a></div>
2814
+ <div class="io-line">Defined in <a href="" data-line="343"
2815
+ class="link-to-prism">src/lib/form-array.ts:343</a></div>
2816
2816
  </td>
2817
2817
  </tr>
2818
2818
 
@@ -2897,8 +2897,8 @@ the new control will be added to the end.</p>
2897
2897
 
2898
2898
  <tr>
2899
2899
  <td class="col-md-4">
2900
- <div class="io-line">Defined in <a href="" data-line="318"
2901
- class="link-to-prism">src/lib/form-array.ts:318</a></div>
2900
+ <div class="io-line">Defined in <a href="" data-line="332"
2901
+ class="link-to-prism">src/lib/form-array.ts:332</a></div>
2902
2902
  </td>
2903
2903
  </tr>
2904
2904
 
@@ -2984,8 +2984,8 @@ the new control will be added to the end.</p>
2984
2984
 
2985
2985
  <tr>
2986
2986
  <td class="col-md-4">
2987
- <div class="io-line">Defined in <a href="" data-line="388"
2988
- class="link-to-prism">src/lib/form-array.ts:388</a></div>
2987
+ <div class="io-line">Defined in <a href="" data-line="402"
2988
+ class="link-to-prism">src/lib/form-array.ts:402</a></div>
2989
2989
  </td>
2990
2990
  </tr>
2991
2991
 
@@ -3072,8 +3072,8 @@ the new control will be added to the end.</p>
3072
3072
 
3073
3073
  <tr>
3074
3074
  <td class="col-md-4">
3075
- <div class="io-line">Defined in <a href="" data-line="364"
3076
- class="link-to-prism">src/lib/form-array.ts:364</a></div>
3075
+ <div class="io-line">Defined in <a href="" data-line="378"
3076
+ class="link-to-prism">src/lib/form-array.ts:378</a></div>
3077
3077
  </td>
3078
3078
  </tr>
3079
3079
 
@@ -3159,8 +3159,8 @@ the new control will be added to the end.</p>
3159
3159
 
3160
3160
  <tr>
3161
3161
  <td class="col-md-4">
3162
- <div class="io-line">Defined in <a href="" data-line="227"
3163
- class="link-to-prism">src/lib/form-array.ts:227</a></div>
3162
+ <div class="io-line">Defined in <a href="" data-line="241"
3163
+ class="link-to-prism">src/lib/form-array.ts:241</a></div>
3164
3164
  </td>
3165
3165
  </tr>
3166
3166
 
@@ -3240,8 +3240,8 @@ the new control will be added to the end.</p>
3240
3240
 
3241
3241
  <tr>
3242
3242
  <td class="col-md-4">
3243
- <div class="io-line">Defined in <a href="" data-line="245"
3244
- class="link-to-prism">src/lib/form-array.ts:245</a></div>
3243
+ <div class="io-line">Defined in <a href="" data-line="259"
3244
+ class="link-to-prism">src/lib/form-array.ts:259</a></div>
3245
3245
  </td>
3246
3246
  </tr>
3247
3247
 
@@ -3585,6 +3585,7 @@ export class RxapFormArray&lt;T &#x3D; any,
3585
3585
  */
3586
3586
  public insertAt(index?: number, state?: T, options?: ControlEventOptions): void {
3587
3587
  const insertIndex &#x3D; index ?? this.controls.length;
3588
+ const length &#x3D; this.controls.length;
3588
3589
  const controlOrDefinition &#x3D; this._builder(state, {
3589
3590
  controlId: insertIndex.toFixed(0),
3590
3591
  });
@@ -3594,16 +3595,29 @@ export class RxapFormArray&lt;T &#x3D; any,
3594
3595
  if (insertIndex &lt; this.controls.length) {
3595
3596
  // update the control ids for all controls, that are moved.
3596
3597
  for (let i &#x3D; insertIndex; i &lt; this.controls.length; i++) {
3597
- Reflect.set(this.controls[i], &#x27;controlId&#x27;, (i + 1).toFixed(0));
3598
+ Reflect.set(this.controls[i], &#x27;controlId&#x27;, (
3599
+ i + 1
3600
+ ).toFixed(0));
3598
3601
  }
3599
3602
  }
3600
-
3601
- // call the super insert after the update, bc the insert method will
3602
- // trigger a change detection
3603
- if (controlOrDefinition instanceof NgAbstractControl) {
3604
- super.insert(insertIndex, controlOrDefinition, options);
3603
+ if (length &#x3D;&#x3D;&#x3D; this.controls.length) {
3604
+ // the _controlInsertedFn has not yet added the new control to the form array
3605
+ // call the super insert after the update, bc the insert method will
3606
+ // trigger a change detection
3607
+ if (controlOrDefinition instanceof NgAbstractControl) {
3608
+ super.insert(insertIndex, controlOrDefinition, options);
3609
+ } else {
3610
+ super.insert(insertIndex, controlOrDefinition.rxapFormGroup!, options);
3611
+ }
3605
3612
  } else {
3606
- super.insert(insertIndex, controlOrDefinition.rxapFormGroup!, options);
3613
+ if (controlOrDefinition instanceof NgAbstractControl) {
3614
+ controlOrDefinition.setParent(this);
3615
+ (controlOrDefinition as any)[&#x27;_registerOnCollectionChange&#x27;]?.((this as any)[&#x27;_onCollectionChange&#x27;]);
3616
+ } else {
3617
+ controlOrDefinition.rxapFormGroup!.setParent(this);
3618
+ (controlOrDefinition.rxapFormGroup as any)[&#x27;_registerOnCollectionChange&#x27;]?.((this as any)[&#x27;_onCollectionChange&#x27;]);
3619
+ }
3620
+ this.updateValueAndValidity({ emitEvent: options?.emitEvent });
3607
3621
  }
3608
3622
  }
3609
3623