@rxap/forms 21.0.1-dev.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 (426) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/compodoc/changelog.html +12 -0
  3. package/compodoc/dependencies.html +8 -8
  4. package/compodoc/directives/FormControlErrorDirective.html +97 -166
  5. package/compodoc/directives/FormControlMarkDirtyDirective.html +5 -107
  6. package/compodoc/directives/FormControlMarkPristineDirective.html +5 -107
  7. package/compodoc/directives/FormControlMarkTouchedDirective.html +5 -107
  8. package/compodoc/directives/FormControlMarkUntouchedDirective.html +5 -107
  9. package/compodoc/directives/FormControlNameDirective.html +12 -124
  10. package/compodoc/directives/FormDirective.html +1032 -1057
  11. package/compodoc/directives/FormGroupNameDirective.html +16 -111
  12. package/compodoc/directives/FormLoadedDirective.html +16 -96
  13. package/compodoc/directives/FormLoadingDirective.html +16 -96
  14. package/compodoc/directives/FormLoadingErrorDirective.html +15 -91
  15. package/compodoc/directives/FormResetDirective.html +47 -101
  16. package/compodoc/directives/FormSubmitDirective.html +45 -100
  17. package/compodoc/directives/FormSubmitFailedDirective.html +15 -91
  18. package/compodoc/directives/FormSubmitInvalidDirective.html +14 -95
  19. package/compodoc/directives/FormSubmitSuccessfulDirective.html +14 -95
  20. package/compodoc/directives/FormSubmittingDirective.html +16 -96
  21. package/compodoc/graph/dependencies.svg +15 -441
  22. package/compodoc/js/menu-wc.js +0 -77
  23. package/compodoc/js/menu-wc_es5.js +1 -1
  24. package/compodoc/js/search/search_index.js +2 -2
  25. package/compodoc/modules.html +0 -17
  26. package/compodoc/overview.html +1 -473
  27. package/compodoc/properties.html +1 -1
  28. package/docs/documentation.json +8980 -11445
  29. package/docs/html/assets/hierarchy.js +1 -1
  30. package/docs/html/assets/navigation.js +1 -1
  31. package/docs/html/assets/search.js +1 -1
  32. package/docs/html/classes/ControlValueAccessor.html +5 -5
  33. package/docs/html/classes/FormArrayControlManager.html +2 -2
  34. package/docs/html/classes/FormControlErrorDirective.html +3 -12
  35. package/docs/html/classes/FormControlMarkDirtyDirective.html +2 -2
  36. package/docs/html/classes/FormControlMarkPristineDirective.html +2 -2
  37. package/docs/html/classes/FormControlMarkTouchedDirective.html +2 -2
  38. package/docs/html/classes/FormControlMarkUntouchedDirective.html +2 -2
  39. package/docs/html/classes/FormControlNameDirective.html +8 -8
  40. package/docs/html/classes/FormDirective.html +41 -28
  41. package/docs/html/classes/FormGroupNameDirective.html +7 -7
  42. package/docs/html/classes/FormLoadedDirective.html +2 -9
  43. package/docs/html/classes/FormLoadingDirective.html +2 -9
  44. package/docs/html/classes/FormLoadingErrorDirective.html +2 -9
  45. package/docs/html/classes/FormResetDirective.html +4 -4
  46. package/docs/html/classes/FormSubmitDirective.html +4 -4
  47. package/docs/html/classes/FormSubmitFailedDirective.html +2 -9
  48. package/docs/html/classes/FormSubmitInvalidDirective.html +2 -9
  49. package/docs/html/classes/FormSubmitSuccessfulDirective.html +2 -9
  50. package/docs/html/classes/FormSubmittingDirective.html +2 -9
  51. package/docs/html/classes/ParentControlContainerDirective.html +2 -2
  52. package/docs/html/classes/RxapFormArray.html +35 -35
  53. package/docs/html/classes/RxapFormBuilder.html +2 -2
  54. package/docs/html/classes/RxapFormControl.html +30 -30
  55. package/docs/html/classes/RxapFormGroup.html +35 -35
  56. package/docs/html/enums/MetadataKeys.html +2 -2
  57. package/docs/html/functions/ControlAsyncValidator.html +1 -1
  58. package/docs/html/functions/ControlChange.html +1 -1
  59. package/docs/html/functions/ControlSetValue.html +1 -1
  60. package/docs/html/functions/ControlValidator.html +1 -1
  61. package/docs/html/functions/IsArray.html +1 -1
  62. package/docs/html/functions/IsBoolean.html +1 -1
  63. package/docs/html/functions/IsComplex.html +1 -1
  64. package/docs/html/functions/IsDate.html +1 -1
  65. package/docs/html/functions/IsEmail.html +1 -1
  66. package/docs/html/functions/IsEnum.html +1 -1
  67. package/docs/html/functions/IsIP.html +1 -1
  68. package/docs/html/functions/IsInt.html +1 -1
  69. package/docs/html/functions/IsNumber-1.html +2 -2
  70. package/docs/html/functions/IsObject.html +1 -1
  71. package/docs/html/functions/IsPhoneNumber.html +1 -1
  72. package/docs/html/functions/IsPort.html +1 -1
  73. package/docs/html/functions/IsString.html +1 -1
  74. package/docs/html/functions/IsUUID.html +1 -1
  75. package/docs/html/functions/IsUrl.html +1 -1
  76. package/docs/html/functions/RxapForm.html +1 -1
  77. package/docs/html/functions/ToFormMethod.html +1 -1
  78. package/docs/html/functions/ToFormSubmitMethod.html +2 -2
  79. package/docs/html/functions/UseFormArrayControl.html +1 -1
  80. package/docs/html/functions/UseFormArrayGroup.html +1 -1
  81. package/docs/html/functions/UseFormControl.html +1 -1
  82. package/docs/html/functions/UseFormGroup.html +1 -1
  83. package/docs/html/functions/_IsNumber.html +1 -1
  84. package/docs/html/functions/controlDisabledWhile.html +1 -1
  85. package/docs/html/functions/controlDisabled_.html +1 -1
  86. package/docs/html/functions/controlEnabledWhile.html +1 -1
  87. package/docs/html/functions/controlEnabled_.html +1 -1
  88. package/docs/html/functions/controlErrorChanges_.html +1 -1
  89. package/docs/html/functions/controlReadonly_.html +1 -1
  90. package/docs/html/functions/controlStatusChanges_.html +1 -1
  91. package/docs/html/functions/controlValueChanges_.html +1 -1
  92. package/docs/html/functions/disableControl.html +1 -1
  93. package/docs/html/functions/enableControl.html +1 -1
  94. package/docs/html/functions/hasErrorAndDirty.html +1 -1
  95. package/docs/html/functions/hasErrorAndTouched.html +1 -1
  96. package/docs/html/functions/isNumber.html +2 -2
  97. package/docs/html/functions/markAllDirty.html +1 -1
  98. package/docs/html/functions/markAllPristine.html +1 -1
  99. package/docs/html/functions/markAllUntouched.html +1 -1
  100. package/docs/html/functions/mergeControlValidators.html +1 -1
  101. package/docs/html/functions/selectControlValue_.html +1 -1
  102. package/docs/html/functions/validateControlOn.html +1 -1
  103. package/docs/html/hierarchy.html +1 -1
  104. package/docs/html/index.html +2 -2
  105. package/docs/html/interfaces/AbstractControl.html +5 -5
  106. package/docs/html/interfaces/AbstractControlOptions.html +3 -3
  107. package/docs/html/interfaces/BoxedValue.html +2 -2
  108. package/docs/html/interfaces/ComplexityOptions.html +2 -2
  109. package/docs/html/interfaces/ControlOptions.html +3 -3
  110. package/docs/html/interfaces/ControlSetValueOptions.html +2 -2
  111. package/docs/html/interfaces/FormArrayOptions.html +3 -3
  112. package/docs/html/interfaces/FormDefinition.html +6 -6
  113. package/docs/html/interfaces/FormDefinitionArray.html +3 -3
  114. package/docs/html/interfaces/FormDefinitionMetadata.html +3 -3
  115. package/docs/html/interfaces/FormGroupOptions.html +3 -3
  116. package/docs/html/interfaces/FormLoadFailedMethod.html +2 -2
  117. package/docs/html/interfaces/FormLoadMethod.html +2 -2
  118. package/docs/html/interfaces/FormLoadSuccessfulMethod.html +2 -2
  119. package/docs/html/interfaces/FormOptions.html +3 -3
  120. package/docs/html/interfaces/FormSubmitFailedMethod.html +2 -2
  121. package/docs/html/interfaces/FormSubmitMethod.html +2 -2
  122. package/docs/html/interfaces/FormSubmitSuccessfulMethod.html +2 -2
  123. package/docs/html/interfaces/InjectableValidator.html +2 -2
  124. package/docs/html/interfaces/IsNumberOptions.html +3 -3
  125. package/docs/html/interfaces/NgValidatorsErrors.html +2 -2
  126. package/docs/html/interfaces/RxapAbstractControlOptionsWithDefinition.html +3 -3
  127. package/docs/html/interfaces/_RxapAbstractControlOptions.html +3 -3
  128. package/docs/html/modules.html +1 -1
  129. package/docs/html/types/AsyncValidator.html +1 -1
  130. package/docs/html/types/AsyncValidatorFn.html +1 -1
  131. package/docs/html/types/ChangeFn.html +1 -1
  132. package/docs/html/types/ControlEventOptions.html +1 -1
  133. package/docs/html/types/ControlInsertedFn.html +1 -1
  134. package/docs/html/types/ControlPath.html +1 -1
  135. package/docs/html/types/ControlRemovedFn.html +1 -1
  136. package/docs/html/types/ControlState.html +1 -1
  137. package/docs/html/types/EmitEvent.html +1 -1
  138. package/docs/html/types/ExtractAbstractControl.html +1 -1
  139. package/docs/html/types/ExtractStrings.html +1 -1
  140. package/docs/html/types/FormBuilderFn.html +1 -1
  141. package/docs/html/types/FormType.html +1 -1
  142. package/docs/html/types/KeyValueControls.html +1 -1
  143. package/docs/html/types/OnlySelf.html +1 -1
  144. package/docs/html/types/OrBoxedValue.html +1 -1
  145. package/docs/html/types/RxapAbstractControlOptions.html +1 -1
  146. package/docs/html/types/SetValueFn.html +1 -1
  147. package/docs/html/types/ValidationErrors.html +1 -1
  148. package/docs/html/types/Validator.html +1 -1
  149. package/docs/html/types/ValidatorFn.html +1 -1
  150. package/docs/html/types/ValidatorOrOpts.html +1 -1
  151. package/docs/html/variables/RXAP_FORM_CONTEXT.html +1 -1
  152. package/docs/html/variables/RXAP_FORM_DEFINITION.html +1 -1
  153. package/docs/html/variables/RXAP_FORM_DEFINITION_BUILDER.html +1 -1
  154. package/docs/html/variables/RXAP_FORM_INITIAL_STATE.html +1 -1
  155. package/docs/html/variables/RXAP_FORM_LOAD_FAILED_METHOD.html +1 -1
  156. package/docs/html/variables/RXAP_FORM_LOAD_METHOD.html +1 -1
  157. package/docs/html/variables/RXAP_FORM_LOAD_SUCCESSFUL_METHOD.html +1 -1
  158. package/docs/html/variables/RXAP_FORM_SUBMIT_FAILED_METHOD.html +1 -1
  159. package/docs/html/variables/RXAP_FORM_SUBMIT_METHOD.html +1 -1
  160. package/docs/html/variables/RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD.html +1 -1
  161. package/docs/html/variables/RxapValidators.html +1 -1
  162. package/docs/markdown/README.md +1 -1
  163. package/docs/markdown/classes/ControlValueAccessor.md +8 -8
  164. package/docs/markdown/classes/FormArrayControlManager.md +5 -5
  165. package/docs/markdown/classes/FormControlErrorDirective.md +8 -68
  166. package/docs/markdown/classes/FormControlMarkDirtyDirective.md +4 -12
  167. package/docs/markdown/classes/FormControlMarkPristineDirective.md +4 -12
  168. package/docs/markdown/classes/FormControlMarkTouchedDirective.md +4 -12
  169. package/docs/markdown/classes/FormControlMarkUntouchedDirective.md +4 -12
  170. package/docs/markdown/classes/FormControlNameDirective.md +7 -25
  171. package/docs/markdown/classes/FormDirective.md +158 -175
  172. package/docs/markdown/classes/FormGroupNameDirective.md +7 -21
  173. package/docs/markdown/classes/FormLoadedDirective.md +4 -62
  174. package/docs/markdown/classes/FormLoadingDirective.md +4 -62
  175. package/docs/markdown/classes/FormLoadingErrorDirective.md +4 -62
  176. package/docs/markdown/classes/FormResetDirective.md +15 -35
  177. package/docs/markdown/classes/FormSubmitDirective.md +33 -57
  178. package/docs/markdown/classes/FormSubmitFailedDirective.md +4 -62
  179. package/docs/markdown/classes/FormSubmitInvalidDirective.md +4 -62
  180. package/docs/markdown/classes/FormSubmitSuccessfulDirective.md +4 -62
  181. package/docs/markdown/classes/FormSubmittingDirective.md +4 -62
  182. package/docs/markdown/classes/ParentControlContainerDirective.md +2 -2
  183. package/docs/markdown/classes/RxapFormArray.md +54 -54
  184. package/docs/markdown/classes/RxapFormBuilder.md +4 -4
  185. package/docs/markdown/classes/RxapFormControl.md +51 -51
  186. package/docs/markdown/classes/RxapFormGroup.md +74 -74
  187. package/docs/markdown/enumerations/MetadataKeys.md +10 -10
  188. package/docs/markdown/functions/ControlAsyncValidator.md +2 -2
  189. package/docs/markdown/functions/ControlChange.md +2 -2
  190. package/docs/markdown/functions/ControlSetValue.md +2 -2
  191. package/docs/markdown/functions/ControlValidator.md +2 -2
  192. package/docs/markdown/functions/IsArray.md +2 -2
  193. package/docs/markdown/functions/IsBoolean.md +2 -2
  194. package/docs/markdown/functions/IsComplex.md +2 -2
  195. package/docs/markdown/functions/IsDate.md +2 -2
  196. package/docs/markdown/functions/IsEmail.md +2 -2
  197. package/docs/markdown/functions/IsEnum.md +2 -2
  198. package/docs/markdown/functions/IsIP.md +2 -2
  199. package/docs/markdown/functions/IsInt.md +2 -2
  200. package/docs/markdown/functions/IsNumber-2.md +2 -2
  201. package/docs/markdown/functions/IsNumber.md +2 -2
  202. package/docs/markdown/functions/IsObject.md +2 -2
  203. package/docs/markdown/functions/IsPhoneNumber.md +2 -2
  204. package/docs/markdown/functions/IsPort.md +2 -2
  205. package/docs/markdown/functions/IsString.md +2 -2
  206. package/docs/markdown/functions/IsUUID.md +2 -2
  207. package/docs/markdown/functions/IsUrl.md +2 -2
  208. package/docs/markdown/functions/RxapForm.md +2 -2
  209. package/docs/markdown/functions/ToFormMethod.md +2 -2
  210. package/docs/markdown/functions/ToFormSubmitMethod.md +2 -2
  211. package/docs/markdown/functions/UseFormArrayControl.md +2 -2
  212. package/docs/markdown/functions/UseFormArrayGroup.md +2 -2
  213. package/docs/markdown/functions/UseFormControl.md +2 -2
  214. package/docs/markdown/functions/UseFormGroup.md +2 -2
  215. package/docs/markdown/functions/controlDisabled$.md +2 -2
  216. package/docs/markdown/functions/controlDisabledWhile.md +2 -2
  217. package/docs/markdown/functions/controlEnabled$.md +2 -2
  218. package/docs/markdown/functions/controlEnabledWhile.md +2 -2
  219. package/docs/markdown/functions/controlErrorChanges$.md +2 -2
  220. package/docs/markdown/functions/controlReadonly$.md +2 -2
  221. package/docs/markdown/functions/controlStatusChanges$.md +2 -2
  222. package/docs/markdown/functions/controlValueChanges$.md +2 -2
  223. package/docs/markdown/functions/disableControl.md +2 -2
  224. package/docs/markdown/functions/enableControl.md +2 -2
  225. package/docs/markdown/functions/hasErrorAndDirty.md +2 -2
  226. package/docs/markdown/functions/hasErrorAndTouched.md +2 -2
  227. package/docs/markdown/functions/isNumber-1.md +2 -2
  228. package/docs/markdown/functions/markAllDirty.md +2 -2
  229. package/docs/markdown/functions/markAllPristine.md +2 -2
  230. package/docs/markdown/functions/markAllUntouched.md +2 -2
  231. package/docs/markdown/functions/mergeControlValidators.md +2 -2
  232. package/docs/markdown/functions/selectControlValue$.md +2 -2
  233. package/docs/markdown/functions/validateControlOn.md +2 -2
  234. package/docs/markdown/globals.md +2 -3
  235. package/docs/markdown/interfaces/AbstractControl.md +8 -8
  236. package/docs/markdown/interfaces/AbstractControlOptions.md +5 -5
  237. package/docs/markdown/interfaces/BoxedValue.md +4 -4
  238. package/docs/markdown/interfaces/ComplexityOptions.md +12 -12
  239. package/docs/markdown/interfaces/ControlOptions.md +10 -10
  240. package/docs/markdown/interfaces/ControlSetValueOptions.md +4 -4
  241. package/docs/markdown/interfaces/FormArrayOptions.md +12 -12
  242. package/docs/markdown/interfaces/FormDefinition.md +7 -7
  243. package/docs/markdown/interfaces/FormDefinitionArray.md +3 -3
  244. package/docs/markdown/interfaces/FormDefinitionMetadata.md +11 -11
  245. package/docs/markdown/interfaces/FormGroupOptions.md +9 -9
  246. package/docs/markdown/interfaces/FormLoadFailedMethod.md +4 -4
  247. package/docs/markdown/interfaces/FormLoadMethod.md +4 -4
  248. package/docs/markdown/interfaces/FormLoadSuccessfulMethod.md +4 -4
  249. package/docs/markdown/interfaces/FormOptions.md +9 -9
  250. package/docs/markdown/interfaces/FormSubmitFailedMethod.md +4 -4
  251. package/docs/markdown/interfaces/FormSubmitMethod.md +4 -4
  252. package/docs/markdown/interfaces/FormSubmitSuccessfulMethod.md +4 -4
  253. package/docs/markdown/interfaces/InjectableValidator.md +4 -4
  254. package/docs/markdown/interfaces/IsNumberOptions.md +6 -6
  255. package/docs/markdown/interfaces/NgValidatorsErrors.md +9 -9
  256. package/docs/markdown/interfaces/RxapAbstractControlOptions.md +8 -8
  257. package/docs/markdown/interfaces/RxapAbstractControlOptionsWithDefinition.md +9 -9
  258. package/docs/markdown/type-aliases/AsyncValidator.md +2 -2
  259. package/docs/markdown/type-aliases/AsyncValidatorFn.md +2 -2
  260. package/docs/markdown/type-aliases/ChangeFn.md +2 -2
  261. package/docs/markdown/type-aliases/ControlEventOptions.md +2 -2
  262. package/docs/markdown/type-aliases/ControlInsertedFn.md +2 -2
  263. package/docs/markdown/type-aliases/ControlPath.md +2 -2
  264. package/docs/markdown/type-aliases/ControlRemovedFn.md +2 -2
  265. package/docs/markdown/type-aliases/ControlState.md +2 -2
  266. package/docs/markdown/type-aliases/EmitEvent.md +2 -2
  267. package/docs/markdown/type-aliases/ExtractAbstractControl.md +2 -2
  268. package/docs/markdown/type-aliases/ExtractStrings.md +2 -2
  269. package/docs/markdown/type-aliases/FormBuilderFn.md +2 -2
  270. package/docs/markdown/type-aliases/FormType.md +2 -2
  271. package/docs/markdown/type-aliases/KeyValueControls.md +2 -2
  272. package/docs/markdown/type-aliases/OnlySelf.md +2 -2
  273. package/docs/markdown/type-aliases/OrBoxedValue.md +2 -2
  274. package/docs/markdown/type-aliases/RxapAbstractControlOptions.md +2 -2
  275. package/docs/markdown/type-aliases/SetValueFn.md +2 -2
  276. package/docs/markdown/type-aliases/ValidationErrors.md +2 -2
  277. package/docs/markdown/type-aliases/Validator.md +2 -2
  278. package/docs/markdown/type-aliases/ValidatorFn.md +2 -2
  279. package/docs/markdown/type-aliases/ValidatorOrOpts.md +2 -2
  280. package/docs/markdown/variables/RXAP_FORM_CONTEXT.md +2 -2
  281. package/docs/markdown/variables/RXAP_FORM_DEFINITION.md +2 -2
  282. package/docs/markdown/variables/RXAP_FORM_DEFINITION_BUILDER.md +2 -2
  283. package/docs/markdown/variables/RXAP_FORM_INITIAL_STATE.md +2 -2
  284. package/docs/markdown/variables/RXAP_FORM_LOAD_FAILED_METHOD.md +2 -2
  285. package/docs/markdown/variables/RXAP_FORM_LOAD_METHOD.md +2 -2
  286. package/docs/markdown/variables/RXAP_FORM_LOAD_SUCCESSFUL_METHOD.md +2 -2
  287. package/docs/markdown/variables/RXAP_FORM_SUBMIT_FAILED_METHOD.md +2 -2
  288. package/docs/markdown/variables/RXAP_FORM_SUBMIT_METHOD.md +2 -2
  289. package/docs/markdown/variables/RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD.md +2 -2
  290. package/docs/markdown/variables/RxapValidators.md +2 -2
  291. package/docs/wiki/Class.ControlValueAccessor.md +7 -7
  292. package/docs/wiki/Class.FormArrayControlManager.md +4 -4
  293. package/docs/wiki/Class.FormControlErrorDirective.md +7 -67
  294. package/docs/wiki/Class.FormControlMarkDirtyDirective.md +3 -11
  295. package/docs/wiki/Class.FormControlMarkPristineDirective.md +3 -11
  296. package/docs/wiki/Class.FormControlMarkTouchedDirective.md +3 -11
  297. package/docs/wiki/Class.FormControlMarkUntouchedDirective.md +3 -11
  298. package/docs/wiki/Class.FormControlNameDirective.md +6 -24
  299. package/docs/wiki/Class.FormDirective.md +157 -174
  300. package/docs/wiki/Class.FormGroupNameDirective.md +6 -20
  301. package/docs/wiki/Class.FormLoadedDirective.md +3 -61
  302. package/docs/wiki/Class.FormLoadingDirective.md +3 -61
  303. package/docs/wiki/Class.FormLoadingErrorDirective.md +3 -61
  304. package/docs/wiki/Class.FormResetDirective.md +14 -34
  305. package/docs/wiki/Class.FormSubmitDirective.md +32 -56
  306. package/docs/wiki/Class.FormSubmitFailedDirective.md +3 -61
  307. package/docs/wiki/Class.FormSubmitInvalidDirective.md +3 -61
  308. package/docs/wiki/Class.FormSubmitSuccessfulDirective.md +3 -61
  309. package/docs/wiki/Class.FormSubmittingDirective.md +3 -61
  310. package/docs/wiki/Class.ParentControlContainerDirective.md +1 -1
  311. package/docs/wiki/Class.RxapFormArray.md +53 -53
  312. package/docs/wiki/Class.RxapFormBuilder.md +3 -3
  313. package/docs/wiki/Class.RxapFormControl.md +50 -50
  314. package/docs/wiki/Class.RxapFormGroup.md +73 -73
  315. package/docs/wiki/Enumeration.MetadataKeys.md +9 -9
  316. package/docs/wiki/Function.ControlAsyncValidator.md +1 -1
  317. package/docs/wiki/Function.ControlChange.md +1 -1
  318. package/docs/wiki/Function.ControlSetValue.md +1 -1
  319. package/docs/wiki/Function.ControlValidator.md +1 -1
  320. package/docs/wiki/Function.IsArray.md +1 -1
  321. package/docs/wiki/Function.IsBoolean.md +1 -1
  322. package/docs/wiki/Function.IsComplex.md +1 -1
  323. package/docs/wiki/Function.IsDate.md +1 -1
  324. package/docs/wiki/Function.IsEmail.md +1 -1
  325. package/docs/wiki/Function.IsEnum.md +1 -1
  326. package/docs/wiki/Function.IsIP.md +1 -1
  327. package/docs/wiki/Function.IsInt.md +1 -1
  328. package/docs/wiki/Function.IsNumber.md +1 -1
  329. package/docs/wiki/Function.IsObject.md +1 -1
  330. package/docs/wiki/Function.IsPhoneNumber.md +1 -1
  331. package/docs/wiki/Function.IsPort.md +1 -1
  332. package/docs/wiki/Function.IsString.md +1 -1
  333. package/docs/wiki/Function.IsUUID.md +1 -1
  334. package/docs/wiki/Function.IsUrl.md +1 -1
  335. package/docs/wiki/Function.RxapForm.md +1 -1
  336. package/docs/wiki/Function.ToFormMethod.md +1 -1
  337. package/docs/wiki/Function.ToFormSubmitMethod.md +1 -1
  338. package/docs/wiki/Function.UseFormArrayControl.md +1 -1
  339. package/docs/wiki/Function.UseFormArrayGroup.md +1 -1
  340. package/docs/wiki/Function.UseFormControl.md +1 -1
  341. package/docs/wiki/Function.UseFormGroup.md +1 -1
  342. package/docs/wiki/Function._IsNumber.md +1 -1
  343. package/docs/wiki/Function.controlDisabled$.md +1 -1
  344. package/docs/wiki/Function.controlDisabledWhile.md +1 -1
  345. package/docs/wiki/Function.controlEnabled$.md +1 -1
  346. package/docs/wiki/Function.controlEnabledWhile.md +1 -1
  347. package/docs/wiki/Function.controlErrorChanges$.md +1 -1
  348. package/docs/wiki/Function.controlReadonly$.md +1 -1
  349. package/docs/wiki/Function.controlStatusChanges$.md +1 -1
  350. package/docs/wiki/Function.controlValueChanges$.md +1 -1
  351. package/docs/wiki/Function.disableControl.md +1 -1
  352. package/docs/wiki/Function.enableControl.md +1 -1
  353. package/docs/wiki/Function.hasErrorAndDirty.md +1 -1
  354. package/docs/wiki/Function.hasErrorAndTouched.md +1 -1
  355. package/docs/wiki/Function.isNumber.md +1 -1
  356. package/docs/wiki/Function.markAllDirty.md +1 -1
  357. package/docs/wiki/Function.markAllPristine.md +1 -1
  358. package/docs/wiki/Function.markAllUntouched.md +1 -1
  359. package/docs/wiki/Function.mergeControlValidators.md +1 -1
  360. package/docs/wiki/Function.selectControlValue$.md +1 -1
  361. package/docs/wiki/Function.validateControlOn.md +1 -1
  362. package/docs/wiki/Interface.AbstractControl.md +7 -7
  363. package/docs/wiki/Interface.AbstractControlOptions.md +4 -4
  364. package/docs/wiki/Interface.BoxedValue.md +3 -3
  365. package/docs/wiki/Interface.ComplexityOptions.md +11 -11
  366. package/docs/wiki/Interface.ControlOptions.md +9 -9
  367. package/docs/wiki/Interface.ControlSetValueOptions.md +3 -3
  368. package/docs/wiki/Interface.FormArrayOptions.md +11 -11
  369. package/docs/wiki/Interface.FormDefinition.md +6 -6
  370. package/docs/wiki/Interface.FormDefinitionArray.md +2 -2
  371. package/docs/wiki/Interface.FormDefinitionMetadata.md +10 -10
  372. package/docs/wiki/Interface.FormGroupOptions.md +8 -8
  373. package/docs/wiki/Interface.FormLoadFailedMethod.md +3 -3
  374. package/docs/wiki/Interface.FormLoadMethod.md +3 -3
  375. package/docs/wiki/Interface.FormLoadSuccessfulMethod.md +3 -3
  376. package/docs/wiki/Interface.FormOptions.md +8 -8
  377. package/docs/wiki/Interface.FormSubmitFailedMethod.md +3 -3
  378. package/docs/wiki/Interface.FormSubmitMethod.md +3 -3
  379. package/docs/wiki/Interface.FormSubmitSuccessfulMethod.md +3 -3
  380. package/docs/wiki/Interface.InjectableValidator.md +3 -3
  381. package/docs/wiki/Interface.IsNumberOptions.md +5 -5
  382. package/docs/wiki/Interface.NgValidatorsErrors.md +8 -8
  383. package/docs/wiki/Interface.RxapAbstractControlOptionsWithDefinition.md +8 -8
  384. package/docs/wiki/Interface._RxapAbstractControlOptions.md +7 -7
  385. package/docs/wiki/TypeAlias.AsyncValidator.md +1 -1
  386. package/docs/wiki/TypeAlias.AsyncValidatorFn.md +1 -1
  387. package/docs/wiki/TypeAlias.ChangeFn.md +1 -1
  388. package/docs/wiki/TypeAlias.ControlEventOptions.md +1 -1
  389. package/docs/wiki/TypeAlias.ControlInsertedFn.md +1 -1
  390. package/docs/wiki/TypeAlias.ControlPath.md +1 -1
  391. package/docs/wiki/TypeAlias.ControlRemovedFn.md +1 -1
  392. package/docs/wiki/TypeAlias.ControlState.md +1 -1
  393. package/docs/wiki/TypeAlias.EmitEvent.md +1 -1
  394. package/docs/wiki/TypeAlias.ExtractAbstractControl.md +1 -1
  395. package/docs/wiki/TypeAlias.ExtractStrings.md +1 -1
  396. package/docs/wiki/TypeAlias.FormBuilderFn.md +1 -1
  397. package/docs/wiki/TypeAlias.FormType.md +1 -1
  398. package/docs/wiki/TypeAlias.KeyValueControls.md +1 -1
  399. package/docs/wiki/TypeAlias.OnlySelf.md +1 -1
  400. package/docs/wiki/TypeAlias.OrBoxedValue.md +1 -1
  401. package/docs/wiki/TypeAlias.RxapAbstractControlOptions.md +1 -1
  402. package/docs/wiki/TypeAlias.SetValueFn.md +1 -1
  403. package/docs/wiki/TypeAlias.ValidationErrors.md +1 -1
  404. package/docs/wiki/TypeAlias.Validator.md +1 -1
  405. package/docs/wiki/TypeAlias.ValidatorFn.md +1 -1
  406. package/docs/wiki/TypeAlias.ValidatorOrOpts.md +1 -1
  407. package/docs/wiki/Variable.RXAP_FORM_CONTEXT.md +1 -1
  408. package/docs/wiki/Variable.RXAP_FORM_DEFINITION.md +1 -1
  409. package/docs/wiki/Variable.RXAP_FORM_DEFINITION_BUILDER.md +1 -1
  410. package/docs/wiki/Variable.RXAP_FORM_INITIAL_STATE.md +1 -1
  411. package/docs/wiki/Variable.RXAP_FORM_LOAD_FAILED_METHOD.md +1 -1
  412. package/docs/wiki/Variable.RXAP_FORM_LOAD_METHOD.md +1 -1
  413. package/docs/wiki/Variable.RXAP_FORM_LOAD_SUCCESSFUL_METHOD.md +1 -1
  414. package/docs/wiki/Variable.RXAP_FORM_SUBMIT_FAILED_METHOD.md +1 -1
  415. package/docs/wiki/Variable.RXAP_FORM_SUBMIT_METHOD.md +1 -1
  416. package/docs/wiki/Variable.RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD.md +1 -1
  417. package/docs/wiki/Variable.RxapValidators.md +1 -1
  418. package/docs/wiki/_Sidebar.md +0 -1
  419. package/docs/wiki/globals.md +1 -2
  420. package/fesm2022/rxap-forms.mjs +1850 -2170
  421. package/fesm2022/rxap-forms.mjs.map +1 -1
  422. package/package.json +17 -17
  423. package/types/rxap-forms.d.ts +400 -410
  424. package/docs/html/classes/RxapFormsModule.html +0 -2
  425. package/docs/markdown/classes/RxapFormsModule.md +0 -19
  426. package/docs/wiki/Class.RxapFormsModule.md +0 -15
