@rxap/forms 19.2.0 → 21.0.1-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (487) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/compodoc/changelog.html +34 -0
  3. package/compodoc/classes/FormArrayControlManager.html +13 -10
  4. package/compodoc/classes/RxapFormArray.html +3 -1
  5. package/compodoc/classes/RxapFormBuilder.html +13 -10
  6. package/compodoc/classes/RxapFormControl.html +3 -1
  7. package/compodoc/classes/RxapFormGroup.html +3 -1
  8. package/compodoc/dependencies.html +13 -13
  9. package/compodoc/directives/FormControlErrorDirective.html +97 -166
  10. package/compodoc/directives/FormControlMarkDirtyDirective.html +5 -107
  11. package/compodoc/directives/FormControlMarkPristineDirective.html +5 -107
  12. package/compodoc/directives/FormControlMarkTouchedDirective.html +5 -107
  13. package/compodoc/directives/FormControlMarkUntouchedDirective.html +5 -107
  14. package/compodoc/directives/FormControlNameDirective.html +12 -124
  15. package/compodoc/directives/FormDirective.html +1032 -1057
  16. package/compodoc/directives/FormGroupNameDirective.html +16 -111
  17. package/compodoc/directives/FormLoadedDirective.html +16 -96
  18. package/compodoc/directives/FormLoadingDirective.html +16 -96
  19. package/compodoc/directives/FormLoadingErrorDirective.html +15 -91
  20. package/compodoc/directives/FormResetDirective.html +47 -101
  21. package/compodoc/directives/FormSubmitDirective.html +45 -100
  22. package/compodoc/directives/FormSubmitFailedDirective.html +15 -91
  23. package/compodoc/directives/FormSubmitInvalidDirective.html +14 -95
  24. package/compodoc/directives/FormSubmitSuccessfulDirective.html +14 -95
  25. package/compodoc/directives/FormSubmittingDirective.html +16 -96
  26. package/compodoc/graph/dependencies.svg +15 -441
  27. package/compodoc/js/menu-wc.js +0 -77
  28. package/compodoc/js/menu-wc_es5.js +1 -1
  29. package/compodoc/js/search/search_index.js +2 -2
  30. package/compodoc/modules.html +0 -17
  31. package/compodoc/overview.html +1 -473
  32. package/compodoc/properties.html +1 -1
  33. package/docs/documentation.json +13661 -13712
  34. package/docs/html/assets/hierarchy.js +1 -1
  35. package/docs/html/assets/navigation.js +1 -1
  36. package/docs/html/assets/search.js +1 -1
  37. package/docs/html/classes/ControlValueAccessor.html +5 -5
  38. package/docs/html/classes/FormArrayControlManager.html +2 -2
  39. package/docs/html/classes/FormControlErrorDirective.html +3 -12
  40. package/docs/html/classes/FormControlMarkDirtyDirective.html +2 -2
  41. package/docs/html/classes/FormControlMarkPristineDirective.html +2 -2
  42. package/docs/html/classes/FormControlMarkTouchedDirective.html +2 -2
  43. package/docs/html/classes/FormControlMarkUntouchedDirective.html +2 -2
  44. package/docs/html/classes/FormControlNameDirective.html +34 -34
  45. package/docs/html/classes/FormDirective.html +72 -59
  46. package/docs/html/classes/FormGroupNameDirective.html +29 -29
  47. package/docs/html/classes/FormLoadedDirective.html +2 -9
  48. package/docs/html/classes/FormLoadingDirective.html +2 -9
  49. package/docs/html/classes/FormLoadingErrorDirective.html +2 -9
  50. package/docs/html/classes/FormResetDirective.html +4 -4
  51. package/docs/html/classes/FormSubmitDirective.html +4 -4
  52. package/docs/html/classes/FormSubmitFailedDirective.html +2 -9
  53. package/docs/html/classes/FormSubmitInvalidDirective.html +2 -9
  54. package/docs/html/classes/FormSubmitSuccessfulDirective.html +2 -9
  55. package/docs/html/classes/FormSubmittingDirective.html +2 -9
  56. package/docs/html/classes/ParentControlContainerDirective.html +2 -2
  57. package/docs/html/classes/RxapFormArray.html +96 -79
  58. package/docs/html/classes/RxapFormBuilder.html +2 -2
  59. package/docs/html/classes/RxapFormControl.html +92 -75
  60. package/docs/html/classes/RxapFormGroup.html +93 -77
  61. package/docs/html/enums/MetadataKeys.html +2 -2
  62. package/docs/html/functions/ControlAsyncValidator.html +1 -1
  63. package/docs/html/functions/ControlChange.html +1 -1
  64. package/docs/html/functions/ControlSetValue.html +1 -1
  65. package/docs/html/functions/ControlValidator.html +1 -1
  66. package/docs/html/functions/IsArray.html +1 -1
  67. package/docs/html/functions/IsBoolean.html +1 -1
  68. package/docs/html/functions/IsComplex.html +1 -1
  69. package/docs/html/functions/IsDate.html +1 -1
  70. package/docs/html/functions/IsEmail.html +1 -1
  71. package/docs/html/functions/IsEnum.html +1 -1
  72. package/docs/html/functions/IsIP.html +1 -1
  73. package/docs/html/functions/IsInt.html +1 -1
  74. package/docs/html/functions/IsNumber-1.html +2 -2
  75. package/docs/html/functions/IsObject.html +1 -1
  76. package/docs/html/functions/IsPhoneNumber.html +1 -1
  77. package/docs/html/functions/IsPort.html +1 -1
  78. package/docs/html/functions/IsString.html +1 -1
  79. package/docs/html/functions/IsUUID.html +1 -1
  80. package/docs/html/functions/IsUrl.html +1 -1
  81. package/docs/html/functions/RxapForm.html +1 -1
  82. package/docs/html/functions/ToFormMethod.html +1 -1
  83. package/docs/html/functions/ToFormSubmitMethod.html +2 -2
  84. package/docs/html/functions/UseFormArrayControl.html +1 -1
  85. package/docs/html/functions/UseFormArrayGroup.html +1 -1
  86. package/docs/html/functions/UseFormControl.html +1 -1
  87. package/docs/html/functions/UseFormGroup.html +1 -1
  88. package/docs/html/functions/_IsNumber.html +1 -1
  89. package/docs/html/functions/controlDisabledWhile.html +1 -1
  90. package/docs/html/functions/controlDisabled_.html +1 -1
  91. package/docs/html/functions/controlEnabledWhile.html +1 -1
  92. package/docs/html/functions/controlEnabled_.html +1 -1
  93. package/docs/html/functions/controlErrorChanges_.html +1 -1
  94. package/docs/html/functions/controlReadonly_.html +1 -1
  95. package/docs/html/functions/controlStatusChanges_.html +1 -1
  96. package/docs/html/functions/controlValueChanges_.html +1 -1
  97. package/docs/html/functions/disableControl.html +1 -1
  98. package/docs/html/functions/enableControl.html +1 -1
  99. package/docs/html/functions/hasErrorAndDirty.html +1 -1
  100. package/docs/html/functions/hasErrorAndTouched.html +1 -1
  101. package/docs/html/functions/isNumber.html +2 -2
  102. package/docs/html/functions/markAllDirty.html +1 -1
  103. package/docs/html/functions/markAllPristine.html +1 -1
  104. package/docs/html/functions/markAllUntouched.html +1 -1
  105. package/docs/html/functions/mergeControlValidators.html +1 -1
  106. package/docs/html/functions/selectControlValue_.html +1 -1
  107. package/docs/html/functions/validateControlOn.html +1 -1
  108. package/docs/html/hierarchy.html +1 -1
  109. package/docs/html/index.html +2 -2
  110. package/docs/html/interfaces/AbstractControl.html +95 -71
  111. package/docs/html/interfaces/AbstractControlOptions.html +4 -4
  112. package/docs/html/interfaces/BoxedValue.html +2 -2
  113. package/docs/html/interfaces/ComplexityOptions.html +2 -2
  114. package/docs/html/interfaces/ControlOptions.html +3 -3
  115. package/docs/html/interfaces/ControlSetValueOptions.html +2 -2
  116. package/docs/html/interfaces/FormArrayOptions.html +4 -4
  117. package/docs/html/interfaces/FormDefinition.html +6 -6
  118. package/docs/html/interfaces/FormDefinitionArray.html +43 -36
  119. package/docs/html/interfaces/FormDefinitionMetadata.html +5 -5
  120. package/docs/html/interfaces/FormGroupOptions.html +4 -4
  121. package/docs/html/interfaces/FormLoadFailedMethod.html +2 -2
  122. package/docs/html/interfaces/FormLoadMethod.html +2 -2
  123. package/docs/html/interfaces/FormLoadSuccessfulMethod.html +2 -2
  124. package/docs/html/interfaces/FormOptions.html +4 -4
  125. package/docs/html/interfaces/FormSubmitFailedMethod.html +2 -2
  126. package/docs/html/interfaces/FormSubmitMethod.html +2 -2
  127. package/docs/html/interfaces/FormSubmitSuccessfulMethod.html +2 -2
  128. package/docs/html/interfaces/InjectableValidator.html +2 -2
  129. package/docs/html/interfaces/IsNumberOptions.html +3 -3
  130. package/docs/html/interfaces/NgValidatorsErrors.html +2 -2
  131. package/docs/html/interfaces/RxapAbstractControlOptionsWithDefinition.html +4 -4
  132. package/docs/html/interfaces/_RxapAbstractControlOptions.html +4 -4
  133. package/docs/html/modules.html +1 -1
  134. package/docs/html/types/AsyncValidator.html +1 -1
  135. package/docs/html/types/AsyncValidatorFn.html +1 -1
  136. package/docs/html/types/ChangeFn.html +1 -1
  137. package/docs/html/types/ControlEventOptions.html +1 -1
  138. package/docs/html/types/ControlInsertedFn.html +1 -1
  139. package/docs/html/types/ControlPath.html +1 -1
  140. package/docs/html/types/ControlRemovedFn.html +1 -1
  141. package/docs/html/types/ControlState.html +1 -1
  142. package/docs/html/types/EmitEvent.html +1 -1
  143. package/docs/html/types/ExtractAbstractControl.html +1 -1
  144. package/docs/html/types/ExtractStrings.html +1 -1
  145. package/docs/html/types/FormBuilderFn.html +1 -1
  146. package/docs/html/types/FormType.html +1 -1
  147. package/docs/html/types/KeyValueControls.html +1 -1
  148. package/docs/html/types/OnlySelf.html +1 -1
  149. package/docs/html/types/OrBoxedValue.html +1 -1
  150. package/docs/html/types/RxapAbstractControlOptions.html +1 -1
  151. package/docs/html/types/SetValueFn.html +1 -1
  152. package/docs/html/types/ValidationErrors.html +1 -1
  153. package/docs/html/types/Validator.html +1 -1
  154. package/docs/html/types/ValidatorFn.html +1 -1
  155. package/docs/html/types/ValidatorOrOpts.html +1 -1
  156. package/docs/html/variables/RXAP_FORM_CONTEXT.html +1 -1
  157. package/docs/html/variables/RXAP_FORM_DEFINITION.html +1 -1
  158. package/docs/html/variables/RXAP_FORM_DEFINITION_BUILDER.html +1 -1
  159. package/docs/html/variables/RXAP_FORM_INITIAL_STATE.html +1 -1
  160. package/docs/html/variables/RXAP_FORM_LOAD_FAILED_METHOD.html +1 -1
  161. package/docs/html/variables/RXAP_FORM_LOAD_METHOD.html +1 -1
  162. package/docs/html/variables/RXAP_FORM_LOAD_SUCCESSFUL_METHOD.html +1 -1
  163. package/docs/html/variables/RXAP_FORM_SUBMIT_FAILED_METHOD.html +1 -1
  164. package/docs/html/variables/RXAP_FORM_SUBMIT_METHOD.html +1 -1
  165. package/docs/html/variables/RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD.html +1 -1
  166. package/docs/html/variables/RxapValidators.html +1 -1
  167. package/docs/markdown/README.md +1 -1
  168. package/docs/markdown/classes/ControlValueAccessor.md +8 -8
  169. package/docs/markdown/classes/FormArrayControlManager.md +6 -6
  170. package/docs/markdown/classes/FormControlErrorDirective.md +8 -68
  171. package/docs/markdown/classes/FormControlMarkDirtyDirective.md +4 -12
  172. package/docs/markdown/classes/FormControlMarkPristineDirective.md +4 -12
  173. package/docs/markdown/classes/FormControlMarkTouchedDirective.md +4 -12
  174. package/docs/markdown/classes/FormControlMarkUntouchedDirective.md +4 -12
  175. package/docs/markdown/classes/FormControlNameDirective.md +38 -58
  176. package/docs/markdown/classes/FormDirective.md +255 -224
  177. package/docs/markdown/classes/FormGroupNameDirective.md +33 -47
  178. package/docs/markdown/classes/FormLoadedDirective.md +4 -62
  179. package/docs/markdown/classes/FormLoadingDirective.md +4 -62
  180. package/docs/markdown/classes/FormLoadingErrorDirective.md +4 -62
  181. package/docs/markdown/classes/FormResetDirective.md +15 -35
  182. package/docs/markdown/classes/FormSubmitDirective.md +33 -57
  183. package/docs/markdown/classes/FormSubmitFailedDirective.md +4 -62
  184. package/docs/markdown/classes/FormSubmitInvalidDirective.md +4 -62
  185. package/docs/markdown/classes/FormSubmitSuccessfulDirective.md +4 -62
  186. package/docs/markdown/classes/FormSubmittingDirective.md +4 -62
  187. package/docs/markdown/classes/ParentControlContainerDirective.md +2 -2
  188. package/docs/markdown/classes/RxapFormArray.md +132 -103
  189. package/docs/markdown/classes/RxapFormBuilder.md +4 -4
  190. package/docs/markdown/classes/RxapFormControl.md +127 -103
  191. package/docs/markdown/classes/RxapFormGroup.md +140 -117
  192. package/docs/markdown/enumerations/MetadataKeys.md +10 -10
  193. package/docs/markdown/functions/ControlAsyncValidator.md +2 -2
  194. package/docs/markdown/functions/ControlChange.md +2 -2
  195. package/docs/markdown/functions/ControlSetValue.md +2 -2
  196. package/docs/markdown/functions/ControlValidator.md +2 -2
  197. package/docs/markdown/functions/IsArray.md +2 -2
  198. package/docs/markdown/functions/IsBoolean.md +2 -2
  199. package/docs/markdown/functions/IsComplex.md +2 -2
  200. package/docs/markdown/functions/IsDate.md +2 -2
  201. package/docs/markdown/functions/IsEmail.md +2 -2
  202. package/docs/markdown/functions/IsEnum.md +2 -2
  203. package/docs/markdown/functions/IsIP.md +2 -2
  204. package/docs/markdown/functions/IsInt.md +2 -2
  205. package/docs/markdown/functions/IsNumber-2.md +2 -2
  206. package/docs/markdown/functions/IsNumber.md +2 -2
  207. package/docs/markdown/functions/IsObject.md +2 -2
  208. package/docs/markdown/functions/IsPhoneNumber.md +2 -2
  209. package/docs/markdown/functions/IsPort.md +2 -2
  210. package/docs/markdown/functions/IsString.md +2 -2
  211. package/docs/markdown/functions/IsUUID.md +2 -2
  212. package/docs/markdown/functions/IsUrl.md +2 -2
  213. package/docs/markdown/functions/RxapForm.md +2 -2
  214. package/docs/markdown/functions/ToFormMethod.md +2 -2
  215. package/docs/markdown/functions/ToFormSubmitMethod.md +2 -2
  216. package/docs/markdown/functions/UseFormArrayControl.md +2 -2
  217. package/docs/markdown/functions/UseFormArrayGroup.md +2 -2
  218. package/docs/markdown/functions/UseFormControl.md +2 -2
  219. package/docs/markdown/functions/UseFormGroup.md +2 -2
  220. package/docs/markdown/functions/controlDisabled$.md +2 -2
  221. package/docs/markdown/functions/controlDisabledWhile.md +2 -2
  222. package/docs/markdown/functions/controlEnabled$.md +2 -2
  223. package/docs/markdown/functions/controlEnabledWhile.md +2 -2
  224. package/docs/markdown/functions/controlErrorChanges$.md +2 -2
  225. package/docs/markdown/functions/controlReadonly$.md +2 -2
  226. package/docs/markdown/functions/controlStatusChanges$.md +2 -2
  227. package/docs/markdown/functions/controlValueChanges$.md +2 -2
  228. package/docs/markdown/functions/disableControl.md +2 -2
  229. package/docs/markdown/functions/enableControl.md +2 -2
  230. package/docs/markdown/functions/hasErrorAndDirty.md +2 -2
  231. package/docs/markdown/functions/hasErrorAndTouched.md +2 -2
  232. package/docs/markdown/functions/isNumber-1.md +2 -2
  233. package/docs/markdown/functions/markAllDirty.md +2 -2
  234. package/docs/markdown/functions/markAllPristine.md +2 -2
  235. package/docs/markdown/functions/markAllUntouched.md +2 -2
  236. package/docs/markdown/functions/mergeControlValidators.md +2 -2
  237. package/docs/markdown/functions/selectControlValue$.md +2 -2
  238. package/docs/markdown/functions/validateControlOn.md +2 -2
  239. package/docs/markdown/globals.md +2 -3
  240. package/docs/markdown/interfaces/AbstractControl.md +122 -73
  241. package/docs/markdown/interfaces/AbstractControlOptions.md +6 -6
  242. package/docs/markdown/interfaces/BoxedValue.md +4 -4
  243. package/docs/markdown/interfaces/ComplexityOptions.md +12 -12
  244. package/docs/markdown/interfaces/ControlOptions.md +10 -10
  245. package/docs/markdown/interfaces/ControlSetValueOptions.md +4 -4
  246. package/docs/markdown/interfaces/FormArrayOptions.md +16 -16
  247. package/docs/markdown/interfaces/FormDefinition.md +7 -7
  248. package/docs/markdown/interfaces/FormDefinitionArray.md +70 -36
  249. package/docs/markdown/interfaces/FormDefinitionMetadata.md +15 -15
  250. package/docs/markdown/interfaces/FormGroupOptions.md +13 -13
  251. package/docs/markdown/interfaces/FormLoadFailedMethod.md +4 -4
  252. package/docs/markdown/interfaces/FormLoadMethod.md +4 -4
  253. package/docs/markdown/interfaces/FormLoadSuccessfulMethod.md +4 -4
  254. package/docs/markdown/interfaces/FormOptions.md +13 -13
  255. package/docs/markdown/interfaces/FormSubmitFailedMethod.md +4 -4
  256. package/docs/markdown/interfaces/FormSubmitMethod.md +4 -4
  257. package/docs/markdown/interfaces/FormSubmitSuccessfulMethod.md +4 -4
  258. package/docs/markdown/interfaces/InjectableValidator.md +4 -4
  259. package/docs/markdown/interfaces/IsNumberOptions.md +6 -6
  260. package/docs/markdown/interfaces/NgValidatorsErrors.md +9 -9
  261. package/docs/markdown/interfaces/RxapAbstractControlOptions.md +12 -12
  262. package/docs/markdown/interfaces/RxapAbstractControlOptionsWithDefinition.md +13 -13
  263. package/docs/markdown/type-aliases/AsyncValidator.md +2 -2
  264. package/docs/markdown/type-aliases/AsyncValidatorFn.md +2 -2
  265. package/docs/markdown/type-aliases/ChangeFn.md +2 -2
  266. package/docs/markdown/type-aliases/ControlEventOptions.md +2 -2
  267. package/docs/markdown/type-aliases/ControlInsertedFn.md +2 -2
  268. package/docs/markdown/type-aliases/ControlPath.md +2 -2
  269. package/docs/markdown/type-aliases/ControlRemovedFn.md +2 -2
  270. package/docs/markdown/type-aliases/ControlState.md +2 -2
  271. package/docs/markdown/type-aliases/EmitEvent.md +2 -2
  272. package/docs/markdown/type-aliases/ExtractAbstractControl.md +2 -2
  273. package/docs/markdown/type-aliases/ExtractStrings.md +2 -2
  274. package/docs/markdown/type-aliases/FormBuilderFn.md +2 -2
  275. package/docs/markdown/type-aliases/FormType.md +2 -2
  276. package/docs/markdown/type-aliases/KeyValueControls.md +2 -2
  277. package/docs/markdown/type-aliases/OnlySelf.md +2 -2
  278. package/docs/markdown/type-aliases/OrBoxedValue.md +2 -2
  279. package/docs/markdown/type-aliases/RxapAbstractControlOptions.md +2 -2
  280. package/docs/markdown/type-aliases/SetValueFn.md +2 -2
  281. package/docs/markdown/type-aliases/ValidationErrors.md +2 -2
  282. package/docs/markdown/type-aliases/Validator.md +2 -2
  283. package/docs/markdown/type-aliases/ValidatorFn.md +2 -2
  284. package/docs/markdown/type-aliases/ValidatorOrOpts.md +2 -2
  285. package/docs/markdown/variables/RXAP_FORM_CONTEXT.md +2 -2
  286. package/docs/markdown/variables/RXAP_FORM_DEFINITION.md +2 -2
  287. package/docs/markdown/variables/RXAP_FORM_DEFINITION_BUILDER.md +2 -2
  288. package/docs/markdown/variables/RXAP_FORM_INITIAL_STATE.md +2 -2
  289. package/docs/markdown/variables/RXAP_FORM_LOAD_FAILED_METHOD.md +2 -2
  290. package/docs/markdown/variables/RXAP_FORM_LOAD_METHOD.md +2 -2
  291. package/docs/markdown/variables/RXAP_FORM_LOAD_SUCCESSFUL_METHOD.md +2 -2
  292. package/docs/markdown/variables/RXAP_FORM_SUBMIT_FAILED_METHOD.md +2 -2
  293. package/docs/markdown/variables/RXAP_FORM_SUBMIT_METHOD.md +2 -2
  294. package/docs/markdown/variables/RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD.md +2 -2
  295. package/docs/markdown/variables/RxapValidators.md +2 -2
  296. package/docs/wiki/Class.ControlValueAccessor.md +7 -7
  297. package/docs/wiki/Class.FormArrayControlManager.md +5 -5
  298. package/docs/wiki/Class.FormControlErrorDirective.md +7 -67
  299. package/docs/wiki/Class.FormControlMarkDirtyDirective.md +3 -11
  300. package/docs/wiki/Class.FormControlMarkPristineDirective.md +3 -11
  301. package/docs/wiki/Class.FormControlMarkTouchedDirective.md +3 -11
  302. package/docs/wiki/Class.FormControlMarkUntouchedDirective.md +3 -11
  303. package/docs/wiki/Class.FormControlNameDirective.md +37 -57
  304. package/docs/wiki/Class.FormDirective.md +254 -223
  305. package/docs/wiki/Class.FormGroupNameDirective.md +32 -46
  306. package/docs/wiki/Class.FormLoadedDirective.md +3 -61
  307. package/docs/wiki/Class.FormLoadingDirective.md +3 -61
  308. package/docs/wiki/Class.FormLoadingErrorDirective.md +3 -61
  309. package/docs/wiki/Class.FormResetDirective.md +14 -34
  310. package/docs/wiki/Class.FormSubmitDirective.md +32 -56
  311. package/docs/wiki/Class.FormSubmitFailedDirective.md +3 -61
  312. package/docs/wiki/Class.FormSubmitInvalidDirective.md +3 -61
  313. package/docs/wiki/Class.FormSubmitSuccessfulDirective.md +3 -61
  314. package/docs/wiki/Class.FormSubmittingDirective.md +3 -61
  315. package/docs/wiki/Class.ParentControlContainerDirective.md +1 -1
  316. package/docs/wiki/Class.RxapFormArray.md +131 -102
  317. package/docs/wiki/Class.RxapFormBuilder.md +3 -3
  318. package/docs/wiki/Class.RxapFormControl.md +126 -102
  319. package/docs/wiki/Class.RxapFormGroup.md +139 -116
  320. package/docs/wiki/Enumeration.MetadataKeys.md +9 -9
  321. package/docs/wiki/Function.ControlAsyncValidator.md +1 -1
  322. package/docs/wiki/Function.ControlChange.md +1 -1
  323. package/docs/wiki/Function.ControlSetValue.md +1 -1
  324. package/docs/wiki/Function.ControlValidator.md +1 -1
  325. package/docs/wiki/Function.IsArray.md +1 -1
  326. package/docs/wiki/Function.IsBoolean.md +1 -1
  327. package/docs/wiki/Function.IsComplex.md +1 -1
  328. package/docs/wiki/Function.IsDate.md +1 -1
  329. package/docs/wiki/Function.IsEmail.md +1 -1
  330. package/docs/wiki/Function.IsEnum.md +1 -1
  331. package/docs/wiki/Function.IsIP.md +1 -1
  332. package/docs/wiki/Function.IsInt.md +1 -1
  333. package/docs/wiki/Function.IsNumber.md +1 -1
  334. package/docs/wiki/Function.IsObject.md +1 -1
  335. package/docs/wiki/Function.IsPhoneNumber.md +1 -1
  336. package/docs/wiki/Function.IsPort.md +1 -1
  337. package/docs/wiki/Function.IsString.md +1 -1
  338. package/docs/wiki/Function.IsUUID.md +1 -1
  339. package/docs/wiki/Function.IsUrl.md +1 -1
  340. package/docs/wiki/Function.RxapForm.md +1 -1
  341. package/docs/wiki/Function.ToFormMethod.md +1 -1
  342. package/docs/wiki/Function.ToFormSubmitMethod.md +1 -1
  343. package/docs/wiki/Function.UseFormArrayControl.md +1 -1
  344. package/docs/wiki/Function.UseFormArrayGroup.md +1 -1
  345. package/docs/wiki/Function.UseFormControl.md +1 -1
  346. package/docs/wiki/Function.UseFormGroup.md +1 -1
  347. package/docs/wiki/Function._IsNumber.md +1 -1
  348. package/docs/wiki/Function.controlDisabled$.md +1 -1
  349. package/docs/wiki/Function.controlDisabledWhile.md +1 -1
  350. package/docs/wiki/Function.controlEnabled$.md +1 -1
  351. package/docs/wiki/Function.controlEnabledWhile.md +1 -1
  352. package/docs/wiki/Function.controlErrorChanges$.md +1 -1
  353. package/docs/wiki/Function.controlReadonly$.md +1 -1
  354. package/docs/wiki/Function.controlStatusChanges$.md +1 -1
  355. package/docs/wiki/Function.controlValueChanges$.md +1 -1
  356. package/docs/wiki/Function.disableControl.md +1 -1
  357. package/docs/wiki/Function.enableControl.md +1 -1
  358. package/docs/wiki/Function.hasErrorAndDirty.md +1 -1
  359. package/docs/wiki/Function.hasErrorAndTouched.md +1 -1
  360. package/docs/wiki/Function.isNumber.md +1 -1
  361. package/docs/wiki/Function.markAllDirty.md +1 -1
  362. package/docs/wiki/Function.markAllPristine.md +1 -1
  363. package/docs/wiki/Function.markAllUntouched.md +1 -1
  364. package/docs/wiki/Function.mergeControlValidators.md +1 -1
  365. package/docs/wiki/Function.selectControlValue$.md +1 -1
  366. package/docs/wiki/Function.validateControlOn.md +1 -1
  367. package/docs/wiki/Interface.AbstractControl.md +121 -72
  368. package/docs/wiki/Interface.AbstractControlOptions.md +5 -5
  369. package/docs/wiki/Interface.BoxedValue.md +3 -3
  370. package/docs/wiki/Interface.ComplexityOptions.md +11 -11
  371. package/docs/wiki/Interface.ControlOptions.md +9 -9
  372. package/docs/wiki/Interface.ControlSetValueOptions.md +3 -3
  373. package/docs/wiki/Interface.FormArrayOptions.md +15 -15
  374. package/docs/wiki/Interface.FormDefinition.md +6 -6
  375. package/docs/wiki/Interface.FormDefinitionArray.md +69 -35
  376. package/docs/wiki/Interface.FormDefinitionMetadata.md +14 -14
  377. package/docs/wiki/Interface.FormGroupOptions.md +12 -12
  378. package/docs/wiki/Interface.FormLoadFailedMethod.md +3 -3
  379. package/docs/wiki/Interface.FormLoadMethod.md +3 -3
  380. package/docs/wiki/Interface.FormLoadSuccessfulMethod.md +3 -3
  381. package/docs/wiki/Interface.FormOptions.md +12 -12
  382. package/docs/wiki/Interface.FormSubmitFailedMethod.md +3 -3
  383. package/docs/wiki/Interface.FormSubmitMethod.md +3 -3
  384. package/docs/wiki/Interface.FormSubmitSuccessfulMethod.md +3 -3
  385. package/docs/wiki/Interface.InjectableValidator.md +3 -3
  386. package/docs/wiki/Interface.IsNumberOptions.md +5 -5
  387. package/docs/wiki/Interface.NgValidatorsErrors.md +8 -8
  388. package/docs/wiki/Interface.RxapAbstractControlOptionsWithDefinition.md +12 -12
  389. package/docs/wiki/Interface._RxapAbstractControlOptions.md +11 -11
  390. package/docs/wiki/TypeAlias.AsyncValidator.md +1 -1
  391. package/docs/wiki/TypeAlias.AsyncValidatorFn.md +1 -1
  392. package/docs/wiki/TypeAlias.ChangeFn.md +1 -1
  393. package/docs/wiki/TypeAlias.ControlEventOptions.md +1 -1
  394. package/docs/wiki/TypeAlias.ControlInsertedFn.md +1 -1
  395. package/docs/wiki/TypeAlias.ControlPath.md +1 -1
  396. package/docs/wiki/TypeAlias.ControlRemovedFn.md +1 -1
  397. package/docs/wiki/TypeAlias.ControlState.md +1 -1
  398. package/docs/wiki/TypeAlias.EmitEvent.md +1 -1
  399. package/docs/wiki/TypeAlias.ExtractAbstractControl.md +1 -1
  400. package/docs/wiki/TypeAlias.ExtractStrings.md +1 -1
  401. package/docs/wiki/TypeAlias.FormBuilderFn.md +1 -1
  402. package/docs/wiki/TypeAlias.FormType.md +1 -1
  403. package/docs/wiki/TypeAlias.KeyValueControls.md +1 -1
  404. package/docs/wiki/TypeAlias.OnlySelf.md +1 -1
  405. package/docs/wiki/TypeAlias.OrBoxedValue.md +1 -1
  406. package/docs/wiki/TypeAlias.RxapAbstractControlOptions.md +1 -1
  407. package/docs/wiki/TypeAlias.SetValueFn.md +1 -1
  408. package/docs/wiki/TypeAlias.ValidationErrors.md +1 -1
  409. package/docs/wiki/TypeAlias.Validator.md +1 -1
  410. package/docs/wiki/TypeAlias.ValidatorFn.md +1 -1
  411. package/docs/wiki/TypeAlias.ValidatorOrOpts.md +1 -1
  412. package/docs/wiki/Variable.RXAP_FORM_CONTEXT.md +1 -1
  413. package/docs/wiki/Variable.RXAP_FORM_DEFINITION.md +1 -1
  414. package/docs/wiki/Variable.RXAP_FORM_DEFINITION_BUILDER.md +1 -1
  415. package/docs/wiki/Variable.RXAP_FORM_INITIAL_STATE.md +1 -1
  416. package/docs/wiki/Variable.RXAP_FORM_LOAD_FAILED_METHOD.md +1 -1
  417. package/docs/wiki/Variable.RXAP_FORM_LOAD_METHOD.md +1 -1
  418. package/docs/wiki/Variable.RXAP_FORM_LOAD_SUCCESSFUL_METHOD.md +1 -1
  419. package/docs/wiki/Variable.RXAP_FORM_SUBMIT_FAILED_METHOD.md +1 -1
  420. package/docs/wiki/Variable.RXAP_FORM_SUBMIT_METHOD.md +1 -1
  421. package/docs/wiki/Variable.RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD.md +1 -1
  422. package/docs/wiki/Variable.RxapValidators.md +1 -1
  423. package/docs/wiki/_Sidebar.md +0 -1
  424. package/docs/wiki/globals.md +1 -2
  425. package/fesm2022/rxap-forms.mjs +1878 -2197
  426. package/fesm2022/rxap-forms.mjs.map +1 -1
  427. package/package.json +35 -30
  428. package/types/rxap-forms.d.ts +969 -0
  429. package/docs/html/classes/RxapFormsModule.html +0 -2
  430. package/docs/markdown/classes/RxapFormsModule.md +0 -19
  431. package/docs/wiki/Class.RxapFormsModule.md +0 -15
  432. package/index.d.ts +0 -55
  433. package/lib/control-actions.d.ts +0 -23
  434. package/lib/control-value-accessor.d.ts +0 -9
  435. package/lib/decorators/control-async-validator.d.ts +0 -1
  436. package/lib/decorators/control-change.d.ts +0 -1
  437. package/lib/decorators/control-set-value.d.ts +0 -5
  438. package/lib/decorators/control-validator.d.ts +0 -1
  439. package/lib/decorators/form.d.ts +0 -2
  440. package/lib/decorators/metadata-keys.d.ts +0 -10
  441. package/lib/decorators/use-form-array.d.ts +0 -4
  442. package/lib/decorators/use-form-control.d.ts +0 -2
  443. package/lib/decorators/use-form-group.d.ts +0 -3
  444. package/lib/directives/form-control-error.directive.d.ts +0 -22
  445. package/lib/directives/form-control-mark-dirty.directive.d.ts +0 -9
  446. package/lib/directives/form-control-mark-pristine.directive.d.ts +0 -9
  447. package/lib/directives/form-control-mark-touched.directive.d.ts +0 -9
  448. package/lib/directives/form-control-mark-untouched.directive.d.ts +0 -9
  449. package/lib/directives/form-control-name.directive.d.ts +0 -16
  450. package/lib/directives/form-group-name.directive.d.ts +0 -16
  451. package/lib/directives/form-loaded.directive.d.ts +0 -14
  452. package/lib/directives/form-loading-error.directive.d.ts +0 -16
  453. package/lib/directives/form-loading.directive.d.ts +0 -14
  454. package/lib/directives/form-reset.directive.d.ts +0 -11
  455. package/lib/directives/form-submit-failed.directive.d.ts +0 -16
  456. package/lib/directives/form-submit-invalid.directive.d.ts +0 -16
  457. package/lib/directives/form-submit-successful.directive.d.ts +0 -16
  458. package/lib/directives/form-submit.directive.d.ts +0 -22
  459. package/lib/directives/form-submitting.directive.d.ts +0 -14
  460. package/lib/directives/form.directive.d.ts +0 -62
  461. package/lib/directives/forms.module.d.ts +0 -23
  462. package/lib/directives/models.d.ts +0 -29
  463. package/lib/directives/parent-control-container.directive.d.ts +0 -5
  464. package/lib/directives/tokens.d.ts +0 -12
  465. package/lib/form-array.d.ts +0 -76
  466. package/lib/form-builder.d.ts +0 -96
  467. package/lib/form-control.d.ts +0 -64
  468. package/lib/form-group.d.ts +0 -89
  469. package/lib/model.d.ts +0 -81
  470. package/lib/tokens.d.ts +0 -3
  471. package/lib/types.d.ts +0 -100
  472. package/lib/validators/index.d.ts +0 -32
  473. package/lib/validators/is-array.d.ts +0 -4
  474. package/lib/validators/is-boolean.d.ts +0 -4
  475. package/lib/validators/is-complex.d.ts +0 -17
  476. package/lib/validators/is-date.d.ts +0 -4
  477. package/lib/validators/is-email.d.ts +0 -6
  478. package/lib/validators/is-enum.d.ts +0 -5
  479. package/lib/validators/is-int.d.ts +0 -6
  480. package/lib/validators/is-ip.d.ts +0 -5
  481. package/lib/validators/is-number.d.ts +0 -24
  482. package/lib/validators/is-object.d.ts +0 -4
  483. package/lib/validators/is-phone-number.d.ts +0 -7
  484. package/lib/validators/is-port.d.ts +0 -4
  485. package/lib/validators/is-string.d.ts +0 -4
  486. package/lib/validators/is-url.d.ts +0 -6
  487. package/lib/validators/is-uuid.d.ts +0 -5
