@rxap/forms 18.0.2 → 18.0.3-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 (281) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +14 -1
  3. package/compodoc/changelog.html +777 -0
  4. package/compodoc/classes/ControlValueAccessor.html +607 -0
  5. package/compodoc/classes/FormArrayControlManager.html +1177 -0
  6. package/compodoc/classes/RxapFormArray.html +3898 -0
  7. package/compodoc/classes/RxapFormBuilder.html +1132 -0
  8. package/compodoc/classes/RxapFormControl.html +3573 -0
  9. package/compodoc/classes/RxapFormGroup.html +6619 -0
  10. package/compodoc/dependencies.html +217 -0
  11. package/compodoc/directives/FormControlErrorDirective.html +496 -0
  12. package/compodoc/directives/FormControlMarkDirtyDirective.html +446 -0
  13. package/compodoc/directives/FormControlMarkPristineDirective.html +445 -0
  14. package/compodoc/directives/FormControlMarkTouchedDirective.html +438 -0
  15. package/compodoc/directives/FormControlMarkUntouchedDirective.html +445 -0
  16. package/compodoc/directives/FormControlNameDirective.html +527 -0
  17. package/compodoc/directives/FormDirective.html +2415 -0
  18. package/compodoc/directives/FormGroupNameDirective.html +500 -0
  19. package/compodoc/directives/FormLoadedDirective.html +374 -0
  20. package/compodoc/directives/FormLoadingDirective.html +374 -0
  21. package/compodoc/directives/FormLoadingErrorDirective.html +370 -0
  22. package/compodoc/directives/FormSubmitDirective.html +690 -0
  23. package/compodoc/directives/FormSubmitFailedDirective.html +370 -0
  24. package/compodoc/directives/FormSubmitInvalidDirective.html +368 -0
  25. package/compodoc/directives/FormSubmitSuccessfulDirective.html +368 -0
  26. package/compodoc/directives/FormSubmittingDirective.html +374 -0
  27. package/compodoc/directives/ParentControlContainerDirective.html +274 -0
  28. package/compodoc/fonts/ionicons.eot +0 -0
  29. package/compodoc/fonts/ionicons.svg +2090 -0
  30. package/compodoc/fonts/ionicons.ttf +0 -0
  31. package/compodoc/fonts/ionicons.woff +0 -0
  32. package/compodoc/fonts/ionicons.woff2 +0 -0
  33. package/compodoc/fonts/roboto-v15-latin-300.eot +0 -0
  34. package/compodoc/fonts/roboto-v15-latin-300.svg +314 -0
  35. package/compodoc/fonts/roboto-v15-latin-300.ttf +0 -0
  36. package/compodoc/fonts/roboto-v15-latin-300.woff +0 -0
  37. package/compodoc/fonts/roboto-v15-latin-300.woff2 +0 -0
  38. package/compodoc/fonts/roboto-v15-latin-700.eot +0 -0
  39. package/compodoc/fonts/roboto-v15-latin-700.svg +310 -0
  40. package/compodoc/fonts/roboto-v15-latin-700.ttf +0 -0
  41. package/compodoc/fonts/roboto-v15-latin-700.woff +0 -0
  42. package/compodoc/fonts/roboto-v15-latin-700.woff2 +0 -0
  43. package/compodoc/fonts/roboto-v15-latin-italic.eot +0 -0
  44. package/compodoc/fonts/roboto-v15-latin-italic.svg +323 -0
  45. package/compodoc/fonts/roboto-v15-latin-italic.ttf +0 -0
  46. package/compodoc/fonts/roboto-v15-latin-italic.woff +0 -0
  47. package/compodoc/fonts/roboto-v15-latin-italic.woff2 +0 -0
  48. package/compodoc/fonts/roboto-v15-latin-regular.eot +0 -0
  49. package/compodoc/fonts/roboto-v15-latin-regular.svg +308 -0
  50. package/compodoc/fonts/roboto-v15-latin-regular.ttf +0 -0
  51. package/compodoc/fonts/roboto-v15-latin-regular.woff +0 -0
  52. package/compodoc/fonts/roboto-v15-latin-regular.woff2 +0 -0
  53. package/compodoc/graph/dependencies.svg +450 -0
  54. package/compodoc/images/compodoc-vectorise-inverted.png +0 -0
  55. package/compodoc/images/compodoc-vectorise-inverted.svg +201 -0
  56. package/compodoc/images/compodoc-vectorise.png +0 -0
  57. package/compodoc/images/compodoc-vectorise.svg +201 -0
  58. package/compodoc/images/favicon.ico +0 -0
  59. package/compodoc/index.html +197 -0
  60. package/compodoc/interfaces/AbstractControl.html +622 -0
  61. package/compodoc/interfaces/AbstractControlOptions.html +448 -0
  62. package/compodoc/interfaces/BoxedValue.html +436 -0
  63. package/compodoc/interfaces/ComplexityOptions.html +819 -0
  64. package/compodoc/interfaces/ControlOptions.html +689 -0
  65. package/compodoc/interfaces/ControlSetValueOptions.html +345 -0
  66. package/compodoc/interfaces/FormArrayOptions.html +544 -0
  67. package/compodoc/interfaces/FormDefinition.html +626 -0
  68. package/compodoc/interfaces/FormDefinitionArray.html +427 -0
  69. package/compodoc/interfaces/FormDefinitionMetadata.html +486 -0
  70. package/compodoc/interfaces/FormGroupOptions.html +427 -0
  71. package/compodoc/interfaces/FormLoadFailedMethod.html +360 -0
  72. package/compodoc/interfaces/FormLoadMethod.html +330 -0
  73. package/compodoc/interfaces/FormLoadSuccessfulMethod.html +360 -0
  74. package/compodoc/interfaces/FormOptions.html +427 -0
  75. package/compodoc/interfaces/FormSubmitFailedMethod.html +360 -0
  76. package/compodoc/interfaces/FormSubmitMethod.html +360 -0
  77. package/compodoc/interfaces/FormSubmitSuccessfulMethod.html +360 -0
  78. package/compodoc/interfaces/InjectableValidator.html +472 -0
  79. package/compodoc/interfaces/IsNumberOptions.html +515 -0
  80. package/compodoc/interfaces/LengthOptions.html +564 -0
  81. package/compodoc/interfaces/NgValidatorsErrors.html +613 -0
  82. package/compodoc/interfaces/RegexOptions.html +603 -0
  83. package/compodoc/interfaces/RxapAbstractControlOptionsWithDefinition.html +427 -0
  84. package/compodoc/js/compodoc.js +14 -0
  85. package/compodoc/js/lazy-load-graphs.js +44 -0
  86. package/compodoc/js/libs/EventDispatcher.js +5 -0
  87. package/compodoc/js/libs/bootstrap-native.js +2 -0
  88. package/compodoc/js/libs/clipboard.min.js +7 -0
  89. package/compodoc/js/libs/custom-elements-es5-adapter.js +15 -0
  90. package/compodoc/js/libs/custom-elements.min.js +38 -0
  91. package/compodoc/js/libs/d3.v3.min.js +2 -0
  92. package/compodoc/js/libs/deep-iterator.js +2 -0
  93. package/compodoc/js/libs/es6-shim.min.js +12 -0
  94. package/compodoc/js/libs/htmlparser.js +23 -0
  95. package/compodoc/js/libs/innersvg.js +9 -0
  96. package/compodoc/js/libs/lit-html.js +1 -0
  97. package/compodoc/js/libs/prism.js +46 -0
  98. package/compodoc/js/libs/promise.min.js +6 -0
  99. package/compodoc/js/libs/svg-pan-zoom.min.js +3 -0
  100. package/compodoc/js/libs/tablesort.min.js +6 -0
  101. package/compodoc/js/libs/tablesort.number.min.js +6 -0
  102. package/compodoc/js/libs/vis.min.js +47 -0
  103. package/compodoc/js/libs/zepto.min.js +2 -0
  104. package/compodoc/js/menu-wc.js +339 -0
  105. package/compodoc/js/menu-wc_es5.js +40 -0
  106. package/compodoc/js/menu.js +270 -0
  107. package/compodoc/js/routes.js +301 -0
  108. package/compodoc/js/search/lunr.min.js +6 -0
  109. package/compodoc/js/search/search-lunr.js +67 -0
  110. package/compodoc/js/search/search.js +283 -0
  111. package/compodoc/js/search/search_index.js +4 -0
  112. package/compodoc/js/sourceCode.js +58 -0
  113. package/compodoc/js/svg-pan-zoom.controls.js +53 -0
  114. package/compodoc/js/tabs.js +21 -0
  115. package/compodoc/js/tree.js +147 -0
  116. package/compodoc/license.html +731 -0
  117. package/compodoc/miscellaneous/enumerations.html +291 -0
  118. package/compodoc/miscellaneous/functions.html +3827 -0
  119. package/compodoc/miscellaneous/typealiases.html +657 -0
  120. package/compodoc/miscellaneous/variables.html +554 -0
  121. package/compodoc/modules/RxapFormsModule/dependencies.svg +450 -0
  122. package/compodoc/modules/RxapFormsModule.html +864 -0
  123. package/compodoc/modules.html +200 -0
  124. package/compodoc/overview.html +681 -0
  125. package/compodoc/properties.html +195 -0
  126. package/compodoc/styles/bootstrap-card.css +219 -0
  127. package/compodoc/styles/bootstrap.min.css +6 -0
  128. package/compodoc/styles/compodoc.css +1124 -0
  129. package/compodoc/styles/dark.css +121 -0
  130. package/compodoc/styles/ionicons.min.css +11 -0
  131. package/compodoc/styles/laravel.css +113 -0
  132. package/compodoc/styles/material.css +131 -0
  133. package/compodoc/styles/original.css +51 -0
  134. package/compodoc/styles/postmark.css +238 -0
  135. package/compodoc/styles/prism.css +301 -0
  136. package/compodoc/styles/readthedocs.css +117 -0
  137. package/compodoc/styles/reset.css +129 -0
  138. package/compodoc/styles/stripe.css +106 -0
  139. package/compodoc/styles/style.css +7 -0
  140. package/compodoc/styles/tablesort.css +33 -0
  141. package/compodoc/styles/vagrant.css +130 -0
  142. package/docs/.nojekyll +1 -0
  143. package/docs/assets/highlight.css +92 -0
  144. package/docs/assets/icons.js +15 -0
  145. package/docs/assets/icons.svg +1 -0
  146. package/docs/assets/main.js +59 -0
  147. package/docs/assets/navigation.js +1 -0
  148. package/docs/assets/search.js +1 -0
  149. package/docs/assets/style.css +1412 -0
  150. package/docs/classes/ControlValueAccessor.html +8 -0
  151. package/docs/classes/FormArrayControlManager.html +6 -0
  152. package/docs/classes/FormControlErrorDirective.html +11 -0
  153. package/docs/classes/FormControlMarkDirtyDirective.html +4 -0
  154. package/docs/classes/FormControlMarkPristineDirective.html +4 -0
  155. package/docs/classes/FormControlMarkTouchedDirective.html +4 -0
  156. package/docs/classes/FormControlMarkUntouchedDirective.html +4 -0
  157. package/docs/classes/FormControlNameDirective.html +113 -0
  158. package/docs/classes/FormDirective.html +187 -0
  159. package/docs/classes/FormGroupNameDirective.html +101 -0
  160. package/docs/classes/FormLoadedDirective.html +8 -0
  161. package/docs/classes/FormLoadingDirective.html +8 -0
  162. package/docs/classes/FormLoadingErrorDirective.html +8 -0
  163. package/docs/classes/FormSubmitDirective.html +15 -0
  164. package/docs/classes/FormSubmitFailedDirective.html +8 -0
  165. package/docs/classes/FormSubmitInvalidDirective.html +8 -0
  166. package/docs/classes/FormSubmitSuccessfulDirective.html +8 -0
  167. package/docs/classes/FormSubmittingDirective.html +8 -0
  168. package/docs/classes/ParentControlContainerDirective.html +2 -0
  169. package/docs/classes/RxapFormArray.html +429 -0
  170. package/docs/classes/RxapFormBuilder.html +65 -0
  171. package/docs/classes/RxapFormControl.html +264 -0
  172. package/docs/classes/RxapFormGroup.html +260 -0
  173. package/docs/classes/RxapFormsModule.html +2 -0
  174. package/docs/documentation.json +91243 -0
  175. package/docs/enums/MetadataKeys.html +9 -0
  176. package/docs/functions/ControlAsyncValidator.html +1 -0
  177. package/docs/functions/ControlChange.html +1 -0
  178. package/docs/functions/ControlSetValue.html +1 -0
  179. package/docs/functions/ControlValidator.html +1 -0
  180. package/docs/functions/IsArray.html +1 -0
  181. package/docs/functions/IsBoolean.html +1 -0
  182. package/docs/functions/IsComplex.html +1 -0
  183. package/docs/functions/IsDate.html +1 -0
  184. package/docs/functions/IsEmail.html +1 -0
  185. package/docs/functions/IsEnum.html +1 -0
  186. package/docs/functions/IsIP.html +1 -0
  187. package/docs/functions/IsInt.html +1 -0
  188. package/docs/functions/IsNumber.html +2 -0
  189. package/docs/functions/IsObject.html +1 -0
  190. package/docs/functions/IsPhoneNumber.html +1 -0
  191. package/docs/functions/IsPort.html +1 -0
  192. package/docs/functions/IsString.html +1 -0
  193. package/docs/functions/IsUUID.html +1 -0
  194. package/docs/functions/IsUrl.html +1 -0
  195. package/docs/functions/RxapForm.html +1 -0
  196. package/docs/functions/ToFormMethod.html +1 -0
  197. package/docs/functions/ToFormSubmitMethod.html +3 -0
  198. package/docs/functions/UseFormArrayControl.html +1 -0
  199. package/docs/functions/UseFormArrayGroup.html +1 -0
  200. package/docs/functions/UseFormControl.html +1 -0
  201. package/docs/functions/UseFormGroup.html +1 -0
  202. package/docs/functions/_IsNumber.html +1 -0
  203. package/docs/functions/controlDisabledWhile.html +1 -0
  204. package/docs/functions/controlDisabled_.html +1 -0
  205. package/docs/functions/controlEnabledWhile.html +1 -0
  206. package/docs/functions/controlEnabled_.html +1 -0
  207. package/docs/functions/controlErrorChanges_.html +1 -0
  208. package/docs/functions/controlReadonly_.html +1 -0
  209. package/docs/functions/controlStatusChanges_.html +1 -0
  210. package/docs/functions/controlValueChanges_.html +1 -0
  211. package/docs/functions/disableControl.html +1 -0
  212. package/docs/functions/enableControl.html +1 -0
  213. package/docs/functions/hasErrorAndDirty.html +1 -0
  214. package/docs/functions/hasErrorAndTouched.html +1 -0
  215. package/docs/functions/isNumber-1.html +2 -0
  216. package/docs/functions/markAllDirty.html +1 -0
  217. package/docs/functions/markAllPristine.html +1 -0
  218. package/docs/functions/markAllUntouched.html +1 -0
  219. package/docs/functions/mergeControlValidators.html +1 -0
  220. package/docs/functions/selectControlValue_.html +1 -0
  221. package/docs/functions/validateControlOn.html +1 -0
  222. package/docs/hierarchy.html +1 -0
  223. package/docs/index.html +25 -0
  224. package/docs/interfaces/AbstractControl.html +373 -0
  225. package/docs/interfaces/AbstractControlOptions.html +5 -0
  226. package/docs/interfaces/BoxedValue.html +3 -0
  227. package/docs/interfaces/ComplexityOptions.html +11 -0
  228. package/docs/interfaces/ControlOptions.html +20 -0
  229. package/docs/interfaces/ControlSetValueOptions.html +3 -0
  230. package/docs/interfaces/FormArrayOptions.html +16 -0
  231. package/docs/interfaces/FormDefinition.html +13 -0
  232. package/docs/interfaces/FormDefinitionArray.html +179 -0
  233. package/docs/interfaces/FormDefinitionMetadata.html +17 -0
  234. package/docs/interfaces/FormGroupOptions.html +13 -0
  235. package/docs/interfaces/FormLoadFailedMethod.html +3 -0
  236. package/docs/interfaces/FormLoadMethod.html +3 -0
  237. package/docs/interfaces/FormLoadSuccessfulMethod.html +3 -0
  238. package/docs/interfaces/FormOptions.html +13 -0
  239. package/docs/interfaces/FormSubmitFailedMethod.html +3 -0
  240. package/docs/interfaces/FormSubmitMethod.html +3 -0
  241. package/docs/interfaces/FormSubmitSuccessfulMethod.html +3 -0
  242. package/docs/interfaces/InjectableValidator.html +3 -0
  243. package/docs/interfaces/IsNumberOptions.html +6 -0
  244. package/docs/interfaces/NgValidatorsErrors.html +8 -0
  245. package/docs/interfaces/RxapAbstractControlOptionsWithDefinition.html +13 -0
  246. package/docs/interfaces/_RxapAbstractControlOptions.html +12 -0
  247. package/docs/modules.html +128 -0
  248. package/docs/types/AsyncValidator.html +1 -0
  249. package/docs/types/AsyncValidatorFn.html +1 -0
  250. package/docs/types/ChangeFn.html +1 -0
  251. package/docs/types/ControlEventOptions.html +1 -0
  252. package/docs/types/ControlInsertedFn.html +1 -0
  253. package/docs/types/ControlPath.html +1 -0
  254. package/docs/types/ControlRemovedFn.html +1 -0
  255. package/docs/types/ControlState.html +1 -0
  256. package/docs/types/EmitEvent.html +1 -0
  257. package/docs/types/ExtractAbstractControl.html +1 -0
  258. package/docs/types/ExtractStrings.html +1 -0
  259. package/docs/types/FormBuilderFn.html +1 -0
  260. package/docs/types/FormType.html +1 -0
  261. package/docs/types/KeyValueControls.html +1 -0
  262. package/docs/types/OnlySelf.html +1 -0
  263. package/docs/types/OrBoxedValue.html +1 -0
  264. package/docs/types/RxapAbstractControlOptions.html +1 -0
  265. package/docs/types/SetValueFn.html +1 -0
  266. package/docs/types/ValidationErrors.html +1 -0
  267. package/docs/types/Validator.html +1 -0
  268. package/docs/types/ValidatorFn.html +1 -0
  269. package/docs/types/ValidatorOrOpts.html +1 -0
  270. package/docs/variables/RXAP_FORM_CONTEXT.html +1 -0
  271. package/docs/variables/RXAP_FORM_DEFINITION.html +1 -0
  272. package/docs/variables/RXAP_FORM_DEFINITION_BUILDER.html +1 -0
  273. package/docs/variables/RXAP_FORM_INITIAL_STATE.html +1 -0
  274. package/docs/variables/RXAP_FORM_LOAD_FAILED_METHOD.html +1 -0
  275. package/docs/variables/RXAP_FORM_LOAD_METHOD.html +1 -0
  276. package/docs/variables/RXAP_FORM_LOAD_SUCCESSFUL_METHOD.html +1 -0
  277. package/docs/variables/RXAP_FORM_SUBMIT_FAILED_METHOD.html +1 -0
  278. package/docs/variables/RXAP_FORM_SUBMIT_METHOD.html +1 -0
  279. package/docs/variables/RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD.html +1 -0
  280. package/docs/variables/RxapValidators.html +1 -0
  281. package/package.json +20 -18