@@ -185,20 +185,6 @@ ability to access the control container outside of the current component</p>
185
185
  <tbody>
186
186
 
187
187
 
188
- <tr>
189
- <td class="col-md-4">
190
- <h6><b>Inputs</b></h6>
191
- </td>
192
- </tr>
193
- <tr>
194
- <td class="col-md-4">
195
- <ul class="index-list">
196
- <li>
197
- <a href="#rxapFormGroupName" >rxapFormGroupName</a>
198
- </li>
199
- </ul>
200
- </td>
201
- </tr>
202
188
 
203
189
 
204
190
 
@@ -227,97 +213,20 @@ ability to access the control container outside of the current component</p>
227
213
  <tbody>
228
214
  <tr>
229
215
  <td class="col-md-4">
230
- <code>constructor(parent: ControlContainer, validators: any[], asyncValidators: any[])</code>
216
+ <code>constructor()</code>
231
217
  </td>
232
218
  </tr>
233
219
  <tr>
234
220
  <td class="col-md-4">
235
- <div class="io-line">Defined in <a href="" data-line="43" class="link-to-prism">src/lib/directives/form-group-name.directive.ts:43</a></div>
221
+ <div class="io-line">Defined in <a href="" data-line="39" class="link-to-prism">src/lib/directives/form-group-name.directive.ts:39</a></div>
236
222
  </td>