package/CHANGELOG.md CHANGED
@@ -1,3 +1,39 @@
1
+ ## 21.0.1-dev.1 (2026-11-22)
2
+
3
+ ### 🧱 Updated Dependencies
4
+
5
+ - Updated angular-definition to 21.0.1-dev.1
6
+ - Updated angular-directives to 21.0.1-dev.1
7
+ - Updated angular-services to 21.0.1-dev.1
8
+ - Updated reflect-metadata to 1.0.18-dev.1
9
+ - Updated utilities to 16.5.2-dev.1
10
+ - Updated validator to 3.0.15-dev.1
11
+ - Updated pattern to 1.1.16-dev.1
12
+ - Updated rxjs to 1.1.18-dev.1
13
+
14
+ ## 21.0.1-dev.0 (2026-11-20)
15
+
16
+ ### 🩹 Fixes
17
+
18
+ - **upgrade:** form-builder detects angular21 NG0201 no-provider error for constructor fallback
19
+ - **upgrade:** TestBed.get->inject (removed in angular) + dedupe rxjs to single version
20
+ - **upgrade:** production-build strict errors for angular 20 / ts 5.9
21
+
22
+ ### 🧱 Updated Dependencies
23
+
24
+ - Updated angular-definition to 21.0.1-dev.0
25
+ - Updated angular-directives to 21.0.1-dev.0
26
+ - Updated angular-services to 21.0.1-dev.0
27
+ - Updated reflect-metadata to 1.0.18-dev.0
28
+ - Updated utilities to 16.5.2-dev.0
29
+ - Updated validator to 3.0.15-dev.0
30
+ - Updated pattern to 1.1.16-dev.0
31
+ - Updated rxjs to 1.1.18-dev.0
32
+
33
+ ### ❤️ Thank You
34
+
35
+ - Merzough Münker
36
+
1
37
  ## 19.2.0 (2026-11-20)
