@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
@@ -1,16 +1,15 @@
1
- import { AbstractControl as AbstractControl$1, ValidationErrors as ValidationErrors$1, UntypedFormControl, UntypedFormGroup, AbstractControlOptions as AbstractControlOptions$1, ValidatorFn as ValidatorFn$1, AsyncValidatorFn as AsyncValidatorFn$1, UntypedFormArray, ControlContainer, FormControlName, Validator as Validator$1, AsyncValidator as AsyncValidator$1, ControlValueAccessor as ControlValueAccessor$1, FormGroupName, FormGroupDirective } from '@angular/forms';
1
+ import { AbstractControl as AbstractControl$1, ValidationErrors as ValidationErrors$1, UntypedFormGroup, AbstractControlOptions as AbstractControlOptions$1, UntypedFormArray, ValidatorFn as ValidatorFn$1, AsyncValidatorFn as AsyncValidatorFn$1, UntypedFormControl, FormControlName, FormGroupName, FormGroupDirective, ControlValueAccessor as ControlValueAccessor$1 } from '@angular/forms';
2
2
  import { IsEmailOptions, MobilePhoneLocale, IsMobilePhoneOptions, IsURLOptions } from '@rxap/validator';
3
3
  import * as i0 from '@angular/core';
4
- import { Type, InjectionToken, AbstractType, StaticProvider, OnInit, OnDestroy, TemplateRef, ViewContainerRef, Injector, OnChanges, ChangeDetectorRef, EventEmitter, SimpleChanges, AfterViewInit } from '@angular/core';
5
- import { Observable, Subject, Subscription, BehaviorSubject } from 'rxjs';
4
+ import { Type, InjectionToken, AbstractType, StaticProvider, OnDestroy, Injector, OnInit, OnChanges, ChangeDetectorRef, SimpleChanges } from '@angular/core';
5
+ import { Observable, Subscription, Subject, BehaviorSubject } from 'rxjs';
6
6
  import { BaseDefinitionMetadata } from '@rxap/definition';
7
7
  import { Constructor, NonEmpty } from '@rxap/utilities';
8
+ import { ConfirmClick } from '@rxap/directives';
9
+ import * as _rxap_forms from '@rxap/forms';
8
10
  import { ToggleSubject } from '@rxap/rxjs';
9
11
  import { LoadingIndicatorService } from '@rxap/services';
10
12
  import { MethodWithParameters, Method } from '@rxap/pattern';
11
- import { ConfirmClick } from '@rxap/directives';
12
- import { Router } from '@angular/router';
13
- import * as _rxap_forms from '@rxap/forms';
14
13
 