237
223
  </tr>
238
224
 
239
- <tr>
240
- <td class="col-md-4">
241
- <div>
242
- <b>Parameters :</b>
243
- <table class="params">
244
- <thead>
245
- <tr>
246
- <td>Name</td>
247
- <td>Type</td>
248
- <td>Optional</td>
249
- </tr>
250
- </thead>
251
- <tbody>
252
- <tr>
253
- <td>parent</td>
254
-
255
- <td>
256
- <code>ControlContainer</code>
257
- </td>
258
-
259
- <td>
260
- No
261
- </td>
262
-
263
- </tr>
264
- <tr>
265
- <td>validators</td>
266
-
267
- <td>
268
- <code>any[]</code>
269
- </td>
270
-
271
- <td>
272
- No
273
- </td>
274
-
275
- </tr>
276
- <tr>
277
- <td>asyncValidators</td>
278
-
279
- <td>
280
- <code>any[]</code>
281
- </td>
282
-
283
- <td>
284
- No
285
- </td>
286
-
287
- </tr>
288
- </tbody>
289
- </table>
290
- </div>
291
- </td>
292
- </tr>
293
225
  </tbody>
294
226
  </table>
295
227
  </section>
296
228
 
297
- <section data-compodoc="block-inputs">
298
- <h3 id="inputs">Inputs</h3>
299
- <table class="table table-sm table-bordered">
300
- <tbody>
301
- <tr>
302
- <td class="col-md-4">
303
- <a name="rxapFormGroupName"></a>
304
- <b>rxapFormGroupName</b>
305
- </td>
306
- </tr>
307
- <tr>
308
- <td class="col-md-4">
309
- <i>Type : </i> <code>string | number | null</code>
310
229
 
