@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,690 @@
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" >FormSubmitDirective</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-submit.directive.ts</code>
118
+ </p>
119
+
120
+
121
+
122
+ <p class="comment">
123
+ <h3>Extends</h3>
124
+ </p>
125
+ <p class="comment">
126
+ <code>ConfirmClick</code>
127
+ </p>
128
+
129
+ <p class="comment">
130
+ <h3>Implements</h3>
131
+ </p>
132
+ <p class="comment">
133
+ <code>OnDestroy</code>
134
+ </p>
135
+
136
+
137
+ <section data-compodoc="block-metadata">
138
+ <h3>Metadata</h3>
139
+ <table class="table table-sm table-hover metadata">
140
+ <tbody>
141
+
142
+ <tr>
143
+ <td class="col-md-3">Selector</td>
144
+ <td class="col-md-9"><code>[rxapFormSubmit]</code></td>
145
+ </tr>
146
+
147
+ <tr>
148
+ <td class="col-md-3">Standalone</td>
149
+ <td class="col-md-9"><code>true</code></td>
150
+ </tr>
151
+
152
+
153
+
154
+ </tbody>
155
+ </table>
156
+ </section>
157
+
158
+ <section data-compodoc="block-index">
159
+ <h3 id="index">Index</h3>
160
+ <table class="table table-sm table-bordered index-table">
161
+ <tbody>
162
+
163
+ <tr>
164
+ <td class="col-md-4">
165
+ <h6><b>Methods</b></h6>
166
+ </td>
167
+ </tr>
168
+ <tr>
169
+ <td class="col-md-4">
170
+ <ul class="index-list">
171
+ <li>
172
+ <span class="modifier">Protected</span>
173
+ <a href="#execute" >execute</a>
174
+ </li>
175
+ </ul>
176
+ </td>
177
+ </tr>
178
+
179
+ <tr>
180
+ <td class="col-md-4">
181
+ <h6><b>Inputs</b></h6>
182
+ </td>
183
+ </tr>
184
+ <tr>
185
+ <td class="col-md-4">
186
+ <ul class="index-list">
187
+ <li>
188
+ <a href="#navigateAfterSubmit" >navigateAfterSubmit</a>
189
+ </li>
190
+ <li>
191
+ <a href="#resetAfterSubmit" >resetAfterSubmit</a>
192
+ </li>
193
+ <li>
194
+ <a href="#type" >type</a>
195
+ </li>
196
+ </ul>
197
+ </td>
198
+ </tr>
199
+
200
+ <tr>
201
+ <td class="col-md-4">
202
+ <h6><b>Outputs</b></h6>
203
+ </td>
204
+ </tr>
205
+ <tr>
206
+ <td class="col-md-4">
207
+ <ul class="index-list">
208
+ <li>
209
+ <a href="#afterSubmit" >afterSubmit</a>
210
+ </li>
211
+ </ul>
212
+ </td>
213
+ </tr>
214
+
215
+
216
+
217
+ <tr>
218
+ <td class="col-md-4">
219
+ <h6><b>Accessors</b></h6>
220
+ </td>
221
+ </tr>
222
+ <tr>
223
+ <td class="col-md-4">
224
+ <ul class="index-list">
225
+ <li>
226
+ <a href="#resetAfterSubmit" >resetAfterSubmit</a>
227
+ </li>
228
+ </ul>
229
+ </td>
230
+ </tr>
231
+ </tbody>
232
+ </table>
233
+ </section>
234
+
235
+ <section data-compodoc="block-constructor">
236
+ <h3 id="constructor">Constructor</h3>
237
+ <table class="table table-sm table-bordered">
238
+ <tbody>
239
+ <tr>
240
+ <td class="col-md-4">
241
+ <code>constructor(formDirective: <a href="../directives/FormDirective.html" target="_self">FormDirective</a>, router: Router | null)</code>
242
+ </td>
243
+ </tr>
244
+ <tr>
245
+ <td class="col-md-4">
246
+ <div class="io-line">Defined in <a href="" data-line="52" class="link-to-prism">src/lib/directives/form-submit.directive.ts:52</a></div>
247
+ </td>
248
+ </tr>
249
+
250
+ <tr>
251
+ <td class="col-md-4">
252
+ <div>
253
+ <b>Parameters :</b>
254
+ <table class="params">
255
+ <thead>
256
+ <tr>
257
+ <td>Name</td>
258
+ <td>Type</td>
259
+ <td>Optional</td>
260
+ </tr>
261
+ </thead>
262
+ <tbody>
263
+ <tr>
264
+ <td>formDirective</td>
265
+
266
+ <td>
267
+ <code><a href="../directives/FormDirective.html" target="_self" >FormDirective</a></code>
268
+ </td>
269
+
270
+ <td>
271
+ No
272
+ </td>
273
+
274
+ </tr>
275
+ <tr>
276
+ <td>router</td>
277
+
278
+ <td>
279
+ <code>Router | null</code>
280
+ </td>
281
+
282
+ <td>
283
+ No
284
+ </td>
285
+
286
+ </tr>
287
+ </tbody>
288
+ </table>
289
+ </div>
290
+ </td>
291
+ </tr>
292
+ </tbody>
293
+ </table>
294
+ </section>
295
+
296
+ <section data-compodoc="block-inputs">
297
+ <h3 id="inputs">Inputs</h3>
298
+ <table class="table table-sm table-bordered">
299
+ <tbody>
300
+ <tr>
301
+ <td class="col-md-4">
302
+ <a name="navigateAfterSubmit"></a>
303
+ <b>navigateAfterSubmit</b>
304
+ </td>
305
+ </tr>
306
+ <tr>
307
+ <td class="col-md-4">
308
+ <i>Type : </i> <code>string[]</code>
309
+
310
+ </td>
311
+ </tr>
312
+ <tr>
313
+ <td class="col-md-2" colspan="2">
314
+ <div class="io-line">Defined in <a href="" data-line="45" class="link-to-prism">src/lib/directives/form-submit.directive.ts:45</a></div>
315
+ </td>
316
+ </tr>
317
+ </tbody>
318
+ </table>
319
+ <table class="table table-sm table-bordered">
320
+ <tbody>
321
+ <tr>
322
+ <td class="col-md-4">
323
+ <a name="resetAfterSubmit"></a>
324
+ <b>resetAfterSubmit</b>
325
+ </td>
326
+ </tr>
327
+ <tr>
328
+ <td class="col-md-4">
329
+ <i>Type : </i> <code>boolean | string</code>
330
+
331
+ </td>
332
+ </tr>
333
+ <tr>
334
+ <td class="col-md-2" colspan="2">
335
+ <div class="io-line">Defined in <a href="" data-line="40" class="link-to-prism">src/lib/directives/form-submit.directive.ts:40</a></div>
336
+ </td>
337
+ </tr>
338
+ </tbody>
339
+ </table>
340
+ <table class="table table-sm table-bordered">
341
+ <tbody>
342
+ <tr>
343
+ <td class="col-md-4">
344
+ <a name="type"></a>
345
+ <b>type</b>
346
+ </td>
347
+ </tr>
348
+ <tr>
349
+ <td class="col-md-4">
350
+ <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
351
+
352
+ </td>
353
+ </tr>
354
+ <tr>
355
+ <td class="col-md-4">
356
+ <i>Default value : </i><code>&#x27;button&#x27;</code>
357
+ </td>
358
+ </tr>
359
+ <tr>
360
+ <td class="col-md-2" colspan="2">
361
+ <div class="io-line">Defined in <a href="" data-line="37" class="link-to-prism">src/lib/directives/form-submit.directive.ts:37</a></div>
362
+ </td>
363
+ </tr>
364
+ </tbody>
365
+ </table>
366
+ </section>
367
+ <section data-compodoc="block-outputs">
368
+ <h3 id="outputs">Outputs</h3>
369
+ <table class="table table-sm table-bordered">
370
+ <tbody>
371
+ <tr>
372
+ <td class="col-md-4">
373
+ <a name="afterSubmit"></a>
374
+ <b>afterSubmit</b>
375
+ </td>
376
+ </tr>
377
+ <tr>
378
+ <td class="col-md-4">
379
+ <i>Type : </i> <code>EventEmitter</code>
380
+
381
+ </td>
382
+ </tr>
383
+ <tr>
384
+ <td class="col-md-2" colspan="2">
385
+ <div class="io-line">Defined in <a href="" data-line="48" class="link-to-prism">src/lib/directives/form-submit.directive.ts:48</a></div>
386
+ </td>
387
+ </tr>
388
+ </tbody>
389
+ </table>
390
+ </section>
391
+
392
+
393
+ <section data-compodoc="block-methods">
394
+
395
+ <h3 id="methods">
396
+ Methods
397
+ </h3>
398
+ <table class="table table-sm table-bordered">
399
+ <tbody>
400
+ <tr>
401
+ <td class="col-md-4">
402
+ <a name="execute"></a>
403
+ <span class="name">
404
+ <span class="modifier">Protected</span>
405
+ <span ><b>execute</b></span>
406
+ <a href="#execute"><span class="icon ion-ios-link"></span></a>
407
+ </span>
408
+ </td>
409
+ </tr>
410
+ <tr>
411
+ <td class="col-md-4">
412
+ <span class="modifier-icon icon ion-ios-reset"></span>
413
+ <code>execute()</code>
414
+ </td>
415
+ </tr>
416
+
417
+
418
+ <tr>
419
+ <td class="col-md-4">
420
+ <div class="io-line">Defined in <a href="" data-line="63"
421
+ class="link-to-prism">src/lib/directives/form-submit.directive.ts:63</a></div>
422
+ </td>
423
+ </tr>
424
+
425
+
426
+ <tr>
427
+ <td class="col-md-4">
428
+
429
+ <div class="io-description">
430
+ <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
431
+
432
+ </div>
433
+ </td>
434
+ </tr>
435
+ </tbody>
436
+ </table>
437
+ </section>
438
+
439
+ <section data-compodoc="block-accessors">
440
+ <h3 id="accessors">
441
+ Accessors
442
+ </h3>
443
+ <table class="table table-sm table-bordered">
444
+ <tbody>
445
+ <tr>
446
+ <td class="col-md-4">
447
+ <a name="resetAfterSubmit"></a>
448
+ <span class="name"><b>resetAfterSubmit</b><a href="#resetAfterSubmit"><span class="icon ion-ios-link"></span></a></span>
449
+ </td>
450
+ </tr>
451
+
452
+
453
+ <tr>
454
+ <td class="col-md-4">
455
+ <span class="accessor"><b>set</b><code>resetAfterSubmit(value: boolean | string)</code></span>
456
+ </td>
457
+ </tr>
458
+ <tr>
459
+ <td class="col-md-4">
460
+ <div class="io-line">Defined in <a href="" data-line="40" class="link-to-prism">src/lib/directives/form-submit.directive.ts:40</a></div>
461
+ </td>
462
+ </tr>
463
+ <tr>
464
+ <td class="col-md-4">
465
+
466
+ <div class="io-description">
467
+ <b>Parameters :</b>
468
+ <table class="params">
469
+ <thead>
470
+ <tr>
471
+ <td>Name</td>
472
+ <td>Type</td>
473
+ <td>Optional</td>
474
+ </tr>
475
+ </thead>
476
+ <tbody>
477
+ <tr>
478
+ <td>value</td>
479
+
480
+ <td>
481
+ <code>boolean | string</code>
482
+ </td>
483
+
484
+ <td>
485
+ No
486
+ </td>
487
+
488
+ </tr>
489
+ </tbody>
490
+ </table>
491
+ </div>
492
+ <div>
493
+ </div>
494
+ <div class="io-description">
495
+ <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
496
+
497
+ </div>
498
+ </td>
499
+ </tr>
500
+ </tbody>
501
+ </table>
502
+ </section>
503
+
504
+ </div>
505
+
506
+
507
+ <div class="tab-pane fade tab-source-code" id="source">
508
+ <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
509
+ Directive,
510
+ EventEmitter,
511
+ HostBinding,
512
+ Inject,
513
+ Input,
514
+ OnDestroy,
515
+ Optional,
516
+ Output,
517
+ } from &#x27;@angular/core&#x27;;
518
+ import {
519
+ clone,
520
+ coerceBoolean,
521
+ } from &#x27;@rxap/utilities&#x27;;
522
+ import { FormDirective } from &#x27;./form.directive&#x27;;
523
+ import {
524
+ take,
525
+ tap,
526
+ } from &#x27;rxjs/operators&#x27;;
527
+ import { Subscription } from &#x27;rxjs&#x27;;
528
+ import { Router } from &#x27;@angular/router&#x27;;
529
+ import { ConfirmClick } from &#x27;@rxap/directives&#x27;;
530
+
531
+ @Directive({
532
+ selector: &#x27;[rxapFormSubmit]&#x27;,
533
+ // eslint-disable-next-line @angular-eslint/no-host-metadata-property
534
+ host: {
535
+ &#x27;(click)&#x27;: &#x27;onClick()&#x27;,
536
+ &#x27;(confirmed)&#x27;: &#x27;onConfirm()&#x27;,
537
+ },
538
+ standalone: true,
539
+ })
540
+ export class FormSubmitDirective extends ConfirmClick implements OnDestroy {
541
+
542
+ @HostBinding(&#x27;type&#x27;)
543
+ @Input()
544
+ public type &#x3D; &#x27;button&#x27;;
545
+
546
+ @Input()
547
+ public set resetAfterSubmit(value: boolean | &#x27;&#x27;) {
548
+ this._resetAfterSubmit &#x3D; coerceBoolean(value);
549
+ }
550
+
551
+ @Input()
552
+ public navigateAfterSubmit?: string[];
553
+
554
+ @Output()
555
+ public afterSubmit &#x3D; new EventEmitter();
556
+
557
+ private _resetAfterSubmit &#x3D; false;
558
+
559
+ private subscription?: Subscription;
560
+
561
+ constructor(
562
+ @Inject(FormDirective) private readonly formDirective: FormDirective,
563
+ @Optional()
564
+ @Inject(Router)
565
+ private readonly router: Router | null &#x3D; null,
566
+ ) {
567
+ super();
568
+ }
569
+
570
+ protected execute() {
571
+ this.formDirective.form.markAllAsDirty();
572
+ this.formDirective.form.markAllAsTouched();
573
+ this.formDirective.cdr.markForCheck();
574
+ this.subscription &#x3D; this.formDirective.rxapSubmit.pipe(
575
+ take(1),
576
+ tap(value &#x3D;&gt; {
577
+ const clonedValue &#x3D; clone(value);
578
+ this.afterSubmit.emit(clonedValue);
579
+ if (this._resetAfterSubmit) {
580
+ this.formDirective.reset();
581
+ }
582
+ if (this.navigateAfterSubmit) {
583
+
584
+ if (!this.router) {
585
+ throw new Error(&#x27;Could not resolve the router!&#x27;);
586
+ }
587
+
588
+ return this.router.navigate(this.navigateAfterSubmit);
589
+ }
590
+ return Promise.resolve();
591
+ }),
592
+ ).subscribe();
593
+ this.formDirective.onSubmit(new Event(&#x27;submit&#x27;));
594
+ }
595
+
596
+ public ngOnDestroy() {
597
+ this.subscription?.unsubscribe();
598
+ }
599
+
600
+ }
601
+ </code></pre>
602
+ </div>
603
+
604
+ </div>
605
+
606
+
607
+
608
+
609
+
610
+
611
+
612
+
613
+
614
+
615
+
616
+
617
+
618
+
619
+ </div><div class="search-results">
620
+ <div class="has-results">
621
+ <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
622
+ <ul class="search-results-list"></ul>
623
+ </div>
624
+ <div class="no-results">
625
+ <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
626
+ </div>
627
+ </div>
628
+ </div>
629
+ <!-- END CONTENT -->
630
+ </div>
631
+ </div>
632
+
633
+ <label class="dark-mode-switch">
634
+ <input type="checkbox">
635
+ <span class="slider">
636
+ <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">
637
+ <path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"></path>
638
+ </svg>
639
+ </span>
640
+ </label>
641
+
642
+ <script>
643
+ var COMPODOC_CURRENT_PAGE_DEPTH = 1;
644
+ var COMPODOC_CURRENT_PAGE_CONTEXT = 'directive';
645
+ var COMPODOC_CURRENT_PAGE_URL = 'FormSubmitDirective.html';
646
+ var MAX_SEARCH_RESULTS = 15;
647
+ </script>
648
+
649
+ <script>
650
+ $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
651
+ checkToggle(darkModeState);
652
+ if ($darkModeToggleSwitchers.length > 0) {
653
+ for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
654
+ $darkModeToggleSwitchers[i].addEventListener('change', function (event) {
655
+ darkModeState = !darkModeState;
656
+ toggleDarkMode(darkModeState);
657
+ });
658
+ }
659
+ }
660
+ </script>
661
+
662
+ <script src="../js/libs/custom-elements.min.js"></script>
663
+ <script src="../js/libs/lit-html.js"></script>
664
+
665
+ <script src="../js/menu-wc.js" defer></script>
666
+ <script nomodule src="../js/menu-wc_es5.js" defer></script>
667
+
668
+ <script src="../js/libs/bootstrap-native.js"></script>
669
+
670
+ <script src="../js/libs/es6-shim.min.js"></script>
671
+ <script src="../js/libs/EventDispatcher.js"></script>
672
+ <script src="../js/libs/promise.min.js"></script>
673
+ <script src="../js/libs/zepto.min.js"></script>
674
+
675
+ <script src="../js/compodoc.js"></script>
676
+
677
+ <script src="../js/tabs.js"></script>
678
+ <script src="../js/menu.js"></script>
679
+ <script src="../js/libs/clipboard.min.js"></script>
680
+ <script src="../js/libs/prism.js"></script>
681
+ <script src="../js/sourceCode.js"></script>
682
+ <script src="../js/search/search.js"></script>
683
+ <script src="../js/search/lunr.min.js"></script>
684
+ <script src="../js/search/search-lunr.js"></script>
685
+ <script src="../js/search/search_index.js"></script>
686
+ <script src="../js/lazy-load-graphs.js"></script>
687
+
688
+
689
+ </body>
690
+ </html>