15
14
  declare function IsArray({ message }?: {
16
15
  message?: string;
@@ -131,65 +130,46 @@ declare const RxapValidators: {
131
130
  IsUUID: typeof IsUUID;
132
131
  };
133
132
 
134
- declare class RxapFormControl<T = any, E extends object = any, Parent extends object = any> extends UntypedFormControl {
135
- /**
136
- * @internal
137
- */
138
- get rxapFormDefinition(): (FormType<Parent> & FormDefinition<Parent>) | undefined;
139
- readonly value: T;
140
- readonly errors: E | null;
141
- readonly valueChanges: Observable<T>;
142
- readonly status: ControlState;
143
- readonly statusChanges: Observable<ControlState>;
144
- get initialState(): OrBoxedValue<T>;
145
- protected _initialState: OrBoxedValue<T>;
146
- private _readonly;
147
- private touchChanges;
148
- private dirtyChanges;
149
- readonly touch$: Observable<boolean>;
150
- readonly dirty$: Observable<boolean>;
151
- readonly value$: Observable<T>;
152
- readonly disabled$: Observable<boolean>;
153
- readonly enabled$: Observable<boolean>;
154
- get readonly(): boolean;
155
- set readonly(value: boolean);
156
- readonly status$: Observable<ControlState>;
157
- readonly errors$: Observable<E | null>;
158
- readonly controlId: string;
159
- private readonly _onSetValue;
160
- readonly stateChanges: Subject<void>;
161
- readonly readonly$: Observable<boolean>;
162
- get controlPath(): string;
163
- get fullControlPath(): string;
164
- constructor(formState: OrBoxedValue<T>, options: RxapAbstractControlOptions & {
165
- controlId: string;
166
- });
167
- setValue(valueOrObservable: Observable<T>, options?: ControlOptions): Subscription;
168
- setValue(valueOrObservable: T, options?: ControlOptions): void;
169
- patchValue(valueOrObservable: Observable<T>, options?: ControlOptions): Subscription;
170
- patchValue(valueOrObservable: T, options?: ControlOptions): void;
171
- disabledWhile(observable: Observable<boolean>, options?: ControlOptions): Subscription;
172
- enabledWhile(observable: Observable<boolean>, options?: ControlOptions): Subscription;
173
- mergeValidators(validators: Validator): void;
174
- mergeAsyncValidators(validators: AsyncValidator): void;
175
- markAsTouched(opts?: OnlySelf): void;
176
- markAsUntouched(opts?: OnlySelf): void;
177
- markAsPristine(opts?: OnlySelf): void;
178
- markAsDirty(opts?: OnlySelf): void;
179
- markAllAsDirty(): void;
180
- reset(formState?: OrBoxedValue<T>, options?: ControlEventOptions): void;
181
- setValidators(newValidator: Validator, updateValueAndValidity?: boolean): void;
182
- setAsyncValidators(newValidator: AsyncValidator, updateValueAndValidity?: boolean): void;
183
- validateOn(observableValidation: Observable<null | object>): Subscription;
184
- getError<K extends ExtractStrings<E>>(errorCode: K): E[K] | null;
185
- hasError<K extends ExtractStrings<E>>(errorCode: K): boolean;
186
- setErrors(errors: Partial<E> | null, opts?: EmitEvent): void;
187
- setError(key: string, value: any, opts?: EmitEvent): void;
188
- hasErrorAndTouched(error: ExtractStrings<E>): boolean;
189
- hasErrorAndDirty(error: ExtractStrings<E>): boolean;
190
- setEnable(enable?: boolean, opts?: ControlEventOptions): void;
191
- setDisable(disable?: boolean, opts?: ControlEventOptions): void;
192
- registerOnSetValue(setValueFn: SetValueFn<T>): void;
133
+ /**
134
+ * @deprecated removed use the rxapControlError or rxapControlErrors directive
135
+ */
136
+ declare class FormControlErrorDirective {
137
+ private readonly template;
138
+ private readonly parent;
139
+ private readonly viewContainerRef;
140
+ readonly name: i0.InputSignal<string>;
141
+ readonly errorKey: i0.InputSignal<string>;
142
+ constructor();
143
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormControlErrorDirective, never>;
144
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlErrorDirective, "[rxapFormControlError]", never, { "name": { "alias": "rxapFormControlErrorFrom"; "required": true; "isSignal": true; }; "errorKey": { "alias": "rxapFormControlErrorIf"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
145
+ }
146
+
147
+ declare class FormControlMarkDirtyDirective {
148
+ private readonly parent;
149
+ onClick(): void;
150
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormControlMarkDirtyDirective, never>;
151
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlMarkDirtyDirective, "[rxapFormControlMarkDirty]", never, {}, {}, never, never, true, never>;
152
+ }
153
+
154
+ declare class FormControlMarkPristineDirective {
155
+ private readonly parent;
156
+ onClick(): void;
157
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormControlMarkPristineDirective, never>;
158
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlMarkPristineDirective, "[rxapFormControlMarkPristine]", never, {}, {}, never, never, true, never>;
159
+ }
160
+
161
+ declare class FormControlMarkTouchedDirective {
162
+ private readonly parent;
163
+ onClick(): void;
164
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormControlMarkTouchedDirective, never>;
165
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlMarkTouchedDirective, "[rxapFormControlMarkTouched]", never, {}, {}, never, never, true, never>;
166
+ }
167
+
168
+ declare class FormControlMarkUntouchedDirective {
169
+ private readonly parent;
170
+ onClick(): void;
171
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormControlMarkUntouchedDirective, never>;
172
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlMarkUntouchedDirective, "[rxapFormControlMarkUntouched]", never, {}, {}, never, never, true, never>;
193
173
  }
194
174
 
195
175
  declare class RxapFormGroup<T = any, E extends ValidationErrors = any> extends UntypedFormGroup {
@@ -278,153 +258,6 @@ declare class RxapFormGroup<T = any, E extends ValidationErrors = any> extends U
278
258
  setDisable(disable?: boolean, opts?: ControlEventOptions): void;
279
259
  }
280
260
 
281
- interface InjectableValidator {
282
- validate?: ValidatorFn$1;
283
- asyncValidate?: AsyncValidatorFn$1;
284
- }
285
- /**
286
- * @internal
287
- */
288
- interface _RxapAbstractControlOptions extends AbstractControlOptions$1 {
289
- state?: any | (() => any);
290
- injectValidators?: Array<Type<InjectableValidator> | InjectionToken<InjectableValidator> | AbstractType<InjectableValidator>>;
291
- controlType?: Constructor<RxapFormControl>;
292
- disabled?: boolean;
293
- readonly?: boolean;
294
- }
295
- type RxapAbstractControlOptions<T extends Record<string, any> = Record<string, any>> = _RxapAbstractControlOptions & T;
296
- interface RxapAbstractControlOptionsWithDefinition extends RxapAbstractControlOptions {
297
- definition: Constructor;
298
- }
299
- interface FormDefinition<T = any, E extends object = any, JSON extends Record<string, any> = any> {
300
- rxapFormGroup: RxapFormGroup<T, E>;
301
- /**
302
- * used to access the form definition metadata type save
303
- */
304
- rxapMetadata: FormDefinitionMetadata;
305
- /**
306
- * The Reuse hook is called when the instance is reused.
307
- * And can be used to reset or alter the local state of the instance.
308
- */
309
- rxapReuse?(): void;
310
- /**
311
- * Called to get the value that should be submitted. If not defined
312
- * the value property of the root RxapFormGroup instance will be used
313
- */
314
- getSubmitValue?(): JSON;
315
- /**
316
- * Called to get the value that should be submitted. If not defined
317
- * the value property of the root RxapFormGroup instance will be used
318
- */
319
- toJSON?(): JSON;
320
- }
321
- interface FormDefinitionArray<T> extends Array<T> {
322
- rxapFormArray: RxapFormArray;
323
- }
324
- type FormType<T> = Partial<FormDefinition<T>> & {
325
- [K in keyof T]: T[K] extends (infer U)[] ? FormDefinitionArray<FormType<U>> | FormDefinitionArray<RxapFormControl<U>> | RxapFormControl<T[K]> | RxapFormArray<U> : T[K] extends Record<string, any> ? (FormType<T[K]> & Partial<FormDefinition<T[K]>>) | RxapFormControl<T[K]> : RxapFormControl<NonEmpty<T[K]>>;
326
- };
327
- interface FormOptions extends RxapAbstractControlOptions {
328
- id: string;
329
- }
330
- interface FormDefinitionMetadata extends BaseDefinitionMetadata, FormOptions {
331
- providers?: StaticProvider[];
332
- /**
333
- * true - after 5000ms the form is automatically submitted if valid
334
- * number - after the set ms the is automatically submitted if valid
335
- */
336
- autoSubmit?: boolean | number;
337
- }
338
- type ChangeFn<T = any> = (value: T, emitViewToModelChange: boolean) => void;
339
- type SetValueFn<T = any> = (value: T, options?: ControlOptions) => void;
340
- type FormBuilderFn<T extends (FormDefinition<Data> | FormType<Data>) = FormDefinition, Data = Record<string, any>> = (state: any, options: {
341
- controlId: string;
342
- }) => T | RxapFormControl;
343
- type ControlInsertedFn = (index: number, controlOrDefinition: AbstractControl | FormDefinition) => void;
344
- type ControlRemovedFn = (index: number) => void;
345
- interface FormArrayOptions extends RxapAbstractControlOptions {
346
- builder: FormBuilderFn;
347
- controlId: string;
348
- controlInsertedFn: ControlInsertedFn;
349
- controlRemovedFn: ControlRemovedFn;
350
- }
351
- interface FormGroupOptions extends RxapAbstractControlOptions {
352
- controlId: string;
353
- }
354
-
355
- declare class RxapFormArray<T = any, E extends object = any, Parent extends object = any> extends UntypedFormArray implements AbstractControl<T[]> {
356
- controls: Array<AbstractControl<T>>;
357
- private _readonly;
358
- get readonly(): boolean;
359
- set readonly(value: boolean);
360
- /**
361
- * @internal
362
- */
363
- get rxapFormDefinition(): (FormType<Parent> & FormDefinition<Parent>) | undefined;
364
- get controlPath(): string;
365
- readonly value: T[];
366
- get fullControlPath(): string;
367
- readonly valueChanges: Observable<T[]>;
368
- readonly value$: Observable<T[]>;
369
- readonly status: ControlState;
370
- readonly disabled$: Observable<boolean>;
371
- readonly statusChanges: Observable<ControlState>;
372
- readonly enabled$: Observable<boolean>;
373
- readonly errors: E | null;
374
- readonly status$: Observable<ControlState>;
375
- readonly errors$: Observable<E | null>;
376
- readonly controlId: string;
377
- private readonly touchChanges;
378
- readonly touch$: Observable<boolean>;
379
- private readonly dirtyChanges;
380
- readonly dirty$: Observable<boolean>;
381
- private readonly _builder;
382
- private readonly _controlInsertedFn;
383
- private readonly _controlRemovedFn;
384
- constructor(controls: Array<AbstractControl<T>>, options: FormArrayOptions);
385
- select<R>(mapFn: (state: T[]) => R): Observable<R>;
386
- at(index: number): AbstractControl<T>;
387
- getRawValue(): T[];
388
- insert(index: number, control: AbstractControl<T>): void;
389
- /**
390
- * inserts a new control at the specified index. If the index is undefined
391
- * the new control will be added to the end.
392
- *
393
- * @param index (optional) the index where the control should be created
394
- * @param state (optional) the initial state of the new control
395
- * @param options (optional) ControlEventOptions
396
- */
397
- insertAt(index?: number, state?: T, options?: ControlEventOptions): void;
398
- disabledWhile(observable: Observable<boolean>, options?: ControlOptions): Subscription;
399
- enabledWhile(observable: Observable<boolean>, options?: ControlOptions): Subscription;
400
- mergeValidators(validators: Validator): void;
401
- mergeAsyncValidators(validators: AsyncValidator): void;
402
- markAllAsDirty(): void;
403
- markAllAsPristine(): void;
404
- setValue(valueOrObservable: T[] | Observable<T[]>, options?: ControlEventOptions): Subscription | void;
405
- markAllAsUntouched(): void;
406
- validateOn(observableValidation: Observable<null | object>): Subscription;
407
- hasErrorAndTouched(errorCode: ExtractStrings<E>, path?: ControlPath): boolean;
408
- private _patchValue;
409
- patchValue(valueOrObservable: any, options?: ControlEventOptions): Subscription | void;
410
- hasErrorAndDirty(errorCode: ExtractStrings<E>, path?: ControlPath): boolean;
411
- removeAt(index: number, opts?: ControlEventOptions): void;
412
- setEnable(enable?: boolean, opts?: ControlEventOptions): void;
413
- push(control: AbstractControl<T>, options?: ControlEventOptions): void;
414
- setDisable(disable?: boolean, opts?: ControlEventOptions): void;
415
- setControl(index: number, control: AbstractControl<T>, options?: ControlEventOptions): void;
416
- markAsTouched(opts?: OnlySelf): void;
417
- markAsUntouched(opts?: OnlySelf): void;
418
- markAsPristine(opts?: OnlySelf): void;
419
- markAsDirty(opts?: OnlySelf): void;
420
- reset(value?: T[], options?: ControlEventOptions): void;
421
- setValidators(newValidator: Validator, updateValueAndValidity?: boolean): void;
422
- setAsyncValidators(newValidator: AsyncValidator, updateValueAndValidity?: boolean): void;
423
- hasError(errorCode: ExtractStrings<E>, path?: ControlPath): boolean;
424
- setErrors(errors: Partial<E> | null, opts?: EmitEvent): void;
425
- getError<K extends ExtractStrings<E>>(errorCode: K, path?: ControlPath): E[K] | null;
426
- }
427
-
428
261
  type ValidationErrors<T = ValidationErrors$1> = T;
429
262
  type ValidatorFn<T = any, E = any> = (control: AbstractControl<T>) => ValidationErrors<E> | null;
430
263
  type AsyncValidatorFn<T = any, E = any> = (control: AbstractControl<T>) => Promise<ValidationErrors<E> | null> | Observable<ValidationErrors<E> | null>;
@@ -519,55 +352,212 @@ type ExtractAbstractControl<T, U> = T extends KeyValueControls<any> ? {
519
352
  [K in keyof U]: AbstractControl<U[K]>;
520
353
  } : T;
521
354
 
522
- /**
523
- * @deprecated removed use the rxapControlError or rxapControlErrors directive
524
- */
525
- declare class FormControlErrorDirective implements OnInit, OnDestroy {
526
- private readonly template;
527
- private readonly parent;
528
- private readonly viewContainerRef;
529
- name: string;
530
- errorKey: string;
531
- private subscription?;
532
- constructor(template: TemplateRef<{
533
- $implicit: ValidationErrors;
534
- }>, parent: ControlContainer, viewContainerRef: ViewContainerRef);
535
- ngOnInit(): void;
536
- ngOnDestroy(): void;
537
- static ɵfac: i0.ɵɵFactoryDeclaration<FormControlErrorDirective, [null, { host: true; skipSelf: true; }, null]>;
538
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlErrorDirective, "[rxapFormControlError]", never, { "name": { "alias": "rxapFormControlErrorFrom"; "required": true; }; "errorKey": { "alias": "rxapFormControlErrorIf"; "required": true; }; }, {}, never, never, true, never>;
539
- }
540
-
541
- declare class FormControlMarkDirtyDirective {
542
- private readonly parent;
543
- constructor(parent: ControlContainer);
544
- onClick(): void;
545
- static ɵfac: i0.ɵɵFactoryDeclaration<FormControlMarkDirtyDirective, never>;
546
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlMarkDirtyDirective, "[rxapFormControlMarkDirty]", never, {}, {}, never, never, true, never>;
355
+ declare class RxapFormArray<T = any, E extends object = any, Parent extends object = any> extends UntypedFormArray implements AbstractControl<T[]> {
356
+ controls: Array<AbstractControl<T>>;
357
+ private _readonly;
358
+ get readonly(): boolean;
359
+ set readonly(value: boolean);
360
+ /**
361
+ * @internal
362
+ */
363
+ get rxapFormDefinition(): (FormType<Parent> & FormDefinition<Parent>) | undefined;
364
+ get controlPath(): string;
365
+ readonly value: T[];
366
+ get fullControlPath(): string;
367
+ readonly valueChanges: Observable<T[]>;
368
+ readonly value$: Observable<T[]>;
369
+ readonly status: ControlState;
370
+ readonly disabled$: Observable<boolean>;
371
+ readonly statusChanges: Observable<ControlState>;
372
+ readonly enabled$: Observable<boolean>;
373
+ readonly errors: E | null;
374
+ readonly status$: Observable<ControlState>;
375
+ readonly errors$: Observable<E | null>;
376
+ readonly controlId: string;
377
+ private readonly touchChanges;
378
+ readonly touch$: Observable<boolean>;
379
+ private readonly dirtyChanges;
380
+ readonly dirty$: Observable<boolean>;
381
+ private readonly _builder;
382
+ private readonly _controlInsertedFn;
383
+ private readonly _controlRemovedFn;
384
+ constructor(controls: Array<AbstractControl<T>>, options: FormArrayOptions);
385
+ select<R>(mapFn: (state: T[]) => R): Observable<R>;
386
+ at(index: number): AbstractControl<T>;
387
+ getRawValue(): T[];
388
+ insert(index: number, control: AbstractControl<T>): void;
389
+ /**
390
+ * inserts a new control at the specified index. If the index is undefined
391
+ * the new control will be added to the end.
392
+ *
393
+ * @param index (optional) the index where the control should be created
394
+ * @param state (optional) the initial state of the new control
395
+ * @param options (optional) ControlEventOptions
396
+ */
397
+ insertAt(index?: number, state?: T, options?: ControlEventOptions): void;
398
+ disabledWhile(observable: Observable<boolean>, options?: ControlOptions): Subscription;
399
+ enabledWhile(observable: Observable<boolean>, options?: ControlOptions): Subscription;
400
+ mergeValidators(validators: Validator): void;
401
+ mergeAsyncValidators(validators: AsyncValidator): void;
402
+ markAllAsDirty(): void;
403
+ markAllAsPristine(): void;
404
+ setValue(valueOrObservable: T[] | Observable<T[]>, options?: ControlEventOptions): Subscription | void;
405
+ markAllAsUntouched(): void;
406
+ validateOn(observableValidation: Observable<null | object>): Subscription;
407
+ hasErrorAndTouched(errorCode: ExtractStrings<E>, path?: ControlPath): boolean;
408
+ private _patchValue;
409
+ patchValue(valueOrObservable: any, options?: ControlEventOptions): Subscription | void;
410
+ hasErrorAndDirty(errorCode: ExtractStrings<E>, path?: ControlPath): boolean;
411
+ removeAt(index: number, opts?: ControlEventOptions): void;
412
+ setEnable(enable?: boolean, opts?: ControlEventOptions): void;
413
+ push(control: AbstractControl<T>, options?: ControlEventOptions): void;
414
+ setDisable(disable?: boolean, opts?: ControlEventOptions): void;
415
+ setControl(index: number, control: AbstractControl<T>, options?: ControlEventOptions): void;
416
+ markAsTouched(opts?: OnlySelf): void;
417
+ markAsUntouched(opts?: OnlySelf): void;
418
+ markAsPristine(opts?: OnlySelf): void;
419
+ markAsDirty(opts?: OnlySelf): void;
420
+ reset(value?: T[], options?: ControlEventOptions): void;
421
+ setValidators(newValidator: Validator, updateValueAndValidity?: boolean): void;
422
+ setAsyncValidators(newValidator: AsyncValidator, updateValueAndValidity?: boolean): void;
423
+ hasError(errorCode: ExtractStrings<E>, path?: ControlPath): boolean;
424
+ setErrors(errors: Partial<E> | null, opts?: EmitEvent): void;
425
+ getError<K extends ExtractStrings<E>>(errorCode: K, path?: ControlPath): E[K] | null;
547
426
  }
548
427
 
549
- declare class FormControlMarkPristineDirective {
550
- private readonly parent;
551
- constructor(parent: ControlContainer);
552
- onClick(): void;
553
- static ɵfac: i0.ɵɵFactoryDeclaration<FormControlMarkPristineDirective, never>;
554
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlMarkPristineDirective, "[rxapFormControlMarkPristine]", never, {}, {}, never, never, true, never>;
428
+ interface InjectableValidator {
429
+ validate?: ValidatorFn$1;
430
+ asyncValidate?: AsyncValidatorFn$1;
555
431
  }
556
-
557
- declare class FormControlMarkTouchedDirective {
558
- private readonly parent;
559
- constructor(parent: ControlContainer);
560
- onClick(): void;
561
- static ɵfac: i0.ɵɵFactoryDeclaration<FormControlMarkTouchedDirective, never>;
562
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlMarkTouchedDirective, "[rxapFormControlMarkTouched]", never, {}, {}, never, never, true, never>;
432
+ /**
433
+ * @internal
434
+ */
435
+ interface _RxapAbstractControlOptions extends AbstractControlOptions$1 {
436
+ state?: any | (() => any);
437
+ injectValidators?: Array<Type<InjectableValidator> | InjectionToken<InjectableValidator> | AbstractType<InjectableValidator>>;
438
+ controlType?: Constructor<RxapFormControl>;
439
+ disabled?: boolean;
440
+ readonly?: boolean;
441
+ }
442
+ type RxapAbstractControlOptions<T extends Record<string, any> = Record<string, any>> = _RxapAbstractControlOptions & T;
443
+ interface RxapAbstractControlOptionsWithDefinition extends RxapAbstractControlOptions {
444
+ definition: Constructor;
445
+ }
446
+ interface FormDefinition<T = any, E extends object = any, JSON extends Record<string, any> = any> {
447
+ rxapFormGroup: RxapFormGroup<T, E>;
448
+ /**
449
+ * used to access the form definition metadata type save
450
+ */
451
+ rxapMetadata: FormDefinitionMetadata;
452
+ /**
453
+ * The Reuse hook is called when the instance is reused.
454
+ * And can be used to reset or alter the local state of the instance.
455
+ */
456
+ rxapReuse?(): void;
457
+ /**
458
+ * Called to get the value that should be submitted. If not defined
459
+ * the value property of the root RxapFormGroup instance will be used
460
+ */
461
+ getSubmitValue?(): JSON;
462
+ /**
463
+ * Called to get the value that should be submitted. If not defined
464
+ * the value property of the root RxapFormGroup instance will be used
465
+ */
466
+ toJSON?(): JSON;
467
+ }
468
+ interface FormDefinitionArray<T> extends Array<T> {
469
+ rxapFormArray: RxapFormArray;
470
+ }
471
+ type FormType<T> = Partial<FormDefinition<T>> & {
472
+ [K in keyof T]: T[K] extends (infer U)[] ? FormDefinitionArray<FormType<U>> | FormDefinitionArray<RxapFormControl<U>> | RxapFormControl<T[K]> | RxapFormArray<U> : T[K] extends Record<string, any> ? (FormType<T[K]> & Partial<FormDefinition<T[K]>>) | RxapFormControl<T[K]> : RxapFormControl<NonEmpty<T[K]>>;
473
+ };
474
+ interface FormOptions extends RxapAbstractControlOptions {
475
+ id: string;
476
+ }
477
+ interface FormDefinitionMetadata extends BaseDefinitionMetadata, FormOptions {
478
+ providers?: StaticProvider[];
479
+ /**
480
+ * true - after 5000ms the form is automatically submitted if valid
481
+ * number - after the set ms the is automatically submitted if valid
482
+ */
483
+ autoSubmit?: boolean | number;
484
+ }
485
+ type ChangeFn<T = any> = (value: T, emitViewToModelChange: boolean) => void;
486
+ type SetValueFn<T = any> = (value: T, options?: ControlOptions) => void;
487
+ type FormBuilderFn<T extends (FormDefinition<Data> | FormType<Data>) = FormDefinition, Data = Record<string, any>> = (state: any, options: {
488
+ controlId: string;
489
+ }) => T | RxapFormControl;
490
+ type ControlInsertedFn = (index: number, controlOrDefinition: AbstractControl | FormDefinition) => void;
491
+ type ControlRemovedFn = (index: number) => void;
492
+ interface FormArrayOptions extends RxapAbstractControlOptions {
493
+ builder: FormBuilderFn;
494
+ controlId: string;
495
+ controlInsertedFn: ControlInsertedFn;
496
+ controlRemovedFn: ControlRemovedFn;
497
+ }
498
+ interface FormGroupOptions extends RxapAbstractControlOptions {
499
+ controlId: string;
563
500
  }
564
501
 
565
- declare class FormControlMarkUntouchedDirective {
566
- private readonly parent;
567
- constructor(parent: ControlContainer);
568
- onClick(): void;
569
- static ɵfac: i0.ɵɵFactoryDeclaration<FormControlMarkUntouchedDirective, never>;
570
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlMarkUntouchedDirective, "[rxapFormControlMarkUntouched]", never, {}, {}, never, never, true, never>;
502
+ declare class RxapFormControl<T = any, E extends object = any, Parent extends object = any> extends UntypedFormControl {
503
+ /**
504
+ * @internal
505
+ */
506
+ get rxapFormDefinition(): (FormType<Parent> & FormDefinition<Parent>) | undefined;
507
+ readonly value: T;
508
+ readonly errors: E | null;
509
+ readonly valueChanges: Observable<T>;
510
+ readonly status: ControlState;
511
+ readonly statusChanges: Observable<ControlState>;
512
+ get initialState(): OrBoxedValue<T>;
513
+ protected _initialState: OrBoxedValue<T>;
514
+ private _readonly;
515
+ private touchChanges;
516
+ private dirtyChanges;
517
+ readonly touch$: Observable<boolean>;
518
+ readonly dirty$: Observable<boolean>;
519
+ readonly value$: Observable<T>;
520
+ readonly disabled$: Observable<boolean>;
521
+ readonly enabled$: Observable<boolean>;
522
+ get readonly(): boolean;
523
+ set readonly(value: boolean);
524
+ readonly status$: Observable<ControlState>;
525
+ readonly errors$: Observable<E | null>;
526
+ readonly controlId: string;
527
+ private readonly _onSetValue;
528
+ readonly stateChanges: Subject<void>;
529
+ readonly readonly$: Observable<boolean>;
530
+ get controlPath(): string;
531
+ get fullControlPath(): string;
532
+ constructor(formState: OrBoxedValue<T>, options: RxapAbstractControlOptions & {
533
+ controlId: string;
534
+ });
535
+ setValue(valueOrObservable: Observable<T>, options?: ControlOptions): Subscription;
536
+ setValue(valueOrObservable: T, options?: ControlOptions): void;
537
+ patchValue(valueOrObservable: Observable<T>, options?: ControlOptions): Subscription;
538
+ patchValue(valueOrObservable: T, options?: ControlOptions): void;
539
+ disabledWhile(observable: Observable<boolean>, options?: ControlOptions): Subscription;
540
+ enabledWhile(observable: Observable<boolean>, options?: ControlOptions): Subscription;
541
+ mergeValidators(validators: Validator): void;
542
+ mergeAsyncValidators(validators: AsyncValidator): void;
543
+ markAsTouched(opts?: OnlySelf): void;
544
+ markAsUntouched(opts?: OnlySelf): void;
545
+ markAsPristine(opts?: OnlySelf): void;
546
+ markAsDirty(opts?: OnlySelf): void;
547
+ markAllAsDirty(): void;
548
+ reset(formState?: OrBoxedValue<T>, options?: ControlEventOptions): void;
549
+ setValidators(newValidator: Validator, updateValueAndValidity?: boolean): void;
550
+ setAsyncValidators(newValidator: AsyncValidator, updateValueAndValidity?: boolean): void;
551
+ validateOn(observableValidation: Observable<null | object>): Subscription;
552
+ getError<K extends ExtractStrings<E>>(errorCode: K): E[K] | null;
553
+ hasError<K extends ExtractStrings<E>>(errorCode: K): boolean;
554
+ setErrors(errors: Partial<E> | null, opts?: EmitEvent): void;
555
+ setError(key: string, value: any, opts?: EmitEvent): void;
556
+ hasErrorAndTouched(error: ExtractStrings<E>): boolean;
557
+ hasErrorAndDirty(error: ExtractStrings<E>): boolean;
558
+ setEnable(enable?: boolean, opts?: ControlEventOptions): void;
559
+ setDisable(disable?: boolean, opts?: ControlEventOptions): void;
560
+ registerOnSetValue(setValueFn: SetValueFn<T>): void;
571
561
  }
572
562
 
573
563
  /**
@@ -578,9 +568,8 @@ declare class FormControlMarkUntouchedDirective {
578
568
  */
579
569
  declare class FormControlNameDirective extends FormControlName {
580
570
  readonly control: RxapFormControl;
581
- name: string | number | null;
582
- constructor(parent: ControlContainer, validators: Array<Validator$1 | ValidatorFn$1>, asyncValidators: Array<AsyncValidator$1 | AsyncValidatorFn$1>, valueAccessors: ControlValueAccessor$1[]);
583
- static ɵfac: i0.ɵɵFactoryDeclaration<FormControlNameDirective, [{ optional: true; skipSelf: true; }, { optional: true; self: true; }, { optional: true; self: true; }, { optional: true; self: true; }]>;
571
+ constructor();
572
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormControlNameDirective, never>;
584
573
  static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlNameDirective, "[rxapFormControlName]", ["rxapFormControl"], { "name": { "alias": "rxapFormControlName"; "required": false; }; }, {}, never, never, true, never>;
585
574
  }
586
575
 
@@ -591,13 +580,105 @@ declare class FormControlNameDirective extends FormControlName {
591
580
  * @deprecated use the ParentControlContainerDirective
592
581
  */
593
582
  declare class FormGroupNameDirective extends FormGroupName {
594
- name: string | number | null;
595
583
  get control(): RxapFormGroup;
596
- constructor(parent: ControlContainer, validators: any[], asyncValidators: any[]);
597
- static ɵfac: i0.ɵɵFactoryDeclaration<FormGroupNameDirective, [{ optional: true; skipSelf: true; }, { optional: true; self: true; }, { optional: true; self: true; }]>;
584
+ constructor();
585
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormGroupNameDirective, never>;
598
586
  static ɵdir: i0.ɵɵDirectiveDeclaration<FormGroupNameDirective, "[rxapFormGroupName]", ["rxapFormGroup"], { "name": { "alias": "rxapFormGroupName"; "required": false; }; }, {}, never, never, true, never>;
599
587
  }
600
588
 
589
+ declare class FormLoadedDirective {
590
+ private readonly formDirective;
591
+ private readonly template;
592
+ private readonly viewContainerRef;
593
+ private readonly state;
594
+ constructor();
595
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormLoadedDirective, never>;
596
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormLoadedDirective, "[rxapFormLoaded]", never, {}, {}, never, never, true, never>;
597
+ }
598
+
599
+ declare class FormLoadingErrorDirective {
600
+ private readonly formDirective;
601
+ private readonly template;
602
+ private readonly viewContainerRef;
603
+ private readonly error;
604
+ constructor();
605
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormLoadingErrorDirective, never>;
606
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormLoadingErrorDirective, "[rxapFormLoadingError]", never, {}, {}, never, never, true, never>;
607
+ }
608
+
609
+ declare class FormLoadingDirective {
610
+ private readonly formDirective;
611
+ private readonly template;
612
+ private readonly viewContainerRef;
613
+ private readonly state;
614
+ constructor();
615
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormLoadingDirective, never>;
616
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormLoadingDirective, "[rxapFormLoading]", never, {}, {}, never, never, true, never>;
617
+ }
618
+
619
+ declare class FormResetDirective extends ConfirmClick {
620
+ private readonly formDirective;
621
+ readonly type: i0.InputSignal<string>;
622
+ protected execute(): void;
623
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormResetDirective, never>;
624
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormResetDirective, "[rxapFormReset]", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
625
+ }
626
+
627
+ declare class FormSubmitFailedDirective {
628
+ private readonly formDirective;
629
+ private readonly template;
630
+ private readonly viewContainerRef;
631
+ private readonly error;
632
+ constructor();
633
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormSubmitFailedDirective, never>;
634
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormSubmitFailedDirective, "[rxapFormSubmitFailed]", never, {}, {}, never, never, true, never>;
635
+ }
636
+
637
+ declare class FormSubmitInvalidDirective {
638
+ private readonly formDirective;
639
+ private readonly template;
640
+ private readonly viewContainerRef;
641
+ constructor();
642
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormSubmitInvalidDirective, never>;
643
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormSubmitInvalidDirective, "[rxapFormSubmitInvalid]", never, {}, {}, never, never, true, never>;
644
+ }
645
+
646
+ declare class FormSubmitSuccessfulDirective {
647
+ private readonly formDirective;
648
+ private readonly template;
649
+ private readonly viewContainerRef;
650
+ constructor();
651
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormSubmitSuccessfulDirective, never>;
652
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormSubmitSuccessfulDirective, "[rxapFormSubmitSuccessful]", never, {}, {}, never, never, true, never>;
653
+ }
654
+
655
+ declare class FormSubmitDirective extends ConfirmClick implements OnDestroy {
656
+ private readonly formDirective;
657
+ private readonly router;
658
+ readonly type: i0.InputSignal<"submit" | "reset" | "button">;
659
+ readonly resetAfterSubmit: i0.InputSignalWithTransform<boolean | "", boolean>;
660
+ readonly navigateAfterSubmit: i0.InputSignal<string[] | undefined>;
661
+ readonly afterSubmit: i0.OutputEmitterRef<any>;
662
+ readonly disableWhileSubmitting: i0.InputSignal<boolean>;
663
+ readonly submitting: i0.Signal<boolean>;
664
+ readonly disabled: i0.Signal<boolean>;
665
+ private subscription?;
666
+ protected execute(): void;
667
+ ngOnDestroy(): void;
668
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormSubmitDirective, never>;
669
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormSubmitDirective, "[rxapFormSubmit]", ["rxapFormSubmit"], { "type": { "alias": "type"; "required": false; "isSignal": true; }; "resetAfterSubmit": { "alias": "resetAfterSubmit"; "required": false; "isSignal": true; }; "navigateAfterSubmit": { "alias": "navigateAfterSubmit"; "required": false; "isSignal": true; }; "disableWhileSubmitting": { "alias": "disableWhileSubmitting"; "required": false; "isSignal": true; }; }, { "afterSubmit": "afterSubmit"; }, never, never, true, never>;
670
+ }
671
+
672
+ declare class FormSubmittingDirective {
673
+ private readonly formDirective;
674
+ private readonly template;
675
+ private readonly viewContainerRef;
676
+ private readonly state;
677
+ constructor();
678
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormSubmittingDirective, never>;
679
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormSubmittingDirective, "[rxapFormSubmitting]", never, {}, {}, never, never, true, never>;
680
+ }
681
+
601
682
  declare class FormArrayControlManager<T extends FormDefinition> {
602
683
  private readonly form;
603
684
  private readonly controlId;
@@ -721,12 +802,32 @@ declare function ToFormMethod<T, FormMethod extends Method<R, P>, R, P>(call: (v
721
802
  declare function ToFormSubmitMethod<T>(call: (value: T) => boolean): FormSubmitMethod<T>;
722
803
 
723
804
  declare class FormDirective<T = any> extends FormGroupDirective implements OnInit, OnChanges, OnDestroy {
805
+ /**
806
+ * @deprecated the directive does not rely on manual change detection anymore
807
+ */
724
808
  readonly cdr: ChangeDetectorRef;
725
- protected readonly formDefinitionBuilder: RxapFormBuilder | null;
809
+ protected readonly formDefinitionBuilder: RxapFormBuilder<any, _rxap_forms.FormType<any>> | null;
726
810
  protected readonly loadingIndicatorService: LoadingIndicatorService | null;
811
+ private readonly injectedSubmitMethod;
812
+ private readonly injectedLoadMethod;
813
+ private readonly injectedLoadFailedMethod;
814
+ private readonly injectedLoadSuccessfulMethod;
815
+ private readonly injectedSubmitFailedMethod;
816
+ private readonly injectedSubmitSuccessfulMethod;
817
+ private readonly injectedFormDefinition;
818
+ private readonly injectedContext;
819
+ private readonly injectedInitial;
727
820
  form: RxapFormGroup<T>;
728
- readonly initial: i0.ModelSignal<T | null>;
729
- readonly context: i0.ModelSignal<unknown>;
821
+ readonly initial: i0.InputSignal<T | null>;
822
+ readonly context: i0.InputSignal<unknown>;
823
+ /**
824
+ * The initial value: the input value or, as fallback, the value provided by the RXAP_FORM_INITIAL_STATE token
825
+ */
826
+ protected readonly currentInitial: i0.Signal<T | null>;
827
+ /**
828
+ * The context: the input value or, as fallback, the value provided by the RXAP_FORM_CONTEXT token
829
+ */
830
+ protected readonly currentContext: i0.Signal<unknown>;
730
831
  /**
731
832
  * Emits when the submit method is executed without errors. The result of the
732
833
  * submit method is passed as event object.
@@ -734,30 +835,44 @@ declare class FormDirective<T = any> extends FormGroupDirective implements OnIni
734
835
  * If no submit method is defined then emit after the submit button
735
836
  * is clicked.
736
837
  */
737
- rxapSubmit: EventEmitter<any>;
738
- invalidSubmit: EventEmitter<Record<string, any>>;
739
- submitSuccessful$: EventEmitter<any>;
740
- get submitting(): boolean;
741
- get submitError(): Error | null;
742
- get loading(): boolean;
743
- get loaded(): boolean;
744
- get loadingError(): Error | null;
745
- set useFormDefinition(value: FormDefinition<T> | '');
746
- get formDefinition(): FormDefinition<T>;
838
+ readonly rxapSubmit: i0.OutputEmitterRef<any>;
839
+ readonly invalidSubmit: i0.OutputEmitterRef<Record<string, any>>;
840
+ readonly submitSuccessful$: i0.OutputEmitterRef<any>;
747
841
  readonly submitting$: ToggleSubject;
748
842
  readonly submitError$: BehaviorSubject<Error | null>;
749
843
  readonly loading$: ToggleSubject;
750
844
  readonly loaded$: ToggleSubject;
751
845
  readonly loadingError$: BehaviorSubject<Error | null>;
846
+ readonly submitting: i0.Signal<boolean>;
847
+ readonly submitError: i0.Signal<Error | null>;
848
+ readonly loading: i0.Signal<boolean>;
849
+ readonly loaded: i0.Signal<boolean>;
850
+ readonly loadingError: i0.Signal<Error | null>;
851
+ /**
852
+ * The form definition instance. Overrides the form definition provided by the
853
+ * RXAP_FORM_DEFINITION token or the RXAP_FORM_DEFINITION_BUILDER
854
+ */
855
+ readonly useFormDefinition: i0.InputSignal<"" | FormDefinition<T, any, any>>;
856
+ get formDefinition(): FormDefinition<T>;
752
857
  protected _formDefinition: FormDefinition<T>;
753
- submitMethod: FormSubmitMethod<any> | null;
754
- loadMethod: FormLoadMethod | null;
755
- loadFailedMethod: FormLoadFailedMethod | null;
756
- loadSuccessfulMethod: FormLoadSuccessfulMethod | null;
757
- submitFailedMethod: FormSubmitFailedMethod | null;
758
- submitSuccessfulMethod: FormSubmitSuccessfulMethod | null;
858
+ readonly submitMethod: i0.InputSignal<FormSubmitMethod<any, any, any> | null>;
859
+ readonly loadMethod: i0.InputSignal<FormLoadMethod<any, any, any> | null>;
860
+ readonly loadFailedMethod: i0.InputSignal<FormLoadFailedMethod | null>;
861
+ readonly loadSuccessfulMethod: i0.InputSignal<FormLoadSuccessfulMethod<any> | null>;
862
+ readonly submitFailedMethod: i0.InputSignal<FormSubmitFailedMethod | null>;
863
+ readonly submitSuccessfulMethod: i0.InputSignal<FormSubmitSuccessfulMethod<any> | null>;
864
+ protected readonly currentSubmitMethod: i0.Signal<FormSubmitMethod<any, any, any> | null>;
865
+ protected readonly currentLoadMethod: i0.Signal<FormLoadMethod<any, any, any> | null>;
866
+ protected readonly currentLoadFailedMethod: i0.Signal<FormLoadFailedMethod | null>;
867
+ protected readonly currentLoadSuccessfulMethod: i0.Signal<FormLoadSuccessfulMethod<any> | null>;
868
+ protected readonly currentSubmitFailedMethod: i0.Signal<FormSubmitFailedMethod | null>;
869
+ protected readonly currentSubmitSuccessfulMethod: i0.Signal<FormSubmitSuccessfulMethod<any> | null>;
759
870
  private _autoSubmitSubscription;
760
- constructor(cdr: ChangeDetectorRef, formDefinition?: FormDefinition | null, submitMethod?: FormSubmitMethod<any> | null, loadMethod?: FormLoadMethod | null, loadFailedMethod?: FormLoadFailedMethod | null, loadSuccessfulMethod?: FormLoadSuccessfulMethod | null, submitFailedMethod?: FormSubmitFailedMethod | null, submitSuccessfulMethod?: FormSubmitSuccessfulMethod | null, formDefinitionBuilder?: RxapFormBuilder | null, loadingIndicatorService?: LoadingIndicatorService | null, context?: unknown, initial?: T | null);
871
+ constructor();
872
+ /**
873
+ * Applies the form definition passed with the rxapForm input
874
+ */
875
+ private applyFormDefinitionInput;
761
876
  ngOnChanges(changes: SimpleChanges): void;
762
877
  ngOnInit(): void;
763
878
  onSubmit($event: Event): boolean;
@@ -769,127 +884,8 @@ declare class FormDirective<T = any> extends FormGroupDirective implements OnIni
769
884
  protected submitFailed(error: Error): void;
770
885
  protected submitSuccessful(value: any): void;
771
886
  ngOnDestroy(): void;
772
- static ɵfac: i0.ɵɵFactoryDeclaration<FormDirective<any>, [null, { optional: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
773
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormDirective<any>, "form[rxapForm]:not([formGroup]):not([ngForm]),rxap-form,form[rxapForm]", ["rxapForm"], { "initial": { "alias": "initial"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; "useFormDefinition": { "alias": "rxapForm"; "required": false; }; "submitMethod": { "alias": "submitMethod"; "required": false; }; "loadMethod": { "alias": "loadMethod"; "required": false; }; "loadFailedMethod": { "alias": "loadFailedMethod"; "required": false; }; "loadSuccessfulMethod": { "alias": "loadSuccessfulMethod"; "required": false; }; "submitFailedMethod": { "alias": "submitFailedMethod"; "required": false; }; "submitSuccessfulMethod": { "alias": "submitSuccessfulMethod"; "required": false; }; }, { "ngSubmit": "ngSubmit"; "initial": "initialChange"; "context": "contextChange"; "rxapSubmit": "rxapSubmit"; "invalidSubmit": "invalidSubmit"; "submitSuccessful$": "submitSuccessful"; }, never, never, true, never>;
774
- }
775
-
776
- declare class FormLoadedDirective implements AfterViewInit, OnDestroy {
777
- private readonly formDirective;
778
- private readonly template;
779
- private readonly viewContainerRef;
780
- private subscription?;
781
- constructor(formDirective: FormDirective, template: TemplateRef<void>, viewContainerRef: ViewContainerRef);
782
- ngAfterViewInit(): void;
783
- ngOnDestroy(): void;
784
- static ɵfac: i0.ɵɵFactoryDeclaration<FormLoadedDirective, never>;
785
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormLoadedDirective, "[rxapFormLoaded]", never, {}, {}, never, never, true, never>;
786
- }
787
-
788
- declare class FormLoadingErrorDirective implements AfterViewInit, OnDestroy {
789
- private readonly formDirective;
790
- private readonly template;
791
- private readonly viewContainerRef;
792
- private subscription?;
793
- constructor(formDirective: FormDirective, template: TemplateRef<{
794
- $implicit: Error;
795
- }>, viewContainerRef: ViewContainerRef);
796
- ngAfterViewInit(): void;
797
- ngOnDestroy(): void;
798
- static ɵfac: i0.ɵɵFactoryDeclaration<FormLoadingErrorDirective, never>;
799
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormLoadingErrorDirective, "[rxapFormLoadingError]", never, {}, {}, never, never, true, never>;
800
- }
801
-
802
- declare class FormLoadingDirective implements AfterViewInit, OnDestroy {
803
- private readonly formDirective;
804
- private readonly template;
805
- private readonly viewContainerRef;
806
- private subscription?;
807
- constructor(formDirective: FormDirective, template: TemplateRef<void>, viewContainerRef: ViewContainerRef);
808
- ngAfterViewInit(): void;
809
- ngOnDestroy(): void;
810
- static ɵfac: i0.ɵɵFactoryDeclaration<FormLoadingDirective, never>;
811
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormLoadingDirective, "[rxapFormLoading]", never, {}, {}, never, never, true, never>;
812
- }
813
-
814
- declare class FormResetDirective extends ConfirmClick {
815
- private readonly formDirective;
816
- type: string;
817
- constructor(formDirective: FormDirective);
818
- protected execute(): void;
819
- static ɵfac: i0.ɵɵFactoryDeclaration<FormResetDirective, never>;
820
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormResetDirective, "[rxapFormReset]", never, { "type": { "alias": "type"; "required": false; }; }, {}, never, never, true, never>;
821
- }
822
-
823
- declare class FormSubmitFailedDirective implements AfterViewInit, OnDestroy {
824
- private readonly formDirective;
825
- private readonly template;
826
- private readonly viewContainerRef;
827
- private subscription?;
828
- constructor(formDirective: FormDirective, template: TemplateRef<{
829
- $implicit: Error;
830
- }>, viewContainerRef: ViewContainerRef);
831
- ngAfterViewInit(): void;
832
- ngOnDestroy(): void;
833
- static ɵfac: i0.ɵɵFactoryDeclaration<FormSubmitFailedDirective, never>;
834
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormSubmitFailedDirective, "[rxapFormSubmitFailed]", never, {}, {}, never, never, true, never>;
835
- }
836
-
837
- declare class FormSubmitInvalidDirective implements AfterViewInit, OnDestroy {
838
- private readonly formDirective;
839
- private readonly template;
840
- private readonly viewContainerRef;
841
- private subscription?;
842
- constructor(formDirective: FormDirective, template: TemplateRef<{
843
- $implicit: any;
844
- }>, viewContainerRef: ViewContainerRef);
845
- ngAfterViewInit(): void;
846
- ngOnDestroy(): void;
847
- static ɵfac: i0.ɵɵFactoryDeclaration<FormSubmitInvalidDirective, never>;
848
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormSubmitInvalidDirective, "[rxapFormSubmitInvalid]", never, {}, {}, never, never, true, never>;
849
- }
850
-
851
- declare class FormSubmitSuccessfulDirective implements AfterViewInit, OnDestroy {
852
- private readonly formDirective;
853
- private readonly template;
854
- private readonly viewContainerRef;
855
- private subscription?;
856
- constructor(formDirective: FormDirective, template: TemplateRef<{
857
- $implicit: any;
858
- }>, viewContainerRef: ViewContainerRef);
859
- ngAfterViewInit(): void;
860
- ngOnDestroy(): void;
861
- static ɵfac: i0.ɵɵFactoryDeclaration<FormSubmitSuccessfulDirective, never>;
862
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormSubmitSuccessfulDirective, "[rxapFormSubmitSuccessful]", never, {}, {}, never, never, true, never>;
863
- }
864
-
865
- declare class FormSubmitDirective extends ConfirmClick implements OnDestroy {
866
- private readonly formDirective;
867
- private readonly router;
868
- type: i0.InputSignal<"submit" | "reset" | "button">;
869
- resetAfterSubmit: i0.InputSignalWithTransform<boolean | "", boolean>;
870
- navigateAfterSubmit: i0.InputSignal<string[] | undefined>;
871
- afterSubmit: i0.OutputEmitterRef<any>;
872
- disableWhileSubmitting: i0.InputSignal<boolean>;
873
- submitting: i0.Signal<boolean>;
874
- disabled: i0.Signal<boolean>;
875
- private subscription?;
876
- constructor(formDirective: FormDirective, router?: Router | null);
877
- protected execute(): void;
878
- ngOnDestroy(): void;
879
- static ɵfac: i0.ɵɵFactoryDeclaration<FormSubmitDirective, [null, { optional: true; }]>;
880
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormSubmitDirective, "[rxapFormSubmit]", ["rxapFormSubmit"], { "type": { "alias": "type"; "required": false; "isSignal": true; }; "resetAfterSubmit": { "alias": "resetAfterSubmit"; "required": false; "isSignal": true; }; "navigateAfterSubmit": { "alias": "navigateAfterSubmit"; "required": false; "isSignal": true; }; "disableWhileSubmitting": { "alias": "disableWhileSubmitting"; "required": false; "isSignal": true; }; }, { "afterSubmit": "afterSubmit"; }, never, never, true, never>;
881
- }
882
-
883
- declare class FormSubmittingDirective implements AfterViewInit, OnDestroy {
884
- private readonly formDirective;
885
- private readonly template;
886
- private readonly viewContainerRef;
887
- private subscription?;
888
- constructor(formDirective: FormDirective, template: TemplateRef<void>, viewContainerRef: ViewContainerRef);
889
- ngAfterViewInit(): void;
890
- ngOnDestroy(): void;
891
- static ɵfac: i0.ɵɵFactoryDeclaration<FormSubmittingDirective, never>;
892
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormSubmittingDirective, "[rxapFormSubmitting]", never, {}, {}, never, never, true, never>;
887
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormDirective<any>, never>;
888
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormDirective<any>, "form[rxapForm]:not([formGroup]):not([ngForm]),rxap-form,form[rxapForm]", ["rxapForm"], { "initial": { "alias": "initial"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; "useFormDefinition": { "alias": "rxapForm"; "required": false; "isSignal": true; }; "submitMethod": { "alias": "submitMethod"; "required": false; "isSignal": true; }; "loadMethod": { "alias": "loadMethod"; "required": false; "isSignal": true; }; "loadFailedMethod": { "alias": "loadFailedMethod"; "required": false; "isSignal": true; }; "loadSuccessfulMethod": { "alias": "loadSuccessfulMethod"; "required": false; "isSignal": true; }; "submitFailedMethod": { "alias": "submitFailedMethod"; "required": false; "isSignal": true; }; "submitSuccessfulMethod": { "alias": "submitSuccessfulMethod"; "required": false; "isSignal": true; }; }, { "ngSubmit": "ngSubmit"; "rxapSubmit": "rxapSubmit"; "invalidSubmit": "invalidSubmit"; "submitSuccessful$": "submitSuccessful"; }, never, never, true, never>;
893
889
  }
894
890
 
895
891
  declare class ParentControlContainerDirective {
@@ -897,12 +893,6 @@ declare class ParentControlContainerDirective {
897
893
  static ɵdir: i0.ɵɵDirectiveDeclaration<ParentControlContainerDirective, "[formControlName][parentControlContainer],[formControlGroup][parentControlContainer]", never, {}, {}, never, never, true, never>;
898
894
  }
899
895
 
900
- declare class RxapFormsModule {
901
- static ɵfac: i0.ɵɵFactoryDeclaration<RxapFormsModule, never>;
902
- static ɵmod: i0.ɵɵNgModuleDeclaration<RxapFormsModule, never, [typeof FormDirective, typeof FormSubmitFailedDirective, typeof FormLoadingDirective, typeof FormSubmittingDirective, typeof FormLoadingErrorDirective, typeof FormLoadedDirective, typeof FormControlErrorDirective, typeof FormControlMarkDirtyDirective, typeof FormControlMarkTouchedDirective, typeof FormControlMarkUntouchedDirective, typeof FormControlMarkPristineDirective, typeof FormSubmitDirective, typeof FormGroupNameDirective, typeof FormControlNameDirective, typeof ParentControlContainerDirective, typeof FormSubmitSuccessfulDirective, typeof FormSubmitInvalidDirective], [typeof FormDirective, typeof FormSubmitFailedDirective, typeof FormLoadingDirective, typeof FormSubmittingDirective, typeof FormLoadingErrorDirective, typeof FormLoadedDirective, typeof FormControlErrorDirective, typeof FormControlMarkDirtyDirective, typeof FormControlMarkTouchedDirective, typeof FormControlMarkUntouchedDirective, typeof FormControlMarkPristineDirective, typeof FormSubmitDirective, typeof FormGroupNameDirective, typeof FormControlNameDirective, typeof ParentControlContainerDirective, typeof FormSubmitSuccessfulDirective, typeof FormSubmitInvalidDirective]>;
903
- static ɵinj: i0.ɵɵInjectorDeclaration<RxapFormsModule>;
904
- }
905
-
906
896
  declare const RXAP_FORM_DEFINITION: InjectionToken<FormDefinition<any, any, any>>;
907
897
  declare const RXAP_FORM_DEFINITION_BUILDER: InjectionToken<RxapFormBuilder<any, _rxap_forms.FormType<any>>>;
908
898
  declare const RXAP_FORM_SUBMIT_METHOD: InjectionToken<FormSubmitMethod<any, any, any>>;
@@ -975,5 +965,5 @@ declare abstract class ControlValueAccessor<T = any> implements ControlValueAcce
975
965
  declare const RXAP_FORM_INITIAL_STATE: InjectionToken<unknown>;
976
966
  declare const RXAP_FORM_CONTEXT: InjectionToken<unknown>;
977
967
 
978
- export { ControlAsyncValidator, ControlChange, ControlSetValue, ControlValidator, ControlValueAccessor, FormArrayControlManager, FormControlErrorDirective, FormControlMarkDirtyDirective, FormControlMarkPristineDirective, FormControlMarkTouchedDirective, FormControlMarkUntouchedDirective, FormControlNameDirective, FormDirective, FormGroupNameDirective, FormLoadedDirective, FormLoadingDirective, FormLoadingErrorDirective, FormResetDirective, FormSubmitDirective, FormSubmitFailedDirective, FormSubmitInvalidDirective, FormSubmitSuccessfulDirective, FormSubmittingDirective, IsArray, IsBoolean, IsComplex, IsDate, IsEmail, IsEnum, IsIP, IsInt, IsNumber, IsObject, IsPhoneNumber, IsPort, IsString, IsUUID, IsUrl, MetadataKeys, ParentControlContainerDirective, RXAP_FORM_CONTEXT, RXAP_FORM_DEFINITION, RXAP_FORM_DEFINITION_BUILDER, RXAP_FORM_INITIAL_STATE, RXAP_FORM_LOAD_FAILED_METHOD, RXAP_FORM_LOAD_METHOD, RXAP_FORM_LOAD_SUCCESSFUL_METHOD, RXAP_FORM_SUBMIT_FAILED_METHOD, RXAP_FORM_SUBMIT_METHOD, RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD, RxapForm, RxapFormArray, RxapFormBuilder, RxapFormControl, RxapFormGroup, RxapFormsModule, RxapValidators, ToFormMethod, ToFormSubmitMethod, UseFormArrayControl, UseFormArrayGroup, UseFormControl, UseFormGroup, _IsNumber, controlDisabled$, controlDisabledWhile, controlEnabled$, controlEnabledWhile, controlErrorChanges$, controlReadonly$, controlStatusChanges$, controlValueChanges$, disableControl, enableControl, hasErrorAndDirty, hasErrorAndTouched, isNumber, markAllDirty, markAllPristine, markAllUntouched, mergeControlValidators, selectControlValue$, validateControlOn };
968
+ export { ControlAsyncValidator, ControlChange, ControlSetValue, ControlValidator, ControlValueAccessor, FormArrayControlManager, FormControlErrorDirective, FormControlMarkDirtyDirective, FormControlMarkPristineDirective, FormControlMarkTouchedDirective, FormControlMarkUntouchedDirective, FormControlNameDirective, FormDirective, FormGroupNameDirective, FormLoadedDirective, FormLoadingDirective, FormLoadingErrorDirective, FormResetDirective, FormSubmitDirective, FormSubmitFailedDirective, FormSubmitInvalidDirective, FormSubmitSuccessfulDirective, FormSubmittingDirective, IsArray, IsBoolean, IsComplex, IsDate, IsEmail, IsEnum, IsIP, IsInt, IsNumber, IsObject, IsPhoneNumber, IsPort, IsString, IsUUID, IsUrl, MetadataKeys, ParentControlContainerDirective, RXAP_FORM_CONTEXT, RXAP_FORM_DEFINITION, RXAP_FORM_DEFINITION_BUILDER, RXAP_FORM_INITIAL_STATE, RXAP_FORM_LOAD_FAILED_METHOD, RXAP_FORM_LOAD_METHOD, RXAP_FORM_LOAD_SUCCESSFUL_METHOD, RXAP_FORM_SUBMIT_FAILED_METHOD, RXAP_FORM_SUBMIT_METHOD, RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD, RxapForm, RxapFormArray, RxapFormBuilder, RxapFormControl, RxapFormGroup, RxapValidators, ToFormMethod, ToFormSubmitMethod, UseFormArrayControl, UseFormArrayGroup, UseFormControl, UseFormGroup, _IsNumber, controlDisabled$, controlDisabledWhile, controlEnabled$, controlEnabledWhile, controlErrorChanges$, controlReadonly$, controlStatusChanges$, controlValueChanges$, disableControl, enableControl, hasErrorAndDirty, hasErrorAndTouched, isNumber, markAllDirty, markAllPristine, markAllUntouched, mergeControlValidators, selectControlValue$, validateControlOn };
979
969
  export type { AbstractControl, AbstractControlOptions, AsyncValidator, AsyncValidatorFn, BoxedValue, ChangeFn, ComplexityOptions, ControlEventOptions, ControlInsertedFn, ControlOptions, ControlPath, ControlRemovedFn, ControlSetValueOptions, ControlState, EmitEvent, ExtractAbstractControl, ExtractStrings, FormArrayOptions, FormBuilderFn, FormDefinition, FormDefinitionArray, FormDefinitionMetadata, FormGroupOptions, FormLoadFailedMethod, FormLoadMethod, FormLoadSuccessfulMethod, FormOptions, FormSubmitFailedMethod, FormSubmitMethod, FormSubmitSuccessfulMethod, FormType, InjectableValidator, IsNumberOptions, KeyValueControls, NgValidatorsErrors, OnlySelf, OrBoxedValue, RxapAbstractControlOptions, RxapAbstractControlOptionsWithDefinition, SetValueFn, ValidationErrors, Validator, ValidatorFn, ValidatorOrOpts, _RxapAbstractControlOptions };