311
- </td>
312
- </tr>
313
- <tr>
314
- <td class="col-md-2" colspan="2">
315
- <div class="io-line">Defined in <a href="" data-line="38" class="link-to-prism">src/lib/directives/form-group-name.directive.ts:38</a></div>
316
- </td>
317
- </tr>
318
- </tbody>
319
- </table>
320
- </section>
321
230
 
322
231
 
323
232
 
@@ -343,7 +252,7 @@ ability to access the control container outside of the current component</p>
343
252
  </tr>
344
253
  <tr>
345
254
  <td class="col-md-4">
346
- <div class="io-line">Defined in <a href="" data-line="40" class="link-to-prism">src/lib/directives/form-group-name.directive.ts:40</a></div>
255
+ <div class="io-line">Defined in <a href="" data-line="36" class="link-to-prism">src/lib/directives/form-group-name.directive.ts:36</a></div>
347
256
  </td>
348
257
  </tr>
349
258
 
@@ -355,18 +264,14 @@ ability to access the control container outside of the current component</p>
355
264
 
356
265
 
357
266
  <div class="tab-pane fade tab-source-code" id="source">
358
- <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
359
- Directive,
360
- forwardRef,
361
- Inject,
362
- Input,
363
- Optional,
364
- Self,
365
- SkipSelf,
366
- } from &#x27;@angular/core&#x27;;
267
+ <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Directive, forwardRef, inject } from &#x27;@angular/core&#x27;;
367
268
  import {
368
269
  ControlContainer,
270
+ AsyncValidator,
271
+ AsyncValidatorFn,
369
272
  FormGroupName,
273
+ Validator,
274
+ ValidatorFn,
370
275
  NG_ASYNC_VALIDATORS,
371
276
  NG_VALIDATORS,
372
277
  } from &#x27;@angular/forms&#x27;;