@@ -0,0 +1,2415 @@
1
+ <!doctype html>
2
+ <html class="no-js" lang="">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="x-ua-compatible" content="ie=edge">
6
+ <title>angular-forms</title>
7
+ <meta name="description" content="">
8
+ <meta name="viewport" content="width=device-width, initial-scale=1">
9
+
10
+ <link rel="icon" type="image/x-icon" href="../images/favicon.ico">
11
+ <link rel="stylesheet" href="../styles/style.css">
12
+ <link rel="stylesheet" href="../styles/dark.css">
13
+ </head>
14
+ <body>
15
+ <script>
16
+ // Blocking script to avoid flickering dark mode
17
+ // Dark mode toggle button
18
+ var useDark = window.matchMedia('(prefers-color-scheme: dark)');
19
+ var darkModeState = useDark.matches;
20
+ var $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
21
+ var $darkModeToggles = document.querySelectorAll('.dark-mode-switch');
22
+ var darkModeStateLocal = localStorage.getItem('compodoc_darkmode-state');
23
+
24
+ function checkToggle(check) {
25
+ for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
26
+ $darkModeToggleSwitchers[i].checked = check;
27
+ }
28
+ }
29
+
30
+ function toggleDarkMode(state) {
31
+ if (window.localStorage) {
32
+ localStorage.setItem('compodoc_darkmode-state', state);
33
+ }
34
+
35
+ checkToggle(state);
36
+
37
+ const hasClass = document.body.classList.contains('dark');
38
+
39
+ if (state) {
40
+ for (var i = 0; i < $darkModeToggles.length; i++) {
41
+ $darkModeToggles[i].classList.add('dark');
42
+ }
43
+ if (!hasClass) {
44
+ document.body.classList.add('dark');
45
+ }
46
+ } else {
47
+ for (var i = 0; i < $darkModeToggles.length; i++) {
48
+ $darkModeToggles[i].classList.remove('dark');
49
+ }
50
+ if (hasClass) {
51
+ document.body.classList.remove('dark');
52
+ }
53
+ }
54
+ }
55
+
56
+ useDark.addEventListener('change', function (evt) {
57
+ toggleDarkMode(evt.matches);
58
+ });
59
+ if (darkModeStateLocal) {
60
+ darkModeState = darkModeStateLocal === 'true';
61
+ }
62
+ toggleDarkMode(darkModeState);
63
+ </script>
64
+
65
+ <div class="navbar navbar-default navbar-fixed-top d-md-none p-0">
66
+ <div class="d-flex">
67
+ <a href="../" class="navbar-brand">angular-forms</a>
68
+ <button type="button" class="btn btn-default btn-menu ion-ios-menu" id="btn-menu"></button>
69
+ </div>
70
+ </div>
71
+
72
+ <div class="xs-menu menu" id="mobile-menu">
73
+ <div id="book-search-input" role="search"><input type="text" placeholder="Type to search"></div> <compodoc-menu></compodoc-menu>
74
+ </div>
75
+
76
+ <div class="container-fluid main">
77
+ <div class="row main">
78
+ <div class="d-none d-md-block menu">
79
+ <compodoc-menu mode="normal"></compodoc-menu>
80
+ </div>
81
+ <!-- START CONTENT -->
82
+ <div class="content directive">
83
+ <div class="content-data">
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+ <ol class="breadcrumb">
92
+ <li class="breadcrumb-item">Directives</li>
93
+ <li class="breadcrumb-item" >FormDirective</li>
94
+ </ol>
95
+
96
+ <ul class="nav nav-tabs" role="tablist">
97
+ <li class="nav-item">
98
+ <a href="#info"
99
+ class="nav-link"
100
+ class="nav-link active"
101
+ role="tab" id="info-tab" data-bs-toggle="tab" data-link="info">Info</a>
102
+ </li>
103
+ <li class="nav-item">
104
+ <a href="#source"
105
+ class="nav-link"
106
+
107
+ role="tab" id="source-tab" data-bs-toggle="tab" data-link="source">Source</a>
108
+ </li>
109
+ </ul>
110
+
111
+ <div class="tab-content">
112
+ <div class="tab-pane fade active in" id="info">
113
+ <p class="comment">
114
+ <h3>File</h3>
115
+ </p>
116
+ <p class="comment">
117
+ <code>src/lib/directives/form.directive.ts</code>
118
+ </p>
119
+
120
+
121
+
122
+ <p class="comment">
123
+ <h3>Extends</h3>
124
+ </p>
125
+ <p class="comment">
126
+ <code>FormGroupDirective</code>
127
+ </p>
128
+
129
+ <p class="comment">
130
+ <h3>Implements</h3>
131
+ </p>
132
+ <p class="comment">
133
+ <code>OnInit</code>
134
+ <code>OnChanges</code>
135
+ <code>OnDestroy</code>
136
+ </p>
137
+
138
+
139
+ <section data-compodoc="block-metadata">
140
+ <h3>Metadata</h3>
141
+ <table class="table table-sm table-hover metadata">
142
+ <tbody>
143
+ <tr>
144
+ <td class="col-md-3">Providers</td>
145
+ <td class="col-md-9">
146
+ <code>
147
+ {
148
+ provide: ControlContainer, useExisting: forwardRef(() &#x3D;&gt; FormDirective),
149
+ }
150
+ {
151
+ provide: RXAP_FORM_SUBMIT_METHOD, useValue: null,
152
+ }
153
+ {
154
+ provide: RXAP_FORM_LOAD_METHOD, useValue: null,
155
+ }
156
+ {
157
+ provide: RXAP_FORM_LOAD_FAILED_METHOD, useValue: null,
158
+ }
159
+ {
160
+ provide: RXAP_FORM_LOAD_SUCCESSFUL_METHOD, useValue: null,
161
+ }
162
+ {
163
+ provide: RXAP_FORM_SUBMIT_FAILED_METHOD, useValue: null,
164
+ }
165
+ {
166
+ provide: RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD, useValue: null,
167
+ }
168
+ {
169
+ provide: RXAP_FORM_DEFINITION_BUILDER, useValue: null,
170
+ }
171
+ </code>
172
+ </td>
173
+ </tr>
174
+
175
+ <tr>
176
+ <td class="col-md-3">Selector</td>
177
+ <td class="col-md-9"><code>form[rxapForm]:not([formGroup]):not([ngForm]),rxap-form,form[rxapForm]</code></td>
178
+ </tr>
179
+
180
+ <tr>
181
+ <td class="col-md-3">Standalone</td>
182
+ <td class="col-md-9"><code>true</code></td>
183
+ </tr>
184
+
185
+
186
+ <tr>
187
+ <td class="col-md-3">exportAs</td>
188
+ <td class="col-md-9"><code>rxapForm</code></td>
189
+ </tr>
190
+
191
+ </tbody>
192
+ </table>
193
+ </section>
194
+
195
+ <section data-compodoc="block-index">
196
+ <h3 id="index">Index</h3>
197
+ <table class="table table-sm table-bordered index-table">
198
+ <tbody>
199
+ <tr>
200
+ <td class="col-md-4">
201
+ <h6><b>Properties</b></h6>
202
+ </td>
203
+ </tr>
204
+ <tr>
205
+ <td class="col-md-4">
206
+ <ul class="index-list">
207
+ <li>
208
+ <span class="modifier">Protected</span>
209
+ <a href="#_formDefinition" >_formDefinition</a>
210
+ </li>
211
+ <li>
212
+ <span class="modifier"></span>
213
+ <span class="modifier">Public</span>
214
+ <span class="modifier">Readonly</span>
215
+ <a href="#cdr" >cdr</a>
216
+ </li>
217
+ <li>
218
+ <span class="modifier">Public</span>
219
+ <span class="modifier"></span>
220
+ <a href="#form" >form</a>
221
+ </li>
222
+ <li>
223
+ <span class="modifier">Public</span>
224
+ <span class="modifier">Readonly</span>
225
+ <a href="#loaded$" >loaded$</a>
226
+ </li>
227
+ <li>
228
+ <span class="modifier">Public</span>
229
+ <span class="modifier">Readonly</span>
230
+ <a href="#loading$" >loading$</a>
231
+ </li>
232
+ <li>
233
+ <span class="modifier">Public</span>
234
+ <span class="modifier">Readonly</span>
235
+ <a href="#loadingError$" >loadingError$</a>
236
+ </li>
237
+ <li>
238
+ <span class="modifier">Public</span>
239
+ <span class="modifier">Readonly</span>
240
+ <a href="#submitError$" >submitError$</a>
241
+ </li>
242
+ <li>
243
+ <span class="modifier">Public</span>
244
+ <span class="modifier">Readonly</span>
245
+ <a href="#submitting$" >submitting$</a>
246
+ </li>
247
+ </ul>
248
+ </td>
249
+ </tr>
250
+
251
+ <tr>
252
+ <td class="col-md-4">
253
+ <h6><b>Methods</b></h6>
254
+ </td>
255
+ </tr>
256
+ <tr>
257
+ <td class="col-md-4">
258
+ <ul class="index-list">
259
+ <li>
260
+ <span class="modifier">Protected</span>
261
+ <a href="#getSubmitValue" >getSubmitValue</a>
262
+ </li>
263
+ <li>
264
+ <span class="modifier">Protected</span>
265
+ <a href="#loadFailed" >loadFailed</a>
266
+ </li>
267
+ <li>
268
+ <span class="modifier">Protected</span>
269
+ <a href="#loadInitialState" >loadInitialState</a>
270
+ </li>
271
+ <li>
272
+ <span class="modifier">Protected</span>
273
+ <a href="#loadSuccessful" >loadSuccessful</a>
274
+ </li>
275
+ <li>
276
+ <span class="modifier">Public</span>
277
+ <span class="modifier"></span>
278
+ <a href="#onSubmit" >onSubmit</a>
279
+ </li>
280
+ <li>
281
+ <span class="modifier">Protected</span>
282
+ <a href="#submit" >submit</a>
283
+ </li>
284
+ <li>
285
+ <span class="modifier">Protected</span>
286
+ <a href="#submitFailed" >submitFailed</a>
287
+ </li>
288
+ <li>
289
+ <span class="modifier">Protected</span>
290
+ <a href="#submitSuccessful" >submitSuccessful</a>
291
+ </li>
292
+ </ul>
293
+ </td>
294
+ </tr>
295
+
296
+ <tr>
297
+ <td class="col-md-4">
298
+ <h6><b>Inputs</b></h6>
299
+ </td>
300
+ </tr>
301
+ <tr>
302
+ <td class="col-md-4">
303
+ <ul class="index-list">
304
+ <li>
305
+ <a href="#initial" >initial</a>
306
+ </li>
307
+ <li>
308
+ <a href="#rxapForm" >rxapForm</a>
309
+ </li>
310
+ <li>
311
+ <a href="#submitMethod" >submitMethod</a>
312
+ </li>
313
+ </ul>
314
+ </td>
315
+ </tr>
316
+
317
+ <tr>
318
+ <td class="col-md-4">
319
+ <h6><b>Outputs</b></h6>
320
+ </td>
321
+ </tr>
322
+ <tr>
323
+ <td class="col-md-4">
324
+ <ul class="index-list">
325
+ <li>
326
+ <a href="#invalidSubmit" >invalidSubmit</a>
327
+ </li>
328
+ <li>
329
+ <a href="#rxapSubmit" >rxapSubmit</a>
330
+ </li>
331
+ <li>
332
+ <a href="#submitSuccessful" >submitSuccessful</a>
333
+ </li>
334
+ </ul>
335
+ </td>
336
+ </tr>
337
+
338
+ <tr>
339
+ <td class="col-md-4">
340
+ <h6><b>HostBindings</b></h6>
341
+ </td>
342
+ </tr>
343
+ <tr>
344
+ <td class="col-md-4">
345
+ <ul class="index-list">
346
+ <li>
347
+ <a href="#class.rxap-loaded" >class.rxap-loaded</a>
348
+ </li>
349
+ <li>
350
+ <a href="#class.rxap-loading" >class.rxap-loading</a>
351
+ </li>
352
+ <li>
353
+ <a href="#class.rxap-loading-error" >class.rxap-loading-error</a>
354
+ </li>
355
+ <li>
356
+ <a href="#class.rxap-submit-error" >class.rxap-submit-error</a>
357
+ </li>
358
+ <li>
359
+ <a href="#class.rxap-submitting" >class.rxap-submitting</a>
360
+ </li>
361
+ </ul>
362
+ </td>
363
+ </tr>
364
+
365
+
366
+ <tr>
367
+ <td class="col-md-4">
368
+ <h6><b>Accessors</b></h6>
369
+ </td>
370
+ </tr>
371
+ <tr>
372
+ <td class="col-md-4">
373
+ <ul class="index-list">
374
+ <li>
375
+ <a href="#submitting" >submitting</a>
376
+ </li>
377
+ <li>
378
+ <a href="#submitError" >submitError</a>
379
+ </li>
380
+ <li>
381
+ <a href="#loading" >loading</a>
382
+ </li>
383
+ <li>
384
+ <a href="#loaded" >loaded</a>
385
+ </li>
386
+ <li>
387
+ <a href="#loadingError" >loadingError</a>
388
+ </li>
389
+ <li>
390
+ <a href="#useFormDefinition" >useFormDefinition</a>
391
+ </li>
392
+ <li>
393
+ <a href="#formDefinition" >formDefinition</a>
394
+ </li>
395
+ </ul>
396
+ </td>
397
+ </tr>
398
+ </tbody>
399
+ </table>
400
+ </section>
401
+
402
+ <section data-compodoc="block-constructor">
403
+ <h3 id="constructor">Constructor</h3>
404
+ <table class="table table-sm table-bordered">
405
+ <tbody>
406
+ <tr>
407
+ <td class="col-md-4">
408
+ <code>constructor(cdr: ChangeDetectorRef, formDefinition: <a href="../interfaces/FormDefinition.html" target="_self">FormDefinition | null</a>, submitMethod: <a href="../interfaces/FormSubmitMethod.html" target="_self">FormSubmitMethod&lt;any&gt; | null</a>, loadMethod: <a href="../interfaces/FormLoadMethod.html" target="_self">FormLoadMethod | null</a>, loadFailedMethod: <a href="../interfaces/FormLoadFailedMethod.html" target="_self">FormLoadFailedMethod | null</a>, loadSuccessfulMethod: <a href="../interfaces/FormLoadSuccessfulMethod.html" target="_self">FormLoadSuccessfulMethod | null</a>, submitFailedMethod: <a href="../interfaces/FormSubmitFailedMethod.html" target="_self">FormSubmitFailedMethod | null</a>, submitSuccessfulMethod: <a href="../interfaces/FormSubmitSuccessfulMethod.html" target="_self">FormSubmitSuccessfulMethod | null</a>, formDefinitionBuilder: <a href="../classes/RxapFormBuilder.html" target="_self">RxapFormBuilder | null</a>, loadingIndicatorService: LoadingIndicatorService | null)</code>
409
+ </td>
410
+ </tr>
411
+ <tr>
412
+ <td class="col-md-4">
413
+ <div class="io-line">Defined in <a href="" data-line="186" class="link-to-prism">src/lib/directives/form.directive.ts:186</a></div>
414
+ </td>
415
+ </tr>
416
+
417
+ <tr>
418
+ <td class="col-md-4">
419
+ <div>
420
+ <b>Parameters :</b>
421
+ <table class="params">
422
+ <thead>
423
+ <tr>
424
+ <td>Name</td>
425
+ <td>Type</td>
426
+ <td>Optional</td>
427
+ </tr>
428
+ </thead>
429
+ <tbody>
430
+ <tr>
431
+ <td>cdr</td>
432
+
433
+ <td>
434
+ <code>ChangeDetectorRef</code>
435
+ </td>
436
+
437
+ <td>
438
+ No
439
+ </td>
440
+
441
+ </tr>
442
+ <tr>
443
+ <td>formDefinition</td>
444
+
445
+ <td>
446
+ <code><a href="../interfaces/FormDefinition.html" target="_self" >FormDefinition | null</a></code>
447
+ </td>
448
+
449
+ <td>
450
+ No
451
+ </td>
452
+
453
+ </tr>
454
+ <tr>
455
+ <td>submitMethod</td>
456
+
457
+ <td>
458
+ <code><a href="../interfaces/FormSubmitMethod.html" target="_self" >FormSubmitMethod&lt;any&gt; | null</a></code>
459
+ </td>
460
+
461
+ <td>
462
+ No
463
+ </td>
464
+
465
+ </tr>
466
+ <tr>
467
+ <td>loadMethod</td>
468
+
469
+ <td>
470
+ <code><a href="../interfaces/FormLoadMethod.html" target="_self" >FormLoadMethod | null</a></code>
471
+ </td>
472
+
473
+ <td>
474
+ No
475
+ </td>
476
+
477
+ </tr>
478
+ <tr>
479
+ <td>loadFailedMethod</td>
480
+
481
+ <td>
482
+ <code><a href="../interfaces/FormLoadFailedMethod.html" target="_self" >FormLoadFailedMethod | null</a></code>
483
+ </td>
484
+
485
+ <td>
486
+ No
487
+ </td>
488
+
489
+ </tr>
490
+ <tr>
491
+ <td>loadSuccessfulMethod</td>
492
+
493
+ <td>
494
+ <code><a href="../interfaces/FormLoadSuccessfulMethod.html" target="_self" >FormLoadSuccessfulMethod | null</a></code>
495
+ </td>
496
+
497
+ <td>
498
+ No
499
+ </td>
500
+
501
+ </tr>
502
+ <tr>
503
+ <td>submitFailedMethod</td>
504
+
505
+ <td>
506
+ <code><a href="../interfaces/FormSubmitFailedMethod.html" target="_self" >FormSubmitFailedMethod | null</a></code>
507
+ </td>
508
+
509
+ <td>
510
+ No
511
+ </td>
512
+
513
+ </tr>
514
+ <tr>
515
+ <td>submitSuccessfulMethod</td>
516
+
517
+ <td>
518
+ <code><a href="../interfaces/FormSubmitSuccessfulMethod.html" target="_self" >FormSubmitSuccessfulMethod | null</a></code>
519
+ </td>
520
+
521
+ <td>
522
+ No
523
+ </td>
524
+
525
+ </tr>
526
+ <tr>
527
+ <td>formDefinitionBuilder</td>
528
+
529
+ <td>
530
+ <code><a href="../classes/RxapFormBuilder.html" target="_self" >RxapFormBuilder | null</a></code>
531
+ </td>
532
+
533
+ <td>
534
+ No
535
+ </td>
536
+
537
+ </tr>
538
+ <tr>
539
+ <td>loadingIndicatorService</td>
540
+
541
+ <td>
542
+ <code>LoadingIndicatorService | null</code>
543
+ </td>
544
+
545
+ <td>
546
+ No
547
+ </td>
548
+
549
+ </tr>
550
+ </tbody>
551
+ </table>
552
+ </div>
553
+ </td>
554
+ </tr>
555
+ </tbody>
556
+ </table>
557
+ </section>
558
+
559
+ <section data-compodoc="block-inputs">
560
+ <h3 id="inputs">Inputs</h3>
561
+ <table class="table table-sm table-bordered">
562
+ <tbody>
563
+ <tr>
564
+ <td class="col-md-4">
565
+ <a name="initial"></a>
566
+ <b>initial</b>
567
+ </td>
568
+ </tr>
569
+ <tr>
570
+ <td class="col-md-4">
571
+ <i>Type : </i> <code>T</code>
572
+
573
+ </td>
574
+ </tr>
575
+ <tr>
576
+ <td class="col-md-2" colspan="2">
577
+ <div class="io-line">Defined in <a href="" data-line="119" class="link-to-prism">src/lib/directives/form.directive.ts:119</a></div>
578
+ </td>
579
+ </tr>
580
+ </tbody>
581
+ </table>
582
+ <table class="table table-sm table-bordered">
583
+ <tbody>
584
+ <tr>
585
+ <td class="col-md-4">
586
+ <a name="rxapForm"></a>
587
+ <b>rxapForm</b>
588
+ </td>
589
+ </tr>
590
+ <tr>
591
+ <td class="col-md-4">
592
+ <i>Type : </i> <code><a href="../interfaces/FormDefinition.html" target="_self" >FormDefinition | string</a></code>
593
+
594
+ </td>
595
+ </tr>
596
+ <tr>
597
+ <td class="col-md-2" colspan="2">
598
+ <div class="io-line">Defined in <a href="" data-line="164" class="link-to-prism">src/lib/directives/form.directive.ts:164</a></div>
599
+ </td>
600
+ </tr>
601
+ </tbody>
602
+ </table>
603
+ <table class="table table-sm table-bordered">
604
+ <tbody>
605
+ <tr>
606
+ <td class="col-md-4">
607
+ <a name="submitMethod"></a>
608
+ <b>submitMethod</b>
609
+ </td>
610
+ </tr>
611
+ <tr>
612
+ <td class="col-md-4">
613
+ <i>Type : </i> <code><a href="../interfaces/FormSubmitMethod.html" target="_self" >FormSubmitMethod&lt;any&gt; | null</a></code>
614
+
615
+ </td>
616
+ </tr>
617
+ <tr>
618
+ <td class="col-md-4">
619
+ <i>Default value : </i><code>null</code>
620
+ </td>
621
+ </tr>
622
+ <tr>
623
+ <td class="col-md-2" colspan="2">
624
+ <div class="io-line">Defined in <a href="" data-line="184" class="link-to-prism">src/lib/directives/form.directive.ts:184</a></div>
625
+ </td>
626
+ </tr>
627
+ </tbody>
628
+ </table>
629
+ </section>
630
+ <section data-compodoc="block-outputs">
631
+ <h3 id="outputs">Outputs</h3>
632
+ <table class="table table-sm table-bordered">
633
+ <tbody>
634
+ <tr>
635
+ <td class="col-md-4">
636
+ <a name="invalidSubmit"></a>
637
+ <b>invalidSubmit</b>
638
+ </td>
639
+ </tr>
640
+ <tr>
641
+ <td class="col-md-4">
642
+ <i>Type : </i> <code>EventEmitter</code>
643
+
644
+ </td>
645
+ </tr>
646
+ <tr>
647
+ <td class="col-md-2" colspan="2">
648
+ <div class="io-line">Defined in <a href="" data-line="132" class="link-to-prism">src/lib/directives/form.directive.ts:132</a></div>
649
+ </td>
650
+ </tr>
651
+ </tbody>
652
+ </table>
653
+ <table class="table table-sm table-bordered">
654
+ <tbody>
655
+ <tr>
656
+ <td class="col-md-4">
657
+ <a name="rxapSubmit"></a>
658
+ <b>rxapSubmit</b>
659
+ </td>
660
+ </tr>
661
+ <tr>
662
+ <td class="col-md-4">
663
+ <i>Type : </i> <code>EventEmitter</code>
664
+
665
+ </td>
666
+ </tr>
667
+ <tr>
668
+ <td class="col-md-2" colspan="2">
669
+ <div class="io-line">Defined in <a href="" data-line="129" class="link-to-prism">src/lib/directives/form.directive.ts:129</a></div>
670
+ </td>
671
+ </tr>
672
+ <tr>
673
+ <td class="col-md-4">
674
+ <div class="io-description"><p>Emits when the submit method is executed without errors. The result of the
675
+ submit method is passed as event object.</p>
676
+ <p>If no submit method is defined then emit after the submit button
677
+ is clicked.</p>
678
+ </div>
679
+ </td>
680
+ </tr>
681
+ </tbody>
682
+ </table>
683
+ <table class="table table-sm table-bordered">
684
+ <tbody>
685
+ <tr>
686
+ <td class="col-md-4">
687
+ <a name="submitSuccessful"></a>
688
+ <b>submitSuccessful</b>
689
+ </td>
690
+ </tr>
691
+ <tr>
692
+ <td class="col-md-4">
693
+ <i>Type : </i> <code>EventEmitter</code>
694
+
695
+ </td>
696
+ </tr>
697
+ <tr>
698
+ <td class="col-md-2" colspan="2">
699
+ <div class="io-line">Defined in <a href="" data-line="136" class="link-to-prism">src/lib/directives/form.directive.ts:136</a></div>
700
+ </td>
701
+ </tr>
702
+ </tbody>
703
+ </table>
704
+ </section>
705
+ <section data-compodoc="block-properties">
706
+ <h3>HostBindings</h3> <table class="table table-sm table-bordered">
707
+ <tbody>
708
+ <tr>
709
+ <td class="col-md-4">
710
+ <a name="class.rxap-loaded"></a>
711
+ <span class="name">
712
+ <span ><b>class.rxap-loaded</b></span>
713
+ <a href="#class.rxap-loaded"><span class="icon ion-ios-link"></span></a>
714
+ </span>
715
+ </td>
716
+ </tr>
717
+ <tr>
718
+ <td class="col-md-4">
719
+ <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
720
+
721
+ </td>
722
+ </tr>
723
+ <tr>
724
+ <td class="col-md-4">
725
+ <div class="io-line">Defined in <a href="" data-line="154" class="link-to-prism">src/lib/directives/form.directive.ts:154</a></div>
726
+ </td>
727
+ </tr>
728
+
729
+
730
+ </tbody>
731
+ </table>
732
+ <table class="table table-sm table-bordered">
733
+ <tbody>
734
+ <tr>
735
+ <td class="col-md-4">
736
+ <a name="class.rxap-loading"></a>
737
+ <span class="name">
738
+ <span ><b>class.rxap-loading</b></span>
739
+ <a href="#class.rxap-loading"><span class="icon ion-ios-link"></span></a>
740
+ </span>
741
+ </td>
742
+ </tr>
743
+ <tr>
744
+ <td class="col-md-4">
745
+ <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
746
+
747
+ </td>
748
+ </tr>
749
+ <tr>
750
+ <td class="col-md-4">
751
+ <div class="io-line">Defined in <a href="" data-line="149" class="link-to-prism">src/lib/directives/form.directive.ts:149</a></div>
752
+ </td>
753
+ </tr>
754
+
755
+
756
+ </tbody>
757
+ </table>
758
+ <table class="table table-sm table-bordered">
759
+ <tbody>
760
+ <tr>
761
+ <td class="col-md-4">
762
+ <a name="class.rxap-loading-error"></a>
763
+ <span class="name">
764
+ <span ><b>class.rxap-loading-error</b></span>
765
+ <a href="#class.rxap-loading-error"><span class="icon ion-ios-link"></span></a>
766
+ </span>
767
+ </td>
768
+ </tr>
769
+ <tr>
770
+ <td class="col-md-4">
771
+ <i>Type : </i> <code>Error | null</code>
772
+
773
+ </td>
774
+ </tr>
775
+ <tr>
776
+ <td class="col-md-4">
777
+ <div class="io-line">Defined in <a href="" data-line="159" class="link-to-prism">src/lib/directives/form.directive.ts:159</a></div>
778
+ </td>
779
+ </tr>
780
+
781
+
782
+ </tbody>
783
+ </table>
784
+ <table class="table table-sm table-bordered">
785
+ <tbody>
786
+ <tr>
787
+ <td class="col-md-4">
788
+ <a name="class.rxap-submit-error"></a>
789
+ <span class="name">
790
+ <span ><b>class.rxap-submit-error</b></span>
791
+ <a href="#class.rxap-submit-error"><span class="icon ion-ios-link"></span></a>
792
+ </span>
793
+ </td>
794
+ </tr>
795
+ <tr>
796
+ <td class="col-md-4">
797
+ <i>Type : </i> <code>Error | null</code>
798
+
799
+ </td>
800
+ </tr>
801
+ <tr>
802
+ <td class="col-md-4">
803
+ <div class="io-line">Defined in <a href="" data-line="144" class="link-to-prism">src/lib/directives/form.directive.ts:144</a></div>
804
+ </td>
805
+ </tr>
806
+
807
+
808
+ </tbody>
809
+ </table>
810
+ <table class="table table-sm table-bordered">
811
+ <tbody>
812
+ <tr>
813
+ <td class="col-md-4">
814
+ <a name="class.rxap-submitting"></a>
815
+ <span class="name">
816
+ <span ><b>class.rxap-submitting</b></span>
817
+ <a href="#class.rxap-submitting"><span class="icon ion-ios-link"></span></a>
818
+ </span>
819
+ </td>
820
+ </tr>
821
+ <tr>
822
+ <td class="col-md-4">
823
+ <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
824
+
825
+ </td>
826
+ </tr>
827
+ <tr>
828
+ <td class="col-md-4">
829
+ <div class="io-line">Defined in <a href="" data-line="139" class="link-to-prism">src/lib/directives/form.directive.ts:139</a></div>
830
+ </td>
831
+ </tr>
832
+
833
+
834
+ </tbody>
835
+ </table>
836
+ </section>
837
+
838
+
839
+ <section data-compodoc="block-methods">
840
+
841
+ <h3 id="methods">
842
+ Methods
843
+ </h3>
844
+ <table class="table table-sm table-bordered">
845
+ <tbody>
846
+ <tr>
847
+ <td class="col-md-4">
848
+ <a name="getSubmitValue"></a>
849
+ <span class="name">
850
+ <span class="modifier">Protected</span>
851
+ <span ><b>getSubmitValue</b></span>
852
+ <a href="#getSubmitValue"><span class="icon ion-ios-link"></span></a>
853
+ </span>
854
+ </td>
855
+ </tr>
856
+ <tr>
857
+ <td class="col-md-4">
858
+ <span class="modifier-icon icon ion-ios-reset"></span>
859
+ <code>getSubmitValue()</code>
860
+ </td>
861
+ </tr>
862
+
863
+
864
+ <tr>
865
+ <td class="col-md-4">
866
+ <div class="io-line">Defined in <a href="" data-line="454"
867
+ class="link-to-prism">src/lib/directives/form.directive.ts:454</a></div>
868
+ </td>
869
+ </tr>
870
+
871
+
872
+ <tr>
873
+ <td class="col-md-4">
874
+
875
+ <div class="io-description">
876
+ <b>Returns : </b> <code>T</code>
877
+
878
+ </div>
879
+ </td>
880
+ </tr>
881
+ </tbody>
882
+ </table>
883
+ <table class="table table-sm table-bordered">
884
+ <tbody>
885
+ <tr>
886
+ <td class="col-md-4">
887
+ <a name="loadFailed"></a>
888
+ <span class="name">
889
+ <span class="modifier">Protected</span>
890
+ <span ><b>loadFailed</b></span>
891
+ <a href="#loadFailed"><span class="icon ion-ios-link"></span></a>
892
+ </span>
893
+ </td>
894
+ </tr>
895
+ <tr>
896
+ <td class="col-md-4">
897
+ <span class="modifier-icon icon ion-ios-reset"></span>
898
+ <code>loadFailed(error: Error)</code>
899
+ </td>
900
+ </tr>
901
+
902
+
903
+ <tr>
904
+ <td class="col-md-4">
905
+ <div class="io-line">Defined in <a href="" data-line="444"
906
+ class="link-to-prism">src/lib/directives/form.directive.ts:444</a></div>
907
+ </td>
908
+ </tr>
909
+
910
+
911
+ <tr>
912
+ <td class="col-md-4">
913
+
914
+ <div class="io-description">
915
+ <b>Parameters :</b>
916
+
917
+ <table class="params">
918
+ <thead>
919
+ <tr>
920
+ <td>Name</td>
921
+ <td>Type</td>
922
+ <td>Optional</td>
923
+ </tr>
924
+ </thead>
925
+ <tbody>
926
+ <tr>
927
+ <td>error</td>
928
+ <td>
929
+ <code>Error</code>
930
+ </td>
931
+
932
+ <td>
933
+ No
934
+ </td>
935
+
936
+
937
+ </tr>
938
+ </tbody>
939
+ </table>
940
+ </div>
941
+ <div class="io-description">
942
+ <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
943
+
944
+ </div>
945
+ <div class="io-description">
946
+
947
+ </div>
948
+ </td>
949
+ </tr>
950
+ </tbody>
951
+ </table>
952
+ <table class="table table-sm table-bordered">
953
+ <tbody>
954
+ <tr>
955
+ <td class="col-md-4">
956
+ <a name="loadInitialState"></a>
957
+ <span class="name">
958
+ <span class="modifier">Protected</span>
959
+ <span ><b>loadInitialState</b></span>
960
+ <a href="#loadInitialState"><span class="icon ion-ios-link"></span></a>
961
+ </span>
962
+ </td>
963
+ </tr>
964
+ <tr>
965
+ <td class="col-md-4">
966
+ <span class="modifier-icon icon ion-ios-reset"></span>
967
+ <code>loadInitialState(form: <a href="../classes/RxapFormGroup.html" target="_self">RxapFormGroup</a>)</code>
968
+ </td>
969
+ </tr>
970
+
971
+
972
+ <tr>
973
+ <td class="col-md-4">
974
+ <div class="io-line">Defined in <a href="" data-line="384"
975
+ class="link-to-prism">src/lib/directives/form.directive.ts:384</a></div>
976
+ </td>
977
+ </tr>
978
+
979
+
980
+ <tr>
981
+ <td class="col-md-4">
982
+
983
+ <div class="io-description">
984
+ <b>Parameters :</b>
985
+
986
+ <table class="params">
987
+ <thead>
988
+ <tr>
989
+ <td>Name</td>
990
+ <td>Type</td>
991
+ <td>Optional</td>
992
+ </tr>
993
+ </thead>
994
+ <tbody>
995
+ <tr>
996
+ <td>form</td>
997
+ <td>
998
+ <code><a href="../classes/RxapFormGroup.html" target="_self" >RxapFormGroup</a></code>
999
+ </td>
1000
+
1001
+ <td>
1002
+ No
1003
+ </td>
1004
+
1005
+
1006
+ </tr>
1007
+ </tbody>
1008
+ </table>
1009
+ </div>
1010
+ <div class="io-description">
1011
+ <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
1012
+
1013
+ </div>
1014
+ <div class="io-description">
1015
+
1016
+ </div>
1017
+ </td>
1018
+ </tr>
1019
+ </tbody>
1020
+ </table>
1021
+ <table class="table table-sm table-bordered">
1022
+ <tbody>
1023
+ <tr>
1024
+ <td class="col-md-4">
1025
+ <a name="loadSuccessful"></a>
1026
+ <span class="name">
1027
+ <span class="modifier">Protected</span>
1028
+ <span ><b>loadSuccessful</b></span>
1029
+ <a href="#loadSuccessful"><span class="icon ion-ios-link"></span></a>
1030
+ </span>
1031
+ </td>
1032
+ </tr>
1033
+ <tr>
1034
+ <td class="col-md-4">
1035
+ <span class="modifier-icon icon ion-ios-reset"></span>
1036
+ <code>loadSuccessful(value: <a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank">any</a>)</code>
1037
+ </td>
1038
+ </tr>
1039
+
1040
+
1041
+ <tr>
1042
+ <td class="col-md-4">
1043
+ <div class="io-line">Defined in <a href="" data-line="434"
1044
+ class="link-to-prism">src/lib/directives/form.directive.ts:434</a></div>
1045
+ </td>
1046
+ </tr>
1047
+
1048
+
1049
+ <tr>
1050
+ <td class="col-md-4">
1051
+
1052
+ <div class="io-description">
1053
+ <b>Parameters :</b>
1054
+
1055
+ <table class="params">
1056
+ <thead>
1057
+ <tr>
1058
+ <td>Name</td>
1059
+ <td>Type</td>
1060
+ <td>Optional</td>
1061
+ </tr>
1062
+ </thead>
1063
+ <tbody>
1064
+ <tr>
1065
+ <td>value</td>
1066
+ <td>
1067
+ <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
1068
+ </td>
1069
+
1070
+ <td>
1071
+ No
1072
+ </td>
1073
+
1074
+
1075
+ </tr>
1076
+ </tbody>
1077
+ </table>
1078
+ </div>
1079
+ <div class="io-description">
1080
+ <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
1081
+
1082
+ </div>
1083
+ <div class="io-description">
1084
+
1085
+ </div>
1086
+ </td>
1087
+ </tr>
1088
+ </tbody>
1089
+ </table>
1090
+ <table class="table table-sm table-bordered">
1091
+ <tbody>
1092
+ <tr>
1093
+ <td class="col-md-4">
1094
+ <a name="onSubmit"></a>
1095
+ <span class="name">
1096
+ <span class="modifier">Public</span>
1097
+ <span class="modifier"></span>
1098
+ <span ><b>onSubmit</b></span>
1099
+ <a href="#onSubmit"><span class="icon ion-ios-link"></span></a>
1100
+ </span>
1101
+ </td>
1102
+ </tr>
1103
+ <tr>
1104
+ <td class="col-md-4">
1105
+ <span class="modifier-icon icon ion-ios-reset"></span>
1106
+ <code>onSubmit($event: Event)</code>
1107
+ </td>
1108
+ </tr>
1109
+
1110
+
1111
+ <tr>
1112
+ <td class="col-md-4">
1113
+ <div class="io-line">Defined in <a href="" data-line="302"
1114
+ class="link-to-prism">src/lib/directives/form.directive.ts:302</a></div>
1115
+ </td>
1116
+ </tr>
1117
+
1118
+
1119
+ <tr>
1120
+ <td class="col-md-4">
1121
+
1122
+ <div class="io-description">
1123
+ <b>Parameters :</b>
1124
+
1125
+ <table class="params">
1126
+ <thead>
1127
+ <tr>
1128
+ <td>Name</td>
1129
+ <td>Type</td>
1130
+ <td>Optional</td>
1131
+ </tr>
1132
+ </thead>
1133
+ <tbody>
1134
+ <tr>
1135
+ <td>$event</td>
1136
+ <td>
1137
+ <code>Event</code>
1138
+ </td>
1139
+
1140
+ <td>
1141
+ No
1142
+ </td>
1143
+
1144
+
1145
+ </tr>
1146
+ </tbody>
1147
+ </table>
1148
+ </div>
1149
+ <div class="io-description">
1150
+ <b>Returns : </b> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
1151
+
1152
+ </div>
1153
+ <div class="io-description">
1154
+
1155
+ </div>
1156
+ </td>
1157
+ </tr>
1158
+ </tbody>
1159
+ </table>
1160
+ <table class="table table-sm table-bordered">
1161
+ <tbody>
1162
+ <tr>
1163
+ <td class="col-md-4">
1164
+ <a name="submit"></a>
1165
+ <span class="name">
1166
+ <span class="modifier">Protected</span>
1167
+ <span ><b>submit</b></span>
1168
+ <a href="#submit"><span class="icon ion-ios-link"></span></a>
1169
+ </span>
1170
+ </td>
1171
+ </tr>
1172
+ <tr>
1173
+ <td class="col-md-4">
1174
+ <span class="modifier-icon icon ion-ios-reset"></span>
1175
+ <code>submit()</code>
1176
+ </td>
1177
+ </tr>
1178
+
1179
+
1180
+ <tr>
1181
+ <td class="col-md-4">
1182
+ <div class="io-line">Defined in <a href="" data-line="468"
1183
+ class="link-to-prism">src/lib/directives/form.directive.ts:468</a></div>
1184
+ </td>
1185
+ </tr>
1186
+
1187
+
1188
+ <tr>
1189
+ <td class="col-md-4">
1190
+
1191
+ <div class="io-description">
1192
+ <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
1193
+
1194
+ </div>
1195
+ </td>
1196
+ </tr>
1197
+ </tbody>
1198
+ </table>
1199
+ <table class="table table-sm table-bordered">
1200
+ <tbody>
1201
+ <tr>
1202
+ <td class="col-md-4">
1203
+ <a name="submitFailed"></a>
1204
+ <span class="name">
1205
+ <span class="modifier">Protected</span>
1206
+ <span ><b>submitFailed</b></span>
1207
+ <a href="#submitFailed"><span class="icon ion-ios-link"></span></a>
1208
+ </span>
1209
+ </td>
1210
+ </tr>
1211
+ <tr>
1212
+ <td class="col-md-4">
1213
+ <span class="modifier-icon icon ion-ios-reset"></span>
1214
+ <code>submitFailed(error: Error)</code>
1215
+ </td>
1216
+ </tr>
1217
+
1218
+
1219
+ <tr>
1220
+ <td class="col-md-4">
1221
+ <div class="io-line">Defined in <a href="" data-line="514"
1222
+ class="link-to-prism">src/lib/directives/form.directive.ts:514</a></div>
1223
+ </td>
1224
+ </tr>
1225
+
1226
+
1227
+ <tr>
1228
+ <td class="col-md-4">
1229
+
1230
+ <div class="io-description">
1231
+ <b>Parameters :</b>
1232
+
1233
+ <table class="params">
1234
+ <thead>
1235
+ <tr>
1236
+ <td>Name</td>
1237
+ <td>Type</td>
1238
+ <td>Optional</td>
1239
+ </tr>
1240
+ </thead>
1241
+ <tbody>
1242
+ <tr>
1243
+ <td>error</td>
1244
+ <td>
1245
+ <code>Error</code>
1246
+ </td>
1247
+
1248
+ <td>
1249
+ No
1250
+ </td>
1251
+
1252
+
1253
+ </tr>
1254
+ </tbody>
1255
+ </table>
1256
+ </div>
1257
+ <div class="io-description">
1258
+ <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
1259
+
1260
+ </div>
1261
+ <div class="io-description">
1262
+
1263
+ </div>
1264
+ </td>
1265
+ </tr>
1266
+ </tbody>
1267
+ </table>
1268
+ <table class="table table-sm table-bordered">
1269
+ <tbody>
1270
+ <tr>
1271
+ <td class="col-md-4">
1272
+ <a name="submitSuccessful"></a>
1273
+ <span class="name">
1274
+ <span class="modifier">Protected</span>
1275
+ <span ><b>submitSuccessful</b></span>
1276
+ <a href="#submitSuccessful"><span class="icon ion-ios-link"></span></a>
1277
+ </span>
1278
+ </td>
1279
+ </tr>
1280
+ <tr>
1281
+ <td class="col-md-4">
1282
+ <span class="modifier-icon icon ion-ios-reset"></span>
1283
+ <code>submitSuccessful(value: <a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank">any</a>)</code>
1284
+ </td>
1285
+ </tr>
1286
+
1287
+
1288
+ <tr>
1289
+ <td class="col-md-4">
1290
+ <div class="io-line">Defined in <a href="" data-line="527"
1291
+ class="link-to-prism">src/lib/directives/form.directive.ts:527</a></div>
1292
+ </td>
1293
+ </tr>
1294
+
1295
+
1296
+ <tr>
1297
+ <td class="col-md-4">
1298
+
1299
+ <div class="io-description">
1300
+ <b>Parameters :</b>
1301
+
1302
+ <table class="params">
1303
+ <thead>
1304
+ <tr>
1305
+ <td>Name</td>
1306
+ <td>Type</td>
1307
+ <td>Optional</td>
1308
+ </tr>
1309
+ </thead>
1310
+ <tbody>
1311
+ <tr>
1312
+ <td>value</td>
1313
+ <td>
1314
+ <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
1315
+ </td>
1316
+
1317
+ <td>
1318
+ No
1319
+ </td>
1320
+
1321
+
1322
+ </tr>
1323
+ </tbody>
1324
+ </table>
1325
+ </div>
1326
+ <div class="io-description">
1327
+ <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
1328
+
1329
+ </div>
1330
+ <div class="io-description">
1331
+
1332
+ </div>
1333
+ </td>
1334
+ </tr>
1335
+ </tbody>
1336
+ </table>
1337
+ </section>
1338
+ <section data-compodoc="block-properties">
1339
+
1340
+ <h3 id="inputs">
1341
+ Properties
1342
+ </h3>
1343
+ <table class="table table-sm table-bordered">
1344
+ <tbody>
1345
+ <tr>
1346
+ <td class="col-md-4">
1347
+ <a name="_formDefinition"></a>
1348
+ <span class="name">
1349
+ <span class="modifier">Protected</span>
1350
+ <span ><b>_formDefinition</b></span>
1351
+ <a href="#_formDefinition"><span class="icon ion-ios-link"></span></a>
1352
+ </span>
1353
+ </td>
1354
+ </tr>
1355
+ <tr>
1356
+ <td class="col-md-4">
1357
+ <i>Type : </i> <code><a href="../interfaces/FormDefinition.html" target="_self" >FormDefinition&lt;T&gt;</a></code>
1358
+
1359
+ </td>
1360
+ </tr>
1361
+ <tr>
1362
+ <td class="col-md-4">
1363
+ <div class="io-line">Defined in <a href="" data-line="181" class="link-to-prism">src/lib/directives/form.directive.ts:181</a></div>
1364
+ </td>
1365
+ </tr>
1366
+
1367
+
1368
+ </tbody>
1369
+ </table>
1370
+ <table class="table table-sm table-bordered">
1371
+ <tbody>
1372
+ <tr>
1373
+ <td class="col-md-4">
1374
+ <a name="cdr"></a>
1375
+ <span class="name">
1376
+ <span class="modifier"></span>
1377
+ <span class="modifier">Public</span>
1378
+ <span class="modifier">Readonly</span>
1379
+ <span ><b>cdr</b></span>
1380
+ <a href="#cdr"><span class="icon ion-ios-link"></span></a>
1381
+ </span>
1382
+ </td>
1383
+ </tr>
1384
+ <tr>
1385
+ <td class="col-md-4">
1386
+ <i>Type : </i> <code>ChangeDetectorRef</code>
1387
+
1388
+ </td>
1389
+ </tr>
1390
+ <tr>
1391
+ <td class="col-md-4">
1392
+ <b>Decorators : </b>
1393
+ <br />
1394
+ <code>
1395
+ @Inject(ChangeDetectorRef)<br />
1396
+ </code>
1397
+ </td>
1398
+ </tr>
1399
+ <tr>
1400
+ <td class="col-md-4">
1401
+ <div class="io-line">Defined in <a href="" data-line="189" class="link-to-prism">src/lib/directives/form.directive.ts:189</a></div>
1402
+ </td>
1403
+ </tr>
1404
+
1405
+
1406
+ </tbody>
1407
+ </table>
1408
+ <table class="table table-sm table-bordered">
1409
+ <tbody>
1410
+ <tr>
1411
+ <td class="col-md-4">
1412
+ <a name="form"></a>
1413
+ <span class="name">
1414
+ <span class="modifier">Public</span>
1415
+ <span class="modifier"></span>
1416
+ <span ><b>form</b></span>
1417
+ <a href="#form"><span class="icon ion-ios-link"></span></a>
1418
+ </span>
1419
+ </td>
1420
+ </tr>
1421
+ <tr>
1422
+ <td class="col-md-4">
1423
+ <i>Type : </i> <code><a href="../classes/RxapFormGroup.html" target="_self" >RxapFormGroup&lt;T&gt;</a></code>
1424
+
1425
+ </td>
1426
+ </tr>
1427
+ <tr>
1428
+ <td class="col-md-4">
1429
+ <div class="io-line">Defined in <a href="" data-line="116" class="link-to-prism">src/lib/directives/form.directive.ts:116</a></div>
1430
+ </td>
1431
+ </tr>
1432
+
1433
+
1434
+ </tbody>
1435
+ </table>
1436
+ <table class="table table-sm table-bordered">
1437
+ <tbody>
1438
+ <tr>
1439
+ <td class="col-md-4">
1440
+ <a name="loaded$"></a>
1441
+ <span class="name">
1442
+ <span class="modifier">Public</span>
1443
+ <span class="modifier">Readonly</span>
1444
+ <span ><b>loaded$</b></span>
1445
+ <a href="#loaded$"><span class="icon ion-ios-link"></span></a>
1446
+ </span>
1447
+ </td>
1448
+ </tr>
1449
+ <tr>
1450
+ <td class="col-md-4">
1451
+ <i>Default value : </i><code>new ToggleSubject()</code>
1452
+ </td>
1453
+ </tr>
1454
+ <tr>
1455
+ <td class="col-md-4">
1456
+ <div class="io-line">Defined in <a href="" data-line="178" class="link-to-prism">src/lib/directives/form.directive.ts:178</a></div>
1457
+ </td>
1458
+ </tr>
1459
+
1460
+
1461
+ </tbody>
1462
+ </table>
1463
+ <table class="table table-sm table-bordered">
1464
+ <tbody>
1465
+ <tr>
1466
+ <td class="col-md-4">
1467
+ <a name="loading$"></a>
1468
+ <span class="name">
1469
+ <span class="modifier">Public</span>
1470
+ <span class="modifier">Readonly</span>
1471
+ <span ><b>loading$</b></span>
1472
+ <a href="#loading$"><span class="icon ion-ios-link"></span></a>
1473
+ </span>
1474
+ </td>
1475
+ </tr>
1476
+ <tr>
1477
+ <td class="col-md-4">
1478
+ <i>Default value : </i><code>new ToggleSubject()</code>
1479
+ </td>
1480
+ </tr>
1481
+ <tr>
1482
+ <td class="col-md-4">
1483
+ <div class="io-line">Defined in <a href="" data-line="177" class="link-to-prism">src/lib/directives/form.directive.ts:177</a></div>
1484
+ </td>
1485
+ </tr>
1486
+
1487
+
1488
+ </tbody>
1489
+ </table>
1490
+ <table class="table table-sm table-bordered">
1491
+ <tbody>
1492
+ <tr>
1493
+ <td class="col-md-4">
1494
+ <a name="loadingError$"></a>
1495
+ <span class="name">
1496
+ <span class="modifier">Public</span>
1497
+ <span class="modifier">Readonly</span>
1498
+ <span ><b>loadingError$</b></span>
1499
+ <a href="#loadingError$"><span class="icon ion-ios-link"></span></a>
1500
+ </span>
1501
+ </td>
1502
+ </tr>
1503
+ <tr>
1504
+ <td class="col-md-4">
1505
+ <i>Default value : </i><code>new BehaviorSubject&lt;Error | null&gt;(null)</code>
1506
+ </td>
1507
+ </tr>
1508
+ <tr>
1509
+ <td class="col-md-4">
1510
+ <div class="io-line">Defined in <a href="" data-line="179" class="link-to-prism">src/lib/directives/form.directive.ts:179</a></div>
1511
+ </td>
1512
+ </tr>
1513
+
1514
+
1515
+ </tbody>
1516
+ </table>
1517
+ <table class="table table-sm table-bordered">
1518
+ <tbody>
1519
+ <tr>
1520
+ <td class="col-md-4">
1521
+ <a name="submitError$"></a>
1522
+ <span class="name">
1523
+ <span class="modifier">Public</span>
1524
+ <span class="modifier">Readonly</span>
1525
+ <span ><b>submitError$</b></span>
1526
+ <a href="#submitError$"><span class="icon ion-ios-link"></span></a>
1527
+ </span>
1528
+ </td>
1529
+ </tr>
1530
+ <tr>
1531
+ <td class="col-md-4">
1532
+ <i>Default value : </i><code>new BehaviorSubject&lt;Error | null&gt;(null)</code>
1533
+ </td>
1534
+ </tr>
1535
+ <tr>
1536
+ <td class="col-md-4">
1537
+ <div class="io-line">Defined in <a href="" data-line="176" class="link-to-prism">src/lib/directives/form.directive.ts:176</a></div>
1538
+ </td>
1539
+ </tr>
1540
+
1541
+
1542
+ </tbody>
1543
+ </table>
1544
+ <table class="table table-sm table-bordered">
1545
+ <tbody>
1546
+ <tr>
1547
+ <td class="col-md-4">
1548
+ <a name="submitting$"></a>
1549
+ <span class="name">
1550
+ <span class="modifier">Public</span>
1551
+ <span class="modifier">Readonly</span>
1552
+ <span ><b>submitting$</b></span>
1553
+ <a href="#submitting$"><span class="icon ion-ios-link"></span></a>
1554
+ </span>
1555
+ </td>
1556
+ </tr>
1557
+ <tr>
1558
+ <td class="col-md-4">
1559
+ <i>Default value : </i><code>new ToggleSubject()</code>
1560
+ </td>
1561
+ </tr>
1562
+ <tr>
1563
+ <td class="col-md-4">
1564
+ <div class="io-line">Defined in <a href="" data-line="175" class="link-to-prism">src/lib/directives/form.directive.ts:175</a></div>
1565
+ </td>
1566
+ </tr>
1567
+
1568
+
1569
+ </tbody>
1570
+ </table>
1571
+ </section>
1572
+
1573
+ <section data-compodoc="block-accessors">
1574
+ <h3 id="accessors">
1575
+ Accessors
1576
+ </h3>
1577
+ <table class="table table-sm table-bordered">
1578
+ <tbody>
1579
+ <tr>
1580
+ <td class="col-md-4">
1581
+ <a name="submitting"></a>
1582
+ <span class="name"><b>submitting</b><a href="#submitting"><span class="icon ion-ios-link"></span></a></span>
1583
+ </td>
1584
+ </tr>
1585
+
1586
+ <tr>
1587
+ <td class="col-md-4">
1588
+ <span class="accessor"><b>get</b><code>submitting()</code></span>
1589
+ </td>
1590
+ </tr>
1591
+ <tr>
1592
+ <td class="col-md-4">
1593
+ <div class="io-line">Defined in <a href="" data-line="139" class="link-to-prism">src/lib/directives/form.directive.ts:139</a></div>
1594
+ </td>
1595
+ </tr>
1596
+
1597
+ </tbody>
1598
+ </table>
1599
+ <table class="table table-sm table-bordered">
1600
+ <tbody>
1601
+ <tr>
1602
+ <td class="col-md-4">
1603
+ <a name="submitError"></a>
1604
+ <span class="name"><b>submitError</b><a href="#submitError"><span class="icon ion-ios-link"></span></a></span>
1605
+ </td>
1606
+ </tr>
1607
+
1608
+ <tr>
1609
+ <td class="col-md-4">
1610
+ <span class="accessor"><b>get</b><code>submitError()</code></span>
1611
+ </td>
1612
+ </tr>
1613
+ <tr>
1614
+ <td class="col-md-4">
1615
+ <div class="io-line">Defined in <a href="" data-line="144" class="link-to-prism">src/lib/directives/form.directive.ts:144</a></div>
1616
+ </td>
1617
+ </tr>
1618
+
1619
+ </tbody>
1620
+ </table>
1621
+ <table class="table table-sm table-bordered">
1622
+ <tbody>
1623
+ <tr>
1624
+ <td class="col-md-4">
1625
+ <a name="loading"></a>
1626
+ <span class="name"><b>loading</b><a href="#loading"><span class="icon ion-ios-link"></span></a></span>
1627
+ </td>
1628
+ </tr>
1629
+
1630
+ <tr>
1631
+ <td class="col-md-4">
1632
+ <span class="accessor"><b>get</b><code>loading()</code></span>
1633
+ </td>
1634
+ </tr>
1635
+ <tr>
1636
+ <td class="col-md-4">
1637
+ <div class="io-line">Defined in <a href="" data-line="149" class="link-to-prism">src/lib/directives/form.directive.ts:149</a></div>
1638
+ </td>
1639
+ </tr>
1640
+
1641
+ </tbody>
1642
+ </table>
1643
+ <table class="table table-sm table-bordered">
1644
+ <tbody>
1645
+ <tr>
1646
+ <td class="col-md-4">
1647
+ <a name="loaded"></a>
1648
+ <span class="name"><b>loaded</b><a href="#loaded"><span class="icon ion-ios-link"></span></a></span>
1649
+ </td>
1650
+ </tr>
1651
+
1652
+ <tr>
1653
+ <td class="col-md-4">
1654
+ <span class="accessor"><b>get</b><code>loaded()</code></span>
1655
+ </td>
1656
+ </tr>
1657
+ <tr>
1658
+ <td class="col-md-4">
1659
+ <div class="io-line">Defined in <a href="" data-line="154" class="link-to-prism">src/lib/directives/form.directive.ts:154</a></div>
1660
+ </td>
1661
+ </tr>
1662
+
1663
+ </tbody>
1664
+ </table>
1665
+ <table class="table table-sm table-bordered">
1666
+ <tbody>
1667
+ <tr>
1668
+ <td class="col-md-4">
1669
+ <a name="loadingError"></a>
1670
+ <span class="name"><b>loadingError</b><a href="#loadingError"><span class="icon ion-ios-link"></span></a></span>
1671
+ </td>
1672
+ </tr>
1673
+
1674
+ <tr>
1675
+ <td class="col-md-4">
1676
+ <span class="accessor"><b>get</b><code>loadingError()</code></span>
1677
+ </td>
1678
+ </tr>
1679
+ <tr>
1680
+ <td class="col-md-4">
1681
+ <div class="io-line">Defined in <a href="" data-line="159" class="link-to-prism">src/lib/directives/form.directive.ts:159</a></div>
1682
+ </td>
1683
+ </tr>
1684
+
1685
+ </tbody>
1686
+ </table>
1687
+ <table class="table table-sm table-bordered">
1688
+ <tbody>
1689
+ <tr>
1690
+ <td class="col-md-4">
1691
+ <a name="useFormDefinition"></a>
1692
+ <span class="name"><b>useFormDefinition</b><a href="#useFormDefinition"><span class="icon ion-ios-link"></span></a></span>
1693
+ </td>
1694
+ </tr>
1695
+
1696
+
1697
+ <tr>
1698
+ <td class="col-md-4">
1699
+ <span class="accessor"><b>set</b><code>useFormDefinition(value: <a href="../interfaces/FormDefinition.html" target="_self">FormDefinition&lt;T&gt; | string</a>)</code></span>
1700
+ </td>
1701
+ </tr>
1702
+ <tr>
1703
+ <td class="col-md-4">
1704
+ <div class="io-line">Defined in <a href="" data-line="164" class="link-to-prism">src/lib/directives/form.directive.ts:164</a></div>
1705
+ </td>
1706
+ </tr>
1707
+ <tr>
1708
+ <td class="col-md-4">
1709
+
1710
+ <div class="io-description">
1711
+ <b>Parameters :</b>
1712
+ <table class="params">
1713
+ <thead>
1714
+ <tr>
1715
+ <td>Name</td>
1716
+ <td>Type</td>
1717
+ <td>Optional</td>
1718
+ </tr>
1719
+ </thead>
1720
+ <tbody>
1721
+ <tr>
1722
+ <td>value</td>
1723
+
1724
+ <td>
1725
+ <code><a href="../interfaces/FormDefinition.html" target="_self" >FormDefinition&lt;T&gt; | string</a></code>
1726
+ </td>
1727
+
1728
+ <td>
1729
+ No
1730
+ </td>
1731
+
1732
+ </tr>
1733
+ </tbody>
1734
+ </table>
1735
+ </div>
1736
+ <div>
1737
+ </div>
1738
+ <div class="io-description">
1739
+ <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
1740
+
1741
+ </div>
1742
+ </td>
1743
+ </tr>
1744
+ </tbody>
1745
+ </table>
1746
+ <table class="table table-sm table-bordered">
1747
+ <tbody>
1748
+ <tr>
1749
+ <td class="col-md-4">
1750
+ <a name="formDefinition"></a>
1751
+ <span class="name"><b>formDefinition</b><a href="#formDefinition"><span class="icon ion-ios-link"></span></a></span>
1752
+ </td>
1753
+ </tr>
1754
+
1755
+ <tr>
1756
+ <td class="col-md-4">
1757
+ <span class="accessor"><b>get</b><code>formDefinition()</code></span>
1758
+ </td>
1759
+ </tr>
1760
+ <tr>
1761
+ <td class="col-md-4">
1762
+ <div class="io-line">Defined in <a href="" data-line="171" class="link-to-prism">src/lib/directives/form.directive.ts:171</a></div>
1763
+ </td>
1764
+ </tr>
1765
+
1766
+ </tbody>
1767
+ </table>
1768
+ </section>
1769
+
1770
+ </div>
1771
+
1772
+
1773
+ <div class="tab-pane fade tab-source-code" id="source">
1774
+ <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
1775
+ ChangeDetectorRef,
1776
+ Directive,
1777
+ EventEmitter,
1778
+ forwardRef,
1779
+ HostBinding,
1780
+ Inject,
1781
+ Input,
1782
+ isDevMode,
1783
+ OnChanges,
1784
+ OnDestroy,
1785
+ OnInit,
1786
+ Optional,
1787
+ Output,
1788
+ SimpleChanges,
1789
+ SkipSelf,
1790
+ } from &#x27;@angular/core&#x27;;
1791
+ import {
1792
+ ControlContainer,
1793
+ FormGroupDirective,
1794
+ } from &#x27;@angular/forms&#x27;;
1795
+ import {
1796
+ RXAP_FORM_DEFINITION,
1797
+ RXAP_FORM_DEFINITION_BUILDER,
1798
+ RXAP_FORM_LOAD_FAILED_METHOD,
1799
+ RXAP_FORM_LOAD_METHOD,
1800
+ RXAP_FORM_LOAD_SUCCESSFUL_METHOD,
1801
+ RXAP_FORM_SUBMIT_FAILED_METHOD,
1802
+ RXAP_FORM_SUBMIT_METHOD,
1803
+ RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD,
1804
+ } from &#x27;./tokens&#x27;;
1805
+ import { RxapFormGroup } from &#x27;../form-group&#x27;;
1806
+ import {
1807
+ clone,
1808
+ isObject,
1809
+ isPromise,
1810
+ Required,
1811
+ } from &#x27;@rxap/utilities&#x27;;
1812
+ import { FormDefinition } from &#x27;../model&#x27;;
1813
+ import {
1814
+ FormLoadFailedMethod,
1815
+ FormLoadMethod,
1816
+ FormLoadSuccessfulMethod,
1817
+ FormSubmitFailedMethod,
1818
+ FormSubmitMethod,
1819
+ FormSubmitSuccessfulMethod,
1820
+ } from &#x27;./models&#x27;;
1821
+ import {
1822
+ BehaviorSubject,
1823
+ Subscription,
1824
+ } from &#x27;rxjs&#x27;;
1825
+ import { RxapFormBuilder } from &#x27;../form-builder&#x27;;
1826
+ import { LoadingIndicatorService } from &#x27;@rxap/services&#x27;;
1827
+ import {
1828
+ debounceTime,
1829
+ filter,
1830
+ tap,
1831
+ } from &#x27;rxjs/operators&#x27;;
1832
+ import { ToggleSubject } from &#x27;@rxap/rxjs&#x27;;
1833
+
1834
+ @Directive({
1835
+ selector: &#x27;form[rxapForm]:not([formGroup]):not([ngForm]),rxap-form,form[rxapForm]&#x27;,
1836
+ providers: [
1837
+ {
1838
+ provide: ControlContainer,
1839
+ // ignore coverage
1840
+ useExisting: forwardRef(() &#x3D;&gt; FormDirective),
1841
+ },
1842
+ // region form provider clear
1843
+ // form provider that are directly associated with the current form
1844
+ // are cleared to prevent that inner forms can access this providers
1845
+ // Example: The parent form has a submit method provider and the inner should
1846
+ // not have a submit method provider. If the parent submit method provider is
1847
+ // not cleared then the inner form uses the parent submit method provider on
1848
+ // submit
1849
+ {
1850
+ provide: RXAP_FORM_SUBMIT_METHOD,
1851
+ useValue: null,
1852
+ },
1853
+ {
1854
+ provide: RXAP_FORM_LOAD_METHOD,
1855
+ useValue: null,
1856
+ },
1857
+ {
1858
+ provide: RXAP_FORM_LOAD_FAILED_METHOD,
1859
+ useValue: null,
1860
+ },
1861
+ {
1862
+ provide: RXAP_FORM_LOAD_SUCCESSFUL_METHOD,
1863
+ useValue: null,
1864
+ },
1865
+ {
1866
+ provide: RXAP_FORM_SUBMIT_FAILED_METHOD,
1867
+ useValue: null,
1868
+ },
1869
+ {
1870
+ provide: RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD,
1871
+ useValue: null,
1872
+ },
1873
+ {
1874
+ provide: RXAP_FORM_DEFINITION_BUILDER,
1875
+ useValue: null,
1876
+ },
1877
+ // endregion
1878
+ ],
1879
+ // eslint-disable-next-line @angular-eslint/no-host-metadata-property
1880
+ host: { &#x27;(reset)&#x27;: &#x27;onReset()&#x27; },
1881
+ // eslint-disable-next-line @angular-eslint/no-outputs-metadata-property
1882
+ outputs: [ &#x27;ngSubmit&#x27; ],
1883
+ exportAs: &#x27;rxapForm&#x27;,
1884
+ standalone: true,
1885
+ })
1886
+ export class FormDirective&lt;T &#x3D; any&gt;
1887
+ extends FormGroupDirective
1888
+ implements OnInit, OnChanges, OnDestroy {
1889
+ public override form!: RxapFormGroup&lt;T&gt;;
1890
+
1891
+ @Input()
1892
+ public initial?: T;
1893
+
1894
+ /**
1895
+ * Emits when the submit method is executed without errors. The result of the
1896
+ * submit method is passed as event object.
1897
+ *
1898
+ * If no submit method is defined then emit after the submit button
1899
+ * is clicked.
1900
+ */
1901
+ @Output()
1902
+ public rxapSubmit &#x3D; new EventEmitter();
1903
+
1904
+ @Output()
1905
+ public invalidSubmit &#x3D; new EventEmitter&lt;Record&lt;string, any&gt;&gt;();
1906
+
1907
+ // eslint-disable-next-line @angular-eslint/no-output-rename
1908
+ @Output(&#x27;submitSuccessful&#x27;)
1909
+ public submitSuccessful$ &#x3D; new EventEmitter();
1910
+
1911
+ @HostBinding(&#x27;class.rxap-submitting&#x27;)
1912
+ public get submitting(): boolean {
1913
+ return this.submitting$.value;
1914
+ }
1915
+
1916
+ @HostBinding(&#x27;class.rxap-submit-error&#x27;)
1917
+ public get submitError(): Error | null {
1918
+ return this.submitError$.value;
1919
+ }
1920
+
1921
+ @HostBinding(&#x27;class.rxap-loading&#x27;)
1922
+ public get loading(): boolean {
1923
+ return this.loading$.value;
1924
+ }
1925
+
1926
+ @HostBinding(&#x27;class.rxap-loaded&#x27;)
1927
+ public get loaded(): boolean {
1928
+ return this.loaded$.value;
1929
+ }
1930
+
1931
+ @HostBinding(&#x27;class.rxap-loading-error&#x27;)
1932
+ public get loadingError(): Error | null {
1933
+ return this.loadingError$.value;
1934
+ }
1935
+
1936
+ @Input(&#x27;rxapForm&#x27;)
1937
+ public set useFormDefinition(value: FormDefinition&lt;T&gt; | &#x27;&#x27;) {
1938
+ if (value) {
1939
+ this._formDefinition &#x3D; value as any;
1940
+ this.form &#x3D; value.rxapFormGroup;
1941
+ }
1942
+ }
1943
+
1944
+ public get formDefinition(): FormDefinition&lt;T&gt; {
1945
+ return this._formDefinition;
1946
+ }
1947
+
1948
+ public readonly submitting$ &#x3D; new ToggleSubject();
1949
+ public readonly submitError$ &#x3D; new BehaviorSubject&lt;Error | null&gt;(null);
1950
+ public readonly loading$ &#x3D; new ToggleSubject();
1951
+ public readonly loaded$ &#x3D; new ToggleSubject();
1952
+ public readonly loadingError$ &#x3D; new BehaviorSubject&lt;Error | null&gt;(null);
1953
+
1954
+ protected _formDefinition!: FormDefinition&lt;T&gt;;
1955
+
1956
+ @Input()
1957
+ public submitMethod: FormSubmitMethod&lt;any&gt; | null &#x3D; null;
1958
+
1959
+ private _autoSubmitSubscription &#x3D; new Subscription();
1960
+
1961
+ constructor(
1962
+ @Inject(ChangeDetectorRef) public readonly cdr: ChangeDetectorRef,
1963
+ @Optional()
1964
+ @Inject(RXAP_FORM_DEFINITION)
1965
+ formDefinition: FormDefinition | null &#x3D; null,
1966
+ // skip self, bc the token is set to null
1967
+ @SkipSelf()
1968
+ @Optional()
1969
+ @Inject(RXAP_FORM_SUBMIT_METHOD)
1970
+ submitMethod: FormSubmitMethod&lt;any&gt; | null &#x3D; null,
1971
+ // skip self, bc the token is set to null
1972
+ @SkipSelf()
1973
+ @Optional()
1974
+ @Inject(RXAP_FORM_LOAD_METHOD)
1975
+ protected readonly loadMethod: FormLoadMethod | null &#x3D; null,
1976
+ // skip self, bc the token is set to null
1977
+ @SkipSelf()
1978
+ @Optional()
1979
+ @Inject(RXAP_FORM_LOAD_FAILED_METHOD)
1980
+ protected readonly loadFailedMethod: FormLoadFailedMethod | null &#x3D; null,
1981
+ // skip self, bc the token is set to null
1982
+ @SkipSelf()
1983
+ @Optional()
1984
+ @Inject(RXAP_FORM_LOAD_SUCCESSFUL_METHOD)
1985
+ protected readonly loadSuccessfulMethod: FormLoadSuccessfulMethod | null &#x3D; null,
1986
+ // skip self, bc the token is set to null
1987
+ @SkipSelf()
1988
+ @Optional()
1989
+ @Inject(RXAP_FORM_SUBMIT_FAILED_METHOD)
1990
+ protected readonly submitFailedMethod: FormSubmitFailedMethod | null &#x3D; null,
1991
+ // skip self, bc the token is set to null
1992
+ @SkipSelf()
1993
+ @Optional()
1994
+ @Inject(RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD)
1995
+ protected readonly submitSuccessfulMethod: FormSubmitSuccessfulMethod | null &#x3D; null,
1996
+ // skip self, bc the token is set to null
1997
+ @SkipSelf()
1998
+ @Optional()
1999
+ @Inject(RXAP_FORM_DEFINITION_BUILDER)
2000
+ protected readonly formDefinitionBuilder: RxapFormBuilder | null &#x3D; null,
2001
+ @Optional()
2002
+ @Inject(LoadingIndicatorService)
2003
+ protected readonly loadingIndicatorService: LoadingIndicatorService | null &#x3D; null,
2004
+ ) {
2005
+ super([], []);
2006
+ if (submitMethod) {
2007
+ this.submitMethod &#x3D; submitMethod;
2008
+ }
2009
+ if (!formDefinition &amp;&amp; formDefinitionBuilder) {
2010
+ formDefinition &#x3D; formDefinitionBuilder.build&lt;FormDefinition&gt;();
2011
+ }
2012
+ if (formDefinition) {
2013
+ this._formDefinition &#x3D; formDefinition;
2014
+ this.form &#x3D; formDefinition.rxapFormGroup;
2015
+ }
2016
+ this.loadingIndicatorService?.attachLoading(this.loading$);
2017
+ this.loadingIndicatorService?.attachLoading(this.submitting$);
2018
+ }
2019
+
2020
+ public override ngOnChanges(changes: SimpleChanges) {
2021
+ super.ngOnChanges(changes);
2022
+
2023
+ const formChange &#x3D; changes[&#x27;form&#x27;];
2024
+
2025
+ if (formChange &amp;&amp; !formChange.firstChange) {
2026
+ this.loadInitialState(formChange.currentValue);
2027
+ }
2028
+ }
2029
+
2030
+ public ngOnInit() {
2031
+ if (!this._formDefinition) {
2032
+ // TODO : replace with rxap error
2033
+ throw new Error(&#x27;The form definition instance is not defined&#x27;);
2034
+ }
2035
+ if (!this.form) {
2036
+ // TODO : replace with rxap error
2037
+ throw new Error(&#x27;The form instance is not defined&#x27;);
2038
+ }
2039
+ this.loadInitialState(this.form);
2040
+
2041
+ function HasNgOnInitMethod(obj: any): obj is OnInit {
2042
+ return obj &amp;&amp; typeof obj.ngOnInit &#x3D;&#x3D;&#x3D; &#x27;function&#x27;;
2043
+ }
2044
+
2045
+ if (HasNgOnInitMethod(this._formDefinition)) {
2046
+ this._formDefinition.ngOnInit();
2047
+ }
2048
+
2049
+ if (this._formDefinition.rxapMetadata.autoSubmit) {
2050
+ const debounce &#x3D;
2051
+ typeof this._formDefinition.rxapMetadata.autoSubmit &#x3D;&#x3D;&#x3D; &#x27;number&#x27;
2052
+ ? this._formDefinition.rxapMetadata.autoSubmit
2053
+ : 5000;
2054
+ this._autoSubmitSubscription &#x3D; this
2055
+ .form
2056
+ .valueChanges
2057
+ .pipe(
2058
+ debounceTime(debounce),
2059
+ filter(() &#x3D;&gt; this.form.valid),
2060
+ tap((value) &#x3D;&gt; {
2061
+ if (isDevMode()) {
2062
+ console.debug(
2063
+ &#x60;Auto submit form &#x27;${ this._formDefinition.rxapMetadata.id }&#x27;&#x60;,
2064
+ value,
2065
+ );
2066
+ }
2067
+ },
2068
+ ),
2069
+ tap(() &#x3D;&gt; this.submit()),
2070
+ )
2071
+ .subscribe();
2072
+ }
2073
+ }
2074
+
2075
+ public override onSubmit($event: Event): boolean {
2076
+ $event.preventDefault();
2077
+ super.onSubmit($event);
2078
+ if (this.form.valid) {
2079
+ this.submit();
2080
+ } else {
2081
+
2082
+ // eslint-disable-next-line no-inner-declarations
2083
+ function reduceErrors(control: any, errors: Record&lt;string, any&gt; &#x3D; {}): Record&lt;string, any&gt; {
2084
+
2085
+ if (control.invalid) {
2086
+ if (control.controls) {
2087
+ if (Array.isArray(control.controls)) {
2088
+ const errorList &#x3D; [];
2089
+ for (const item of control.controls) {
2090
+ errorList.push(reduceErrors(item));
2091
+ }
2092
+ errors[control.controlId] &#x3D; errorList;
2093
+ } else {
2094
+ const innerErrors &#x3D; {};
2095
+ for (const child of Object.values(control.controls)) {
2096
+ reduceErrors(child, innerErrors);
2097
+ }
2098
+ errors[control.controlId] &#x3D; innerErrors;
2099
+ }
2100
+ } else {
2101
+ if (control.errors) {
2102
+ errors[control.controlId] &#x3D; control.errors;
2103
+ }
2104
+ }
2105
+ }
2106
+
2107
+ return errors;
2108
+ }
2109
+
2110
+ if (isDevMode()) {
2111
+ console.log(
2112
+ &#x27;Form submit is not valid for: &#x27; + this.form.controlId,
2113
+ this.form.errors,
2114
+ );
2115
+
2116
+ // eslint-disable-next-line no-inner-declarations
2117
+ function printErrorControls(control: any) {
2118
+ if (!control.valid) {
2119
+ console.group(control.controlId);
2120
+ if (control.controls) {
2121
+ if (Array.isArray(control.controls)) {
2122
+ for (let i &#x3D; 0; i &lt; control.controls.length; i++) {
2123
+ const child &#x3D; control.controls[i];
2124
+ if (!child.valid) {
2125
+ console.group(&#x60;index: ${ i }&#x60;);
2126
+ printErrorControls(child);
2127
+ console.groupEnd();
2128
+ }
2129
+ }
2130
+ } else {
2131
+ for (const child of Object.values(control.controls)) {
2132
+ printErrorControls(child);
2133
+ }
2134
+ }
2135
+ } else {
2136
+ if (control.errors) {
2137
+ for (const [ key, value ] of Object.entries(control.errors)) {
2138
+ console.group(key);
2139
+ console.log(value);
2140
+ console.groupEnd();
2141
+ }
2142
+ }
2143
+ console.log(&#x27;value: &#x27;, control.value);
2144
+ }
2145
+ console.groupEnd();
2146
+ }
2147
+ }
2148
+
2149
+ printErrorControls(this.form);
2150
+ }
2151
+ this.invalidSubmit.emit(reduceErrors(this.form));
2152
+ }
2153
+
2154
+ return false;
2155
+ }
2156
+
2157
+ protected loadInitialState(form: RxapFormGroup): void {
2158
+ if (this.initial) {
2159
+ if (isDevMode()) {
2160
+ console.log(&#x27;use the value from input initial&#x27;);
2161
+ }
2162
+ form.patchValue(this.initial);
2163
+ } else {
2164
+ if (this.loadMethod) {
2165
+ this.loading$.enable();
2166
+
2167
+ try {
2168
+ const resultOrPromise &#x3D; this.loadMethod.call();
2169
+ if (isPromise(resultOrPromise)) {
2170
+ resultOrPromise
2171
+ .then((value) &#x3D;&gt; {
2172
+ form.patchValue(value);
2173
+ this.loaded$.enable();
2174
+ this.loadSuccessful(value);
2175
+ })
2176
+ .catch((error) &#x3D;&gt; {
2177
+ this.loadingError$.next(error);
2178
+ this.loadFailed(error);
2179
+ })
2180
+ .finally(() &#x3D;&gt; {
2181
+ this.loading$.disable();
2182
+ this.cdr.detectChanges();
2183
+ });
2184
+ } else if (isObject(resultOrPromise)) {
2185
+ form.patchValue(resultOrPromise);
2186
+ this.loaded$.enable();
2187
+ this.loadSuccessful(resultOrPromise);
2188
+ this.loading$.disable();
2189
+ }
2190
+ } catch (error: any) {
2191
+ this.loaded$.disable();
2192
+ this.loadingError$.next(error);
2193
+ this.loadFailed(error);
2194
+ this.loading$.disable();
2195
+ }
2196
+ } else {
2197
+ if (isDevMode()) {
2198
+ console.warn(
2199
+ &#x27;The form loading method is not defined for: &#x27; + this.form.controlId,
2200
+ );
2201
+ }
2202
+ this.loaded$.enable();
2203
+ }
2204
+ }
2205
+ }
2206
+
2207
+ protected loadSuccessful(value: any) {
2208
+ if (this.loadSuccessfulMethod) {
2209
+ this.loadSuccessfulMethod.call(value);
2210
+ } else if (isDevMode()) {
2211
+ console.warn(
2212
+ &#x27;The load successful is not defined for: &#x27; + this.form.controlId,
2213
+ );
2214
+ }
2215
+ }
2216
+
2217
+ protected loadFailed(error: Error) {
2218
+ console.debug(&#x27;Load Error:&#x27;, error);
2219
+ console.error(&#x27;Load Error:&#x27;, error.message);
2220
+ if (this.loadFailedMethod) {
2221
+ this.loadFailedMethod?.call(error);
2222
+ } else if (isDevMode()) {
2223
+ console.warn(&#x27;The form loading failed for: &#x27; + this.form.controlId);
2224
+ }
2225
+ }
2226
+
2227
+ protected getSubmitValue(): T {
2228
+ let value: T &#x3D; undefined as any;
2229
+
2230
+ if (typeof this._formDefinition[&#x27;getSubmitValue&#x27;] &#x3D;&#x3D;&#x3D; &#x27;function&#x27;) {
2231
+ value &#x3D; this._formDefinition.getSubmitValue();
2232
+ } else if (typeof this._formDefinition[&#x27;toJSON&#x27;] &#x3D;&#x3D;&#x3D; &#x27;function&#x27;) {
2233
+ value &#x3D; this._formDefinition.toJSON();
2234
+ }
2235
+
2236
+ value &#x3D; value ?? this.form.value;
2237
+
2238
+ return clone(value);
2239
+ }
2240
+
2241
+ protected submit() {
2242
+ const value &#x3D; this.getSubmitValue();
2243
+ if (this.submitMethod) {
2244
+ Reflect.set(this, &#x27;submitted&#x27;, false);
2245
+ this.submitting$.enable();
2246
+ this.submitError$.next(null);
2247
+ try {
2248
+ const resultOrPromise &#x3D; this.submitMethod.call(value);
2249
+ if (isPromise(resultOrPromise)) {
2250
+ resultOrPromise
2251
+ .then((result) &#x3D;&gt; {
2252
+ Reflect.set(this, &#x27;submitted&#x27;, true);
2253
+ this.rxapSubmit.emit(result);
2254
+ this.submitSuccessful(result);
2255
+ })
2256
+ .catch((error) &#x3D;&gt; {
2257
+ this.submitError$.next(error);
2258
+ this.submitFailed(error);
2259
+ })
2260
+ .finally(() &#x3D;&gt; {
2261
+ this.submitting$.disable();
2262
+ this.cdr.detectChanges();
2263
+ });
2264
+ } else {
2265
+ Reflect.set(this, &#x27;submitted&#x27;, true);
2266
+ this.rxapSubmit.emit(resultOrPromise);
2267
+ this.submitSuccessful(resultOrPromise);
2268
+ this.submitting$.disable();
2269
+ }
2270
+ } catch (error: any) {
2271
+ this.submitting$.disable();
2272
+ this.submitError$.next(error);
2273
+ this.submitFailed(error);
2274
+ }
2275
+ } else {
2276
+ if (isDevMode()) {
2277
+ console.warn(
2278
+ &#x27;The form submit method is not defined for: &#x27; + this.form.controlId,
2279
+ );
2280
+ }
2281
+
2282
+ this.rxapSubmit.emit(value);
2283
+ this.submitSuccessful(value);
2284
+ }
2285
+ }
2286
+
2287
+ protected submitFailed(error: Error) {
2288
+ console.debug(&#x27;Submit Error:&#x27;, error);
2289
+ console.error(&#x27;Submit Error:&#x27;, error.message);
2290
+ if (this.submitFailedMethod) {
2291
+ this.submitFailedMethod.call(error);
2292
+ } else if (isDevMode()) {
2293
+ console.warn(
2294
+ &#x27;The form submit failed method is not defined for: &#x27; +
2295
+ this.form.controlId,
2296
+ );
2297
+ }
2298
+ }
2299
+
2300
+ protected submitSuccessful(value: any) {
2301
+ this.submitSuccessful$.next(value);
2302
+ if (this.submitSuccessfulMethod) {
2303
+ this.submitSuccessfulMethod.call(value);
2304
+ } else if (isDevMode()) {
2305
+ console.warn(
2306
+ &#x27;The form submit successful method is not defined for: &#x27; +
2307
+ this.form.controlId,
2308
+ );
2309
+ }
2310
+ }
2311
+
2312
+ public override ngOnDestroy() {
2313
+ super.ngOnDestroy();
2314
+ this._autoSubmitSubscription?.unsubscribe();
2315
+
2316
+ function HasNgOnDestroyMethod(obj: any): obj is OnDestroy {
2317
+ return obj &amp;&amp; typeof obj.ngOnDestroy &#x3D;&#x3D;&#x3D; &#x27;function&#x27;;
2318
+ }
2319
+
2320
+ if (HasNgOnDestroyMethod(this._formDefinition)) {
2321
+ this._formDefinition.ngOnDestroy();
2322
+ }
2323
+
2324
+ }
2325
+ }
2326
+ </code></pre>
2327
+ </div>
2328
+
2329
+ </div>
2330
+
2331
+
2332
+
2333
+
2334
+
2335
+
2336
+
2337
+
2338
+
2339
+
2340
+
2341
+
2342
+
2343
+
2344
+ </div><div class="search-results">
2345
+ <div class="has-results">
2346
+ <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
2347
+ <ul class="search-results-list"></ul>
2348
+ </div>
2349
+ <div class="no-results">
2350
+ <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
2351
+ </div>
2352
+ </div>
2353
+ </div>
2354
+ <!-- END CONTENT -->
2355
+ </div>
2356
+ </div>
2357
+
2358
+ <label class="dark-mode-switch">
2359
+ <input type="checkbox">
2360
+ <span class="slider">
2361
+ <svg class="slider-icon" viewBox="0 0 24 24" fill="none" height="20" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" width="20" xmlns="http://www.w3.org/2000/svg">
2362
+ <path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"></path>
2363
+ </svg>
2364
+ </span>
2365
+ </label>
2366
+
2367
+ <script>
2368
+ var COMPODOC_CURRENT_PAGE_DEPTH = 1;
2369
+ var COMPODOC_CURRENT_PAGE_CONTEXT = 'directive';
2370
+ var COMPODOC_CURRENT_PAGE_URL = 'FormDirective.html';
2371
+ var MAX_SEARCH_RESULTS = 15;
2372
+ </script>
2373
+
2374
+ <script>
2375
+ $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
2376
+ checkToggle(darkModeState);
2377
+ if ($darkModeToggleSwitchers.length > 0) {
2378
+ for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
2379
+ $darkModeToggleSwitchers[i].addEventListener('change', function (event) {
2380
+ darkModeState = !darkModeState;
2381
+ toggleDarkMode(darkModeState);
2382
+ });
2383
+ }
2384
+ }
2385
+ </script>
2386
+
2387
+ <script src="../js/libs/custom-elements.min.js"></script>
2388
+ <script src="../js/libs/lit-html.js"></script>
2389
+
2390
+ <script src="../js/menu-wc.js" defer></script>
2391
+ <script nomodule src="../js/menu-wc_es5.js" defer></script>
2392
+
2393
+ <script src="../js/libs/bootstrap-native.js"></script>
2394
+
2395
+ <script src="../js/libs/es6-shim.min.js"></script>
2396
+ <script src="../js/libs/EventDispatcher.js"></script>
2397
+ <script src="../js/libs/promise.min.js"></script>
2398
+ <script src="../js/libs/zepto.min.js"></script>
2399
+
2400
+ <script src="../js/compodoc.js"></script>
2401
+
2402
+ <script src="../js/tabs.js"></script>
2403
+ <script src="../js/menu.js"></script>
2404
+ <script src="../js/libs/clipboard.min.js"></script>
2405
+ <script src="../js/libs/prism.js"></script>
2406
+ <script src="../js/sourceCode.js"></script>
2407
+ <script src="../js/search/search.js"></script>
2408
+ <script src="../js/search/lunr.min.js"></script>
2409
+ <script src="../js/search/search-lunr.js"></script>
2410
+ <script src="../js/search/search_index.js"></script>
2411
+ <script src="../js/lazy-load-graphs.js"></script>
2412
+
2413
+
2414
+ </body>
2415
+ </html>