2
38
 
3
39
  This was a version bump only for angular-forms to align it with other projects, there were no code changes.
@@ -82,6 +82,40 @@
82
82
  <div class="content getting-started">
83
83
  <div class="content-data">
84
84
 
85
+ <h2>21.0.1-dev.1 (2026-11-22)</h2>
86
+ <h3>🧱 Updated Dependencies</h3>
87
+ <ul>
88
+ <li>Updated angular-definition to 21.0.1-dev.1</li>
89
+ <li>Updated angular-directives to 21.0.1-dev.1</li>
90
+ <li>Updated angular-services to 21.0.1-dev.1</li>
91
+ <li>Updated reflect-metadata to 1.0.18-dev.1</li>
92
+ <li>Updated utilities to 16.5.2-dev.1</li>
93
+ <li>Updated validator to 3.0.15-dev.1</li>
94
+ <li>Updated pattern to 1.1.16-dev.1</li>
95
+ <li>Updated rxjs to 1.1.18-dev.1</li>
96
+ </ul>
97
+ <h2>21.0.1-dev.0 (2026-11-20)</h2>
98
+ <h3>🩹 Fixes</h3>
99
+ <ul>
100
+ <li><strong>upgrade:</strong> form-builder detects angular21 NG0201 no-provider error for constructor fallback</li>
101
+ <li><strong>upgrade:</strong> TestBed.get-&gt;inject (removed in angular) + dedupe rxjs to single version</li>
102
+ <li><strong>upgrade:</strong> production-build strict errors for angular 20 / ts 5.9</li>
103
+ </ul>
104
+ <h3>🧱 Updated Dependencies</h3>
105
+ <ul>
106
+ <li>Updated angular-definition to 21.0.1-dev.0</li>
107
+ <li>Updated angular-directives to 21.0.1-dev.0</li>
108
+ <li>Updated angular-services to 21.0.1-dev.0</li>
109
+ <li>Updated reflect-metadata to 1.0.18-dev.0</li>
110
+ <li>Updated utilities to 16.5.2-dev.0</li>
111
+ <li>Updated validator to 3.0.15-dev.0</li>
112
+ <li>Updated pattern to 1.1.16-dev.0</li>
113
+ <li>Updated rxjs to 1.1.18-dev.0</li>
114
+ </ul>
115
+ <h3>❤️ Thank You</h3>
116
+ <ul>
117
+ <li>Merzough Münker</li>
118
+ </ul>
85
119
  <h2>19.2.0 (2026-11-20)</h2>