@@ -386,24 +291,24 @@ import { RxapFormGroup } from &#x27;../form-group&#x27;;
386
291
  useExisting: forwardRef(() &#x3D;&gt; FormGroupNameDirective),
387
292
  },
388
293
  ],
294
+ // the base class declares the &#x60;name&#x60; input (alias formGroupName); re-alias it to rxapFormGroupName
295
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
296
+ inputs: [ { name: &#x27;name&#x27;, alias: &#x27;rxapFormGroupName&#x27; } ],
389
297
  exportAs: &#x27;rxapFormGroup&#x27;,
390
298
  standalone: true,
391
299
  })
392
300
  export class FormGroupNameDirective extends FormGroupName {
393
301
 
394
- @Input(&#x27;rxapFormGroupName&#x27;)
395
- public override name!: string | number | null;
396
-
397
302
  public override get control(): RxapFormGroup {
398
303
  // TODO : add type check
399
304
  return this.formDirective!.getFormGroup(this) as any;
400
305
  }
401
306
 
402
- constructor(
403
- @Optional() @SkipSelf() parent: ControlContainer,
404
- @Optional() @Self() @Inject(NG_VALIDATORS) validators: any[],
405
- @Optional() @Self() @Inject(NG_ASYNC_VALIDATORS) asyncValidators: any[],
406
- ) {
307
+ constructor() {
308
+ const parent &#x3D; inject(ControlContainer, { optional: true, skipSelf: true })!;
309
+ const validators &#x3D; [ ...(inject(NG_VALIDATORS, { optional: true, self: true }) ?? []) ] as Array&lt;Validator | ValidatorFn&gt;;
310
+ const asyncValidators &#x3D; [ ...(inject(NG_ASYNC_VALIDATORS, { optional: true, self: true }) ?? []) ] as Array&lt;AsyncValidator | AsyncValidatorFn&gt;;
311
+
407
312
  super(parent, validators, asyncValidators);
408
313
  }
409
314
 
@@ -120,13 +120,6 @@
120
120
 
121
121
 
122
122
 
123
- <p class="comment">
124
- <h3>Implements</h3>
125
- </p>
126
- <p class="comment">
127
- <code>AfterViewInit</code>
128
- <code>OnDestroy</code>
129
- </p>
130
123
 
131
124
 
132
125
  <section data-compodoc="block-metadata">
@@ -157,69 +150,15 @@
157
150
  <tbody>
158
151
  <tr>
159
152
  <td class="col-md-4">
160
- <code>constructor(formDirective: <a href="../directives/FormDirective.html" target="_self">FormDirective</a>, template: TemplateRef<void>, viewContainerRef: ViewContainerRef)</code>
153
+ <code>constructor()</code>
161
154
  </td>
162
155
  </tr>
163
156
  <tr>
164
157
  <td class="col-md-4">
165
- <div class="io-line">Defined in <a href="" data-line="22" class="link-to-prism">src/lib/directives/form-loaded.directive.ts:22</a></div>
158
+ <div class="io-line">Defined in <a href="" data-line="14" class="link-to-prism">src/lib/directives/form-loaded.directive.ts:14</a></div>
166
159
  </td>
167
160
  </tr>
168
161
 
169
- <tr>
170
- <td class="col-md-4">
171
- <div>
172
- <b>Parameters :</b>
173
- <table class="params">
174
- <thead>
175
- <tr>
176
- <td>Name</td>
177
- <td>Type</td>
178
- <td>Optional</td>
179
- </tr>
180
- </thead>
181
- <tbody>
182
- <tr>
183
- <td>formDirective</td>
184
-
185
- <td>
186
- <code><a href="../directives/FormDirective.html" target="_self" >FormDirective</a></code>
187
- </td>
188
-
189
- <td>
190
- No
191
- </td>
192
-
193
- </tr>
194
- <tr>
195
- <td>template</td>
196
-
197
- <td>
198
- <code>TemplateRef&lt;void&gt;</code>
199
- </td>
200
-
201
- <td>
202
- No
203
- </td>
204
-
205
- </tr>
206
- <tr>
207
- <td>viewContainerRef</td>
208
-
209
- <td>
210
- <code>ViewContainerRef</code>
211
- </td>
212
-
213
- <td>
214
- No
215
- </td>
216
-
217
- </tr>
218
- </tbody>
219
- </table>
220
- </div>
221
- </td>
222
- </tr>
223
162
  </tbody>
224
163
  </table>
225
164
  </section>
@@ -235,50 +174,31 @@
235
174
 
236
175
 
237
176
  <div class="tab-pane fade tab-source-code" id="source">
238
- <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
239
- AfterViewInit,
240
- Directive,
241
- Inject,
242
- OnDestroy,
243
- TemplateRef,
244
- ViewContainerRef,
245
- } from &#x27;@angular/core&#x27;;
246
- import { Subscription } from &#x27;rxjs&#x27;;
247
- import {
248
- distinctUntilChanged,
249
- tap,
250
- } from &#x27;rxjs/operators&#x27;;
177
+ <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Directive, effect, inject, TemplateRef, untracked, ViewContainerRef } from &#x27;@angular/core&#x27;;
178
+ import { toSignal } from &#x27;@angular/core/rxjs-interop&#x27;;
251
179
  import { FormDirective } from &#x27;./form.directive&#x27;;
252
180
 
253
181
  @Directive({
254
182
  selector: &#x27;[rxapFormLoaded]&#x27;,
255
183
  standalone: true,
256
184
  })
257
- export class FormLoadedDirective implements AfterViewInit, OnDestroy {
185
+ export class FormLoadedDirective {
186
+ private readonly formDirective &#x3D; inject&lt;FormDirective&gt;(FormDirective);
187
+ private readonly template &#x3D; inject&lt;TemplateRef&lt;void&gt;&gt;(TemplateRef);
188
+ private readonly viewContainerRef &#x3D; inject&lt;ViewContainerRef&gt;(ViewContainerRef);
258
189
 
259
- private subscription?: Subscription;
190
+ private readonly state &#x3D; toSignal(this.formDirective.loaded$, { initialValue: false });
260
191
 
261
- constructor(
262
- @Inject(FormDirective) private readonly formDirective: FormDirective,
263
- @Inject(TemplateRef) private readonly template: TemplateRef&lt;void&gt;,
264
- @Inject(ViewContainerRef) private readonly viewContainerRef: ViewContainerRef,
265
- ) {
266
- }
267
-
268
- public ngAfterViewInit() {
269
- this.subscription &#x3D; this.formDirective.loaded$.pipe(
270
- distinctUntilChanged(),
271
- tap(loading &#x3D;&gt; {
192
+ constructor() {
193
+ effect(() &#x3D;&gt; {
194
+ const active &#x3D; this.state();
195
+ untracked(() &#x3D;&gt; {
272
196
  this.viewContainerRef.clear();
273
- if (loading) {
197
+ if (active) {
274
198
  this.viewContainerRef.createEmbeddedView(this.template);
275
199
  }
276
- }),
277
- ).subscribe();
278
- }
279
-
280
- public ngOnDestroy() {
281
- this.subscription?.unsubscribe();
200
+ });
201
+ });
282
202
  }
283
203
 
284
204
  }
@@ -120,13 +120,6 @@
120
120
 
121
121
 
122
122
 
123
- <p class="comment">
124
- <h3>Implements</h3>
125
- </p>
126
- <p class="comment">
127
- <code>AfterViewInit</code>
128
- <code>OnDestroy</code>
129
- </p>
130
123
 
131
124
 
132
125
  <section data-compodoc="block-metadata">
@@ -157,69 +150,15 @@
157
150
  <tbody>
158
151
  <tr>
159
152
  <td class="col-md-4">
160
- <code>constructor(formDirective: <a href="../directives/FormDirective.html" target="_self">FormDirective</a>, template: TemplateRef<void>, viewContainerRef: ViewContainerRef)</code>
153
+ <code>constructor()</code>
161
154
  </td>
162
155
  </tr>
163
156
  <tr>
164
157
  <td class="col-md-4">
165
- <div class="io-line">Defined in <a href="" data-line="22" class="link-to-prism">src/lib/directives/form-loading.directive.ts:22</a></div>
158
+ <div class="io-line">Defined in <a href="" data-line="14" class="link-to-prism">src/lib/directives/form-loading.directive.ts:14</a></div>
166
159
  </td>
167
160
  </tr>
168
161
 
169
- <tr>
170
- <td class="col-md-4">
171
- <div>
172
- <b>Parameters :</b>
173
- <table class="params">
174
- <thead>
175
- <tr>
176
- <td>Name</td>
177
- <td>Type</td>
178
- <td>Optional</td>
179
- </tr>
180
- </thead>
181
- <tbody>
182
- <tr>
183
- <td>formDirective</td>
184
-
185
- <td>
186
- <code><a href="../directives/FormDirective.html" target="_self" >FormDirective</a></code>
187
- </td>
188
-
189
- <td>
190
- No
191
- </td>
192
-
193
- </tr>
194
- <tr>
195
- <td>template</td>
196
-
197
- <td>
198
- <code>TemplateRef&lt;void&gt;</code>
199
- </td>
200
-
201
- <td>
202
- No
203
- </td>
204
-
205
- </tr>
206
- <tr>
207
- <td>viewContainerRef</td>
208
-
209
- <td>
210
- <code>ViewContainerRef</code>
211
- </td>
212
-
213
- <td>
214
- No
215
- </td>
216
-
217
- </tr>
218
- </tbody>
219
- </table>
220
- </div>
221
- </td>
222
- </tr>
223
162
  </tbody>
224
163
  </table>
225
164
  </section>
@@ -235,50 +174,31 @@
235
174
 
236
175
 
237
176
  <div class="tab-pane fade tab-source-code" id="source">
238
- <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
239
- AfterViewInit,
240
- Directive,
241
- Inject,
242
- OnDestroy,
243
- TemplateRef,
244
- ViewContainerRef,
245
- } from &#x27;@angular/core&#x27;;
246
- import { Subscription } from &#x27;rxjs&#x27;;
247
- import {
248
- distinctUntilChanged,
249
- tap,
250
- } from &#x27;rxjs/operators&#x27;;
177
+ <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Directive, effect, inject, TemplateRef, untracked, ViewContainerRef } from &#x27;@angular/core&#x27;;
178
+ import { toSignal } from &#x27;@angular/core/rxjs-interop&#x27;;
251
179
  import { FormDirective } from &#x27;./form.directive&#x27;;
252
180
 
253
181
  @Directive({
254
182
  selector: &#x27;[rxapFormLoading]&#x27;,
255
183
  standalone: true,
256
184
  })
257
- export class FormLoadingDirective implements AfterViewInit, OnDestroy {
185
+ export class FormLoadingDirective {
186
+ private readonly formDirective &#x3D; inject&lt;FormDirective&gt;(FormDirective);
187
+ private readonly template &#x3D; inject&lt;TemplateRef&lt;void&gt;&gt;(TemplateRef);
188
+ private readonly viewContainerRef &#x3D; inject&lt;ViewContainerRef&gt;(ViewContainerRef);
258
189
 
259
- private subscription?: Subscription;
190
+ private readonly state &#x3D; toSignal(this.formDirective.loading$, { initialValue: false });
260
191
 
261
- constructor(
262
- @Inject(FormDirective) private readonly formDirective: FormDirective,
263
- @Inject(TemplateRef) private readonly template: TemplateRef&lt;void&gt;,
264
- @Inject(ViewContainerRef) private readonly viewContainerRef: ViewContainerRef,
265
- ) {
266
- }
267
-
268
- public ngAfterViewInit() {
269
- this.subscription &#x3D; this.formDirective.loading$.pipe(
270
- distinctUntilChanged(),
271
- tap(loading &#x3D;&gt; {
192
+ constructor() {
193
+ effect(() &#x3D;&gt; {
194
+ const active &#x3D; this.state();
195
+ untracked(() &#x3D;&gt; {
272
196
  this.viewContainerRef.clear();
273
- if (loading) {
197
+ if (active) {
274
198
  this.viewContainerRef.createEmbeddedView(this.template);
275
199
  }
276
- }),
277
- ).subscribe();
278
- }
279
-
280
- public ngOnDestroy() {
281
- this.subscription?.unsubscribe();
200
+ });
201
+ });
282
202
  }