86
120
  <p>This was a version bump only for angular-forms to align it with other projects, there were no code changes.</p>
87
121
  <h2>19.2.0-dev.1 (2026-06-19)</h2>
@@ -521,18 +521,21 @@ export class RxapFormBuilder&lt;
521
521
  try {
522
522
  form &#x3D; injector.get(this.definition);
523
523
  } catch (e: any) {
524
- if (e.name &#x3D;&#x3D;&#x3D; &#x27;NullInjectorError&#x27;) {
525
- if (e.message.includes(&#x60;No provider for ${ this.definition.name }&#x60;)) {
526
- if (isDevMode()) {
527
- console.warn(
528
- &#x60;Could not inject the definition instance. Fallback and call the constructor of the definition class: ${ e.message }&#x60;);
529
- }
530
- form &#x3D; new this.definition() as any;
531
- } else {
532
- throw e;
524
+ const message &#x3D; typeof e?.message &#x3D;&#x3D;&#x3D; &#x27;string&#x27; ? e.message : &#x27;&#x27;;
525
+ // Angular 21 throws a RuntimeError NG0201 (&quot;No provider found for &#x60;X&#x60;.&quot;)
526
+ // instead of the old NullInjectorError (&quot;No provider for X&quot;). Detect both.
527
+ const isNoProvider &#x3D;
528
+ e?.name &#x3D;&#x3D;&#x3D; &#x27;NullInjectorError&#x27; ||
529
+ message.includes(&#x27;NG0201&#x27;) ||
530
+ message.includes(&#x27;No provider&#x27;);
531
+ if (isNoProvider &amp;&amp; message.includes(this.definition.name)) {
532
+ if (isDevMode()) {
533
+ console.warn(
534
+ &#x60;Could not inject the definition instance. Fallback and call the constructor of the definition class: ${ message }&#x60;);
533
535
  }
536
+ form &#x3D; new this.definition() as any;
534
537
  } else {
535
- throw new Error(&#x60;Could not inject the definition instance: ${ e.message }&#x60;);
538
+ throw new Error(&#x60;Could not inject the definition instance: ${ message }&#x60;);
536
539
  }
537
540
  }
538
541
 
@@ -285,6 +285,7 @@
285
285
  </li>
286
286
  <li>
287
287
  <span class="modifier">Public</span>
288
+ <span class="modifier"></span>
288
289
  <a href="#markAllAsDirty" >markAllAsDirty</a>
289
290
  </li>
290
291
  <li>
@@ -1687,6 +1688,7 @@ the new control will be added to the end.</p>
1687
1688
  <a name="markAllAsDirty"></a>
1688
1689
  <span class="name">
1689
1690
  <span class="modifier">Public</span>
1691
+ <span class="modifier"></span>
1690
1692
  <span ><b>markAllAsDirty</b></span>
1691
1693
  <a href="#markAllAsDirty"><span class="icon ion-ios-link"></span></a>
1692
1694
  </span>
@@ -3659,7 +3661,7 @@ export class RxapFormArray&lt;T &#x3D; any,
3659
3661
  this.updateValueAndValidity();
3660
3662
  }
3661
3663
 
3662
- public markAllAsDirty(): void {
3664
+ public override markAllAsDirty(): void {
3663
3665
  markAllDirty(this);
3664
3666
  }
3665
3667
 
@@ -476,18 +476,21 @@ export class RxapFormBuilder&lt;
476
476
  try {
477
477
  form &#x3D; injector.get(this.definition);
478
478
  } catch (e: any) {
479
- if (e.name &#x3D;&#x3D;&#x3D; &#x27;NullInjectorError&#x27;) {
480
- if (e.message.includes(&#x60;No provider for ${ this.definition.name }&#x60;)) {
481
- if (isDevMode()) {
482
- console.warn(
483
- &#x60;Could not inject the definition instance. Fallback and call the constructor of the definition class: ${ e.message }&#x60;);
484
- }
485
- form &#x3D; new this.definition() as any;
486
- } else {
487
- throw e;
479
+ const message &#x3D; typeof e?.message &#x3D;&#x3D;&#x3D; &#x27;string&#x27; ? e.message : &#x27;&#x27;;
480
+ // Angular 21 throws a RuntimeError NG0201 (&quot;No provider found for &#x60;X&#x60;.&quot;)
481
+ // instead of the old NullInjectorError (&quot;No provider for X&quot;). Detect both.
482
+ const isNoProvider &#x3D;
483
+ e?.name &#x3D;&#x3D;&#x3D; &#x27;NullInjectorError&#x27; ||
484
+ message.includes(&#x27;NG0201&#x27;) ||
485
+ message.includes(&#x27;No provider&#x27;);
486
+ if (isNoProvider &amp;&amp; message.includes(this.definition.name)) {
487
+ if (isDevMode()) {
488
+ console.warn(
489
+ &#x60;Could not inject the definition instance. Fallback and call the constructor of the definition class: ${ message }&#x60;);
488
490
  }
491
+ form &#x3D; new this.definition() as any;
489
492
  } else {
490
- throw new Error(&#x60;Could not inject the definition instance: ${ e.message }&#x60;);
493
+ throw new Error(&#x60;Could not inject the definition instance: ${ message }&#x60;);
491
494
  }
492
495
  }
493
496
 
@@ -254,6 +254,7 @@
254
254
  </li>
255
255
  <li>
256
256
  <span class="modifier">Public</span>
257
+ <span class="modifier"></span>
257
258
  <a href="#markAllAsDirty" >markAllAsDirty</a>
258
259
  </li>
259
260
  <li>
@@ -1362,6 +1363,7 @@
1362
1363
  <a name="markAllAsDirty"></a>
1363
1364
  <span class="name">
1364
1365
  <span class="modifier">Public</span>
1366
+ <span class="modifier"></span>
1365
1367
  <span ><b>markAllAsDirty</b></span>
1366
1368
  <a href="#markAllAsDirty"><span class="icon ion-ios-link"></span></a>
1367
1369
  </span>
@@ -3446,7 +3448,7 @@ export class RxapFormControl&lt;
3446
3448
  this.dirtyChanges.next(true);
3447
3449
  }
3448
3450
 
3449
- public markAllAsDirty(): void {
3451
+ public override markAllAsDirty(): void {
3450
3452
  this.markAsDirty({ onlySelf: true });
3451
3453
  }
3452
3454
 
@@ -377,6 +377,7 @@
377
377
  </li>
378
378
  <li>
379
379
  <span class="modifier">Public</span>
380
+ <span class="modifier"></span>
380
381
  <a href="#markAllAsDirty" >markAllAsDirty</a>
381
382
  </li>
382
383
  <li>
@@ -4101,6 +4102,7 @@
4101
4102
  <a name="markAllAsDirty"></a>
4102
4103
  <span class="name">
4103
4104
  <span class="modifier">Public</span>
4105
+ <span class="modifier"></span>
4104
4106
  <span ><b>markAllAsDirty</b></span>
4105
4107
  <a href="#markAllAsDirty"><span class="icon ion-ios-link"></span></a>
4106
4108
  </span>
@@ -6384,7 +6386,7 @@ export class RxapFormGroup&lt;
6384
6386
  this.dirtyChanges.next(true);
6385
6387
  }
6386
6388
 
6387
- public markAllAsDirty(): void {
6389
+ public override markAllAsDirty(): void {
6388
6390
  markAllDirty(this);
6389
6391
  }
6390
6392
 
@@ -101,7 +101,7 @@
101
101
  </ol>
102
102
  <ul class="dependencies-list">
103
103
  <li>
104
- <b>@nx/devkit</b> : 20.5.0</li>
104
+ <b>@nx/devkit</b> : 22.7.5</li>
105
105
  <li>
106
106
  <b>tslib</b> : 2.6.2</li>
107
107
  </ul>
@@ -113,29 +113,29 @@
113
113
  </ol>
114
114
  <ul class="dependencies-list">
115
115
  <li>
116
- <b>@angular/core</b> : ^19.2.1</li>
116
+ <b>@angular/core</b> : ^21.2.9</li>
117
117
  <li>
118
- <b>@angular/forms</b> : ^19.2.1</li>
118
+ <b>@angular/forms</b> : ^21.2.9</li>
119
119
  <li>
120
- <b>@angular/router</b> : ^19.2.1</li>
120
+ <b>@angular/router</b> : ^21.2.9</li>
121
121
  <li>
122
- <b>@rxap/definition</b> : ^19.0.5</li>
122
+ <b>@rxap/definition</b> : ^21.0.1-dev.1</li>
123
123
  <li>
124
- <b>@rxap/directives</b> : ^19.2.0</li>
124
+ <b>@rxap/directives</b> : ^21.0.1-dev.1</li>
125
125
  <li>
126
- <b>@rxap/pattern</b> : ^1.1.15</li>
126
+ <b>@rxap/pattern</b> : ^1.1.16-dev.1</li>
127
127
  <li>
128
- <b>@rxap/reflect-metadata</b> : ^1.0.17</li>
128
+ <b>@rxap/reflect-metadata</b> : ^1.0.18-dev.1</li>
129
129
  <li>
130
- <b>@rxap/rxjs</b> : ^1.1.17</li>
130
+ <b>@rxap/rxjs</b> : ^1.1.18-dev.1</li>
131
131
  <li>
132
- <b>@rxap/services</b> : ^19.1.0</li>
132
+ <b>@rxap/services</b> : ^21.0.1-dev.1</li>
133
133
  <li>
134
- <b>@rxap/utilities</b> : ^16.5.1</li>
134
+ <b>@rxap/utilities</b> : ^16.5.2-dev.1</li>
135
135
  <li>
136
- <b>@rxap/validator</b> : ^3.0.14</li>
136
+ <b>@rxap/validator</b> : ^3.0.15-dev.1</li>
137
137
  <li>
138
- <b>rxjs</b> : ^7.8.1</li>
138
+ <b>rxjs</b> : ^7.8.2</li>
139
139
  </ul>
140
140
 
141
141
 
@@ -128,13 +128,6 @@
128
128
 
129
129
 
130
130
 
131
- <p class="comment">
132
- <h3>Implements</h3>
133
- </p>
134
- <p class="comment">
135
- <code>OnInit</code>
136
- <code>OnDestroy</code>
137
- </p>
138
131
 
139
132
 
140
133
  <section data-compodoc="block-metadata">
@@ -162,21 +155,23 @@
162
155
  <h3 id="index">Index</h3>
163
156
  <table class="table table-sm table-bordered index-table">
164
157
  <tbody>
165
-
166
-
167
158
  <tr>
168
159
  <td class="col-md-4">
169
- <h6><b>Inputs</b></h6>
160
+ <h6><b>Properties</b></h6>
170
161
  </td>
171
162
  </tr>
172
163
  <tr>
173
164
  <td class="col-md-4">
174
165
  <ul class="index-list">
175
166
  <li>
176
- <a href="#rxapFormControlErrorFrom" >rxapFormControlErrorFrom</a>
167
+ <span class="modifier">Public</span>
168
+ <span class="modifier">Readonly</span>
169
+ <a href="#errorKey" >errorKey</a>
177
170
  </li>
178
171
  <li>
179
- <a href="#rxapFormControlErrorIf" >rxapFormControlErrorIf</a>
172
+ <span class="modifier">Public</span>
173
+ <span class="modifier">Readonly</span>
174
+ <a href="#name" >name</a>
180
175
  </li>
181
176
  </ul>
182
177
  </td>
@@ -185,6 +180,8 @@
185
180
 
186
181
 
187
182
 
183
+
184
+
188
185
  </tbody>
189
186
  </table>
190
187
  </section>
@@ -195,152 +192,93 @@
195
192
  <tbody>
196
193
  <tr>
197
194
  <td class="col-md-4">
198
- <code>constructor(template: TemplateRef<literal type>, parent: ControlContainer, viewContainerRef: ViewContainerRef)</code>
195
+ <code>constructor()</code>
199
196
  </td>
200
197
  </tr>
201
198
  <tr>
202
199
  <td class="col-md-4">
203
- <div class="io-line">Defined in <a href="" data-line="43" class="link-to-prism">src/lib/directives/form-control-error.directive.ts:43</a></div>
200
+ <div class="io-line">Defined in <a href="" data-line="28" class="link-to-prism">src/lib/directives/form-control-error.directive.ts:28</a></div>
204
201
  </td>
205
202
  </tr>
206
203
 
207
- <tr>
208
- <td class="col-md-4">
209
- <div>
210
- <b>Parameters :</b>
211
- <table class="params">
212
- <thead>
213
- <tr>
214
- <td>Name</td>
215
- <td>Type</td>
216
- <td>Optional</td>
217
- </tr>
218
- </thead>
219
- <tbody>
220
- <tr>
221
- <td>template</td>
222
-
223
- <td>
224
- <code>TemplateRef&lt;literal type&gt;</code>
225
- </td>
226
-
227
- <td>
228
- No
229
- </td>
230
-
231
- </tr>
232
- <tr>
233
- <td>parent</td>
234
-
235
- <td>
236
- <code>ControlContainer</code>
237
- </td>
238
-
239
- <td>
240
- No
241
- </td>
242
-
243
- </tr>
244
- <tr>
245
- <td>viewContainerRef</td>
246
-
247
- <td>
248
- <code>ViewContainerRef</code>
249
- </td>
250
-
251
- <td>
252
- No
253
- </td>
254
-
255
- </tr>
256
- </tbody>
257
- </table>
258
- </div>
259
- </td>
260
- </tr>
261
204
  </tbody>
262
205
  </table>
263
206
  </section>
264
207
 
265
- <section data-compodoc="block-inputs">
266
- <h3 id="inputs">Inputs</h3>
267
- <table class="table table-sm table-bordered">
268
- <tbody>
269
- <tr>
270
- <td class="col-md-4">
271
- <a name="rxapFormControlErrorFrom"></a>
272
- <b>rxapFormControlErrorFrom</b>
273
- </td>
274
- </tr>
275
- <tr>
276
- <td class="col-md-4">
277
- <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
278
208
 
279
- </td>
280
- </tr>
281
- <tr>
282
- <td class="col-md-4">
283
- <i>Required : </i>&nbsp;<b>true</b>
284
- </td>
285
- </tr>
286
- <tr>
287
- <td class="col-md-2" colspan="2">
288
- <div class="io-line">Defined in <a href="" data-line="34" class="link-to-prism">src/lib/directives/form-control-error.directive.ts:34</a></div>
289
- </td>
290
- </tr>
291
- </tbody>
292
- </table>
293
- <table class="table table-sm table-bordered">
294
- <tbody>
209
+
210
+
211
+
212
+
213
+ <section data-compodoc="block-properties">
214
+
215
+ <h3 id="inputs">
216
+ Properties
217
+ </h3>
218
+ <table class="table table-sm table-bordered">
219
+ <tbody>
220
+ <tr>
221
+ <td class="col-md-4">
222
+ <a name="errorKey"></a>
223
+ <span class="name">
224
+ <span class="modifier">Public</span>
225
+ <span class="modifier">Readonly</span>
226
+ <span ><b>errorKey</b></span>
227
+ <a href="#errorKey"><span class="icon ion-ios-link"></span></a>
228
+ </span>
229
+ </td>
230
+ </tr>
295
231
  <tr>
296
232
  <td class="col-md-4">
297
- <a name="rxapFormControlErrorIf"></a>
298
- <b>rxapFormControlErrorIf</b>
233
+ <i>Default value : </i><code>input.required&lt;string&gt;({ alias: &quot;rxapFormControlErrorIf&quot; })</code>
299
234
  </td>
300
235
  </tr>
301
- <tr>
302
- <td class="col-md-4">
303
- <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
236
+ <tr>
237
+ <td class="col-md-4">
238
+ <div class="io-line">Defined in <a href="" data-line="28" class="link-to-prism">src/lib/directives/form-control-error.directive.ts:28</a></div>
239
+ </td>
240
+ </tr>
304
241
 
305
- </td>
306
- </tr>
242
+
243
+ </tbody>
244
+ </table>
245
+ <table class="table table-sm table-bordered">
246
+ <tbody>
247
+ <tr>
248
+ <td class="col-md-4">
249
+ <a name="name"></a>
250
+ <span class="name">
251
+ <span class="modifier">Public</span>
252
+ <span class="modifier">Readonly</span>
253
+ <span ><b>name</b></span>
254
+ <a href="#name"><span class="icon ion-ios-link"></span></a>
255
+ </span>
256
+ </td>
257
+ </tr>
307
258
  <tr>
308
259
  <td class="col-md-4">
309
- <i>Required : </i>&nbsp;<b>true</b>
260
+ <i>Default value : </i><code>input.required&lt;string&gt;({ alias: &quot;rxapFormControlErrorFrom&quot; })</code>
310
261
  </td>
311
262
  </tr>
312
- <tr>
313
- <td class="col-md-2" colspan="2">
314
- <div class="io-line">Defined in <a href="" data-line="41" class="link-to-prism">src/lib/directives/form-control-error.directive.ts:41</a></div>
315
- </td>
316
- </tr>
317
- </tbody>
318
- </table>
319
- </section>
320
-
321
-
263
+ <tr>
264
+ <td class="col-md-4">
265
+ <div class="io-line">Defined in <a href="" data-line="25" class="link-to-prism">src/lib/directives/form-control-error.directive.ts:25</a></div>
266
+ </td>
267
+ </tr>
322
268
 
323
269
 
270
+ </tbody>
271
+ </table>
272
+ </section>
324
273
 
325
274
 
326
275
  </div>
327
276
 
328
277
 
329
278
  <div class="tab-pane fade tab-source-code" id="source">
330
- <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
331
- Directive,
332
- Host,
333
- Input,
334
- OnDestroy,
335
- OnInit,
336
- SkipSelf,
337
- TemplateRef,
338
- ViewContainerRef,
339
- } from &#x27;@angular/core&#x27;;
279
+ <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Directive, effect, inject, input, TemplateRef, untracked, ViewContainerRef } from &#x27;@angular/core&#x27;;
340
280
  import { ControlContainer } from &#x27;@angular/forms&#x27;;
341
- import { Subscription } from &#x27;rxjs&#x27;;
342
281
  import {
343
- filter,
344
282
  startWith,
345
283
  tap,
346
284
  } from &#x27;rxjs/operators&#x27;;
@@ -353,53 +291,46 @@ import { ValidationErrors } from &#x27;../types&#x27;;
353
291
  selector: &#x27;[rxapFormControlError]&#x27;,
354
292
  standalone: true,
355
293
  })
356
- export class FormControlErrorDirective implements OnInit, OnDestroy {
294
+ export class FormControlErrorDirective {
295
+ private readonly template &#x3D; inject&lt;TemplateRef&lt;{
296
+ $implicit: ValidationErrors;
297
+ }&gt;&gt;(TemplateRef);
298
+ private readonly parent &#x3D; inject(ControlContainer, { host: true, skipSelf: true });
299
+ private readonly viewContainerRef &#x3D; inject(ViewContainerRef);
357
300
 
358
- // eslint-disable-next-line @angular-eslint/no-input-rename
359
- @Input({
360
- required: true,
361
- alias: &#x27;rxapFormControlErrorFrom&#x27;,
362
- })
363
- public name!: string;
364
301
 
365
302
  // eslint-disable-next-line @angular-eslint/no-input-rename
366
- @Input({
367
- required: true,
368
- alias: &#x27;rxapFormControlErrorIf&#x27;,
369
- })
370
- public errorKey!: string;
371
-
372
- private subscription?: Subscription;
373
-
374
- constructor(
375
- private readonly template: TemplateRef&lt;{ $implicit: ValidationErrors }&gt;,
376
- @Host() @SkipSelf() private readonly parent: ControlContainer,
377
- private readonly viewContainerRef: ViewContainerRef,
378
- ) {
379
- }
303
+ public readonly name &#x3D; input.required&lt;string&gt;({ alias: &quot;rxapFormControlErrorFrom&quot; });
380
304
 
381
- public ngOnInit() {
382
- const control &#x3D; this.parent.control?.get(this.name);
305
+ // eslint-disable-next-line @angular-eslint/no-input-rename
306
+ public readonly errorKey &#x3D; input.required&lt;string&gt;({ alias: &quot;rxapFormControlErrorIf&quot; });
383
307
 
384
- if (!control) {
385
- throw new Error(&#x27;Could not extract form control instance&#x27;);
386
- }
308
+ constructor() {
309
+ effect((onCleanup) &#x3D;&gt; {
310
+ const name &#x3D; this.name();
311
+ const errorKey &#x3D; this.errorKey();
312
+ untracked(() &#x3D;&gt; {
313
+ const control &#x3D; this.parent.control?.get(name);
387
314
 
388
- this.subscription &#x3D; control.statusChanges.pipe(
389
- startWith(control.status),
390
- filter(status &#x3D;&gt; status &#x3D;&#x3D;&#x3D; &#x27;INVALID&#x27;),
391
- tap(() &#x3D;&gt; {
392
- this.viewContainerRef.clear();
393
- if (control.hasError(this.errorKey)) {
394
- this.viewContainerRef.createEmbeddedView(this.template, { $implicit: control.getError(this.errorKey) });
315
+ if (!control) {
316
+ throw new Error(&#x27;Could not extract form control instance&#x27;);
395
317
  }
396
- }),
397
- ).subscribe();
398
-
399
- }
400
318
 
401
- public ngOnDestroy() {
402
- this.subscription?.unsubscribe();
319
+ const subscription &#x3D; control.statusChanges.pipe(
320
+ startWith(control.status),
321
+ tap(() &#x3D;&gt; {
322
+ this.viewContainerRef.clear();
323
+ if (control.hasError(errorKey)) {
324
+ this.viewContainerRef.createEmbeddedView(this.template, { $implicit: control.getError(errorKey) });
325
+ }
326
+ }),
327
+ ).subscribe();
328
+ onCleanup(() &#x3D;&gt; {
329
+ subscription.unsubscribe();
330
+ this.viewContainerRef.clear();
331
+ });
332
+ });
333
+ });
403
334
  }
404
335
 
405
336
  }