283
203
 
284
204
  }
@@ -120,13 +120,6 @@
120
120
 
121
121
 
122
122
 
123
- <p class="comment">
124
- <h3>Implements</h3>
125
- </p>
126
- <p class="comment">
127
- <code>AfterViewInit</code>
128
- <code>OnDestroy</code>
129
- </p>
130
123
 
131
124
 
132
125
  <section data-compodoc="block-metadata">
@@ -157,69 +150,15 @@
157
150
  <tbody>
158
151
  <tr>
159
152
  <td class="col-md-4">
160
- <code>constructor(formDirective: <a href="../directives/FormDirective.html" target="_self">FormDirective</a>, template: TemplateRef<literal type>, viewContainerRef: ViewContainerRef)</code>
153
+ <code>constructor()</code>
161
154
  </td>
162
155
  </tr>
163
156
  <tr>
164
157
  <td class="col-md-4">
165
- <div class="io-line">Defined in <a href="" data-line="19" class="link-to-prism">src/lib/directives/form-loading-error.directive.ts:19</a></div>
158
+ <div class="io-line">Defined in <a href="" data-line="14" class="link-to-prism">src/lib/directives/form-loading-error.directive.ts:14</a></div>
166
159
  </td>
167
160
  </tr>
168
161
 
169
- <tr>
170
- <td class="col-md-4">
171
- <div>
172
- <b>Parameters :</b>
173
- <table class="params">
174
- <thead>
175
- <tr>
176
- <td>Name</td>
177
- <td>Type</td>
178
- <td>Optional</td>
179
- </tr>
180
- </thead>
181
- <tbody>
182
- <tr>
183
- <td>formDirective</td>
184
-
185
- <td>
186
- <code><a href="../directives/FormDirective.html" target="_self" >FormDirective</a></code>
187
- </td>
188
-
189
- <td>
190
- No
191
- </td>
192
-
193
- </tr>
194
- <tr>
195
- <td>template</td>
196
-
197
- <td>
198
- <code>TemplateRef&lt;literal type&gt;</code>
199
- </td>
200
-
201
- <td>
202
- No
203
- </td>
204
-
205
- </tr>
206
- <tr>
207
- <td>viewContainerRef</td>
208
-
209
- <td>
210
- <code>ViewContainerRef</code>
211
- </td>
212
-
213
- <td>
214
- No
215
- </td>
216
-
217
- </tr>
218
- </tbody>
219
- </table>
220
- </div>
221
- </td>
222
- </tr>
223
162
  </tbody>
224
163
  </table>
225
164
  </section>
@@ -235,46 +174,31 @@
235
174
 
236
175
 
237
176
  <div class="tab-pane fade tab-source-code" id="source">
238
- <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
239
- AfterViewInit,
240
- Directive,
241
- Inject,
242
- OnDestroy,
243
- TemplateRef,
244
- ViewContainerRef,
245
- } from &#x27;@angular/core&#x27;;
246
- import { Subscription } from &#x27;rxjs&#x27;;
247
- import { tap } from &#x27;rxjs/operators&#x27;;
177
+ <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Directive, effect, inject, TemplateRef, untracked, ViewContainerRef } from &#x27;@angular/core&#x27;;
178
+ import { toSignal } from &#x27;@angular/core/rxjs-interop&#x27;;
248
179
  import { FormDirective } from &#x27;./form.directive&#x27;;
249
180
 
250
181
  @Directive({
251
182
  selector: &#x27;[rxapFormLoadingError]&#x27;,
252
183
  standalone: true,
253
184
  })
254
- export class FormLoadingErrorDirective implements AfterViewInit, OnDestroy {
185
+ export class FormLoadingErrorDirective {
186
+ private readonly formDirective &#x3D; inject&lt;FormDirective&gt;(FormDirective);
187
+ private readonly template &#x3D; inject&lt;TemplateRef&lt;{ $implicit: Error }&gt;&gt;(TemplateRef);
188
+ private readonly viewContainerRef &#x3D; inject&lt;ViewContainerRef&gt;(ViewContainerRef);
255
189
 
256
- private subscription?: Subscription;
190
+ private readonly error &#x3D; toSignal(this.formDirective.loadingError$, { initialValue: null });
257
191
 
258
- constructor(
259
- @Inject(FormDirective) private readonly formDirective: FormDirective,
260
- @Inject(TemplateRef) private readonly template: TemplateRef&lt;{ $implicit: Error }&gt;,
261
- @Inject(ViewContainerRef) private readonly viewContainerRef: ViewContainerRef,
262
- ) {
263
- }
264
-
265
- public ngAfterViewInit() {
266
- this.subscription &#x3D; this.formDirective.loadingError$.pipe(
267
- tap(error &#x3D;&gt; {
192
+ constructor() {
193
+ effect(() &#x3D;&gt; {
194
+ const error &#x3D; this.error();
195
+ untracked(() &#x3D;&gt; {
268
196
  this.viewContainerRef.clear();
269
197
  if (error !&#x3D;&#x3D; null) {
270
198
  this.viewContainerRef.createEmbeddedView(this.template, { $implicit: error });
271
199
  }
272
- }),
273
- ).subscribe();
274
- }
275
-
276
- public ngOnDestroy() {
277
- this.subscription?.unsubscribe();
200
+ });
201
+ });
278
202
  }
279
203
 
280
204
  }