jsf.js_next_gen 1.0.0-beta-20 → 4.0.0-RC.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 (343) hide show
  1. package/.mocharc.json +2 -1
  2. package/.nyc_output/2303b649-59d9-485c-9228-73b0ec8787a7.json +1 -0
  3. package/.nyc_output/756f2f03-c85b-4cdb-9b92-5799eb45ef1e.json +1 -0
  4. package/.nyc_output/processinfo/2303b649-59d9-485c-9228-73b0ec8787a7.json +1 -0
  5. package/.nyc_output/processinfo/756f2f03-c85b-4cdb-9b92-5799eb45ef1e.json +1 -0
  6. package/.nyc_output/processinfo/index.json +1 -0
  7. package/.nycrc +2 -1
  8. package/README.md +78 -24
  9. package/dist/docs/assets/highlight.css +21 -0
  10. package/dist/docs/assets/search.js +1 -1
  11. package/dist/docs/assets/style.css +34 -2
  12. package/dist/docs/functions/{jsf.ajax.addOnError.html → faces.ajax.addOnError.html} +15 -13
  13. package/dist/docs/functions/{jsf.ajax.addOnEvent.html → faces.ajax.addOnEvent.html} +15 -13
  14. package/dist/docs/functions/{jsf.ajax.request.html → faces.ajax.request.html} +15 -13
  15. package/dist/docs/functions/{jsf.ajax.response.html → faces.ajax.response.html} +15 -13
  16. package/dist/docs/functions/{jsf.getClientWindow.html → faces.getClientWindow.html} +17 -14
  17. package/dist/docs/functions/{jsf.getProjectStage.html → faces.getProjectStage.html} +18 -15
  18. package/dist/docs/functions/{jsf.getViewState.html → faces.getViewState.html} +18 -15
  19. package/dist/docs/functions/{jsf.push.close.html → faces.push.close.html} +15 -13
  20. package/dist/docs/functions/{jsf.push.init.html → faces.push.init.html} +29 -19
  21. package/dist/docs/functions/{jsf.push.open.html → faces.push.open.html} +15 -13
  22. package/dist/docs/functions/{jsf.util.chain.html → faces.util.chain.html} +12 -10
  23. package/dist/docs/functions/myfaces.ab.html +10 -8
  24. package/dist/docs/index.html +71 -29
  25. package/dist/docs/modules/{jsf.ajax.html → faces.ajax.html} +18 -16
  26. package/dist/docs/modules/faces.html +75 -0
  27. package/dist/docs/modules/{jsf.push.html → faces.push.html} +16 -14
  28. package/dist/docs/modules/{jsf.util.html → faces.util.html} +12 -10
  29. package/dist/docs/modules/myfaces.html +8 -6
  30. package/dist/docs/modules.html +9 -7
  31. package/dist/docs/variables/faces.contextpath.html +57 -0
  32. package/dist/docs/variables/{jsf.implversion.html → faces.implversion.html} +17 -14
  33. package/dist/docs/variables/{jsf.separatorchar.html → faces.separatorchar.html} +18 -15
  34. package/dist/docs/variables/faces.specversion.html +64 -0
  35. package/dist/docs/variables/myfaces.oam.html +8 -6
  36. package/dist/window/faces-development.js +7688 -0
  37. package/dist/window/faces-development.js.br +0 -0
  38. package/dist/window/faces-development.js.gz +0 -0
  39. package/dist/window/faces-development.js.map +1 -0
  40. package/dist/window/faces.js +3 -0
  41. package/dist/window/faces.js.LICENSE.txt +87 -0
  42. package/dist/window/faces.js.br +0 -0
  43. package/dist/window/faces.js.gz +0 -0
  44. package/dist/window/faces.js.map +1 -0
  45. package/dist/window/jsf-development.js +3011 -2963
  46. package/dist/window/jsf-development.js.br +0 -0
  47. package/dist/window/jsf-development.js.gz +0 -0
  48. package/dist/window/jsf-development.js.map +1 -1
  49. package/dist/window/jsf.js +2 -1
  50. package/dist/window/jsf.js.LICENSE.txt +87 -0
  51. package/dist/window/jsf.js.br +0 -0
  52. package/dist/window/jsf.js.gz +0 -0
  53. package/dist/window/jsf.js.map +1 -1
  54. package/package.json +12 -12
  55. package/pom.xml +14 -0
  56. package/src/main/java/com/example/jsfs_js_ts/DecoratedFacesJS.java +94 -0
  57. package/src/main/java/com/example/jsfs_js_ts/DecoratingResourceHandlerWrapper.java +54 -0
  58. package/src/main/java/com/example/jsfs_js_ts/FacesJSMapFileResourceWrapper.java +57 -0
  59. package/src/main/java/com/example/jsfs_js_ts/FacesJSMappingDecorator.java +138 -0
  60. package/src/main/typescript/@types/definitions/index.d.ts +147 -0
  61. package/src/main/typescript/api/{Jsf.ts → _api.ts} +61 -49
  62. package/src/main/typescript/api/faces.ts +44 -0
  63. package/src/main/typescript/api/jsf.ts +43 -0
  64. package/src/main/typescript/impl/AjaxImpl.ts +39 -42
  65. package/src/main/typescript/impl/PushImpl.ts +27 -30
  66. package/src/main/typescript/impl/core/Const.ts +38 -16
  67. package/src/main/typescript/impl/core/ImplTypes.ts +1 -1
  68. package/src/main/typescript/impl/i18n/Messages.ts +2 -2
  69. package/src/main/typescript/impl/util/Assertions.ts +3 -3
  70. package/src/main/typescript/impl/util/AsyncQueue.ts +1 -1
  71. package/src/main/typescript/impl/util/AsyncRunnable.ts +5 -5
  72. package/src/main/typescript/impl/util/ExtDomQuery.ts +200 -48
  73. package/src/main/typescript/impl/util/IListener.ts +1 -1
  74. package/src/main/typescript/impl/util/Lang.ts +25 -25
  75. package/src/main/typescript/impl/xhrCore/ErrorData.ts +2 -3
  76. package/src/main/typescript/impl/xhrCore/EventData.ts +4 -3
  77. package/src/main/typescript/impl/xhrCore/IResponseProcessor.ts +19 -11
  78. package/src/main/typescript/impl/xhrCore/RequestDataResolver.ts +15 -14
  79. package/src/main/typescript/impl/xhrCore/ResonseDataResolver.ts +15 -11
  80. package/src/main/typescript/impl/xhrCore/Response.ts +30 -24
  81. package/src/main/typescript/impl/xhrCore/ResponseProcessor.ts +69 -49
  82. package/src/main/typescript/impl/xhrCore/XhrFormData.ts +9 -7
  83. package/src/main/typescript/impl/xhrCore/XhrRequest.ts +76 -60
  84. package/src/main/typescript/myfaces/OamSubmit.ts +12 -15
  85. package/src/main/typescript/test/frameworkBase/_ext/monadish/DomQueryTest.spec.ts +277 -65
  86. package/src/main/typescript/test/frameworkBase/_ext/monadish/LangTest.spec.ts +1 -1
  87. package/src/main/typescript/test/frameworkBase/_ext/monadish/MappingProbes.ts +1 -1
  88. package/src/main/typescript/test/frameworkBase/_ext/monadish/MappingTest.spec.ts +1 -1
  89. package/src/main/typescript/test/frameworkBase/_ext/monadish/MonadTest.spec.ts +1 -1
  90. package/src/main/typescript/test/frameworkBase/_ext/monadish/StreamTest.spec.ts +1 -1
  91. package/src/main/typescript/test/frameworkBase/_ext/monadish/fixtures/test.js +1 -0
  92. package/src/main/typescript/test/frameworkBase/_ext/monadish/fixtures/test2.js +1 -0
  93. package/src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.ts +75 -30
  94. package/src/main/typescript/test/frameworkBase/_ext/shared/XmlResponses.ts +44 -4
  95. package/src/main/typescript/test/impl/ImplTest.spec.ts +18 -22
  96. package/src/main/typescript/test/impl/ImplTest_23.spec.ts +129 -0
  97. package/src/main/typescript/test/impl/SeparatorCharsTest.spec.ts +7 -6
  98. package/src/main/typescript/test/myfaces/OamSubmit.spec.ts +15 -24
  99. package/src/main/typescript/test/queue/AsynchronousProbe.ts +1 -1
  100. package/src/main/typescript/test/queue/AsynchronousQueueTest.spec.ts +4 -4
  101. package/src/main/typescript/test/xhrCore/EventTests.spec.ts +15 -23
  102. package/src/main/typescript/test/xhrCore/FakeWebsocket.ts +3 -3
  103. package/src/main/typescript/test/xhrCore/FileUploadTest.spec.ts +7 -32
  104. package/src/main/typescript/test/xhrCore/RequestParamsTest.spec.ts +16 -37
  105. package/src/main/typescript/test/xhrCore/RequestTest.spec.ts +17 -16
  106. package/src/main/typescript/test/xhrCore/RequestTest_23.spec.ts +364 -0
  107. package/src/main/typescript/test/xhrCore/ResponseTest.spec.ts +102 -47
  108. package/src/main/typescript/test/xhrCore/ResponseTest23.spec.ts +362 -0
  109. package/src/main/typescript/test/xhrCore/ShadowDomTest.spec.ts +6 -9
  110. package/src/main/typescript/test/xhrCore/WebsocketTest.ts +15 -15
  111. package/src/main/typescript/test/xhrCore/XhrFormDataTest.spec.ts +3 -3
  112. package/{target/main/typescript/impl/util/AsyncRunnable.js → src/main/typescript/test/xhrCore/fixtures/addedViewHead1.js} +4 -6
  113. package/src/main/typescript/test/xhrCore/fixtures/addedViewHead2.css +18 -0
  114. package/src/main/typescript/test/xhrCore/fixtures/addedViewHead2.js +16 -0
  115. package/src/main/typescript/test/xhrCore/fixtures/addedViewHead3.js +16 -0
  116. package/src/main/typescript/test/xhrCore/fixtures/nonce_script.js +16 -0
  117. package/src/main/typescript/tsconfig-typedoc.json +17 -1
  118. package/src/main/typescript/tsconfig.json +23 -5
  119. package/src/test/resources/jsf-development.js +1 -1
  120. package/src/test.html +75 -0
  121. package/src/tmp/test.html +92 -0
  122. package/target/api/{Jsf.js → _api.js} +68 -70
  123. package/target/api/_api.js.map +1 -0
  124. package/target/api/faces.js +45 -0
  125. package/target/api/faces.js.map +1 -0
  126. package/target/api/jsf.js +45 -0
  127. package/target/api/jsf.js.map +1 -0
  128. package/target/classes/com/example/jsfs_js_ts/DecoratedFacesJS.class +0 -0
  129. package/target/classes/com/example/jsfs_js_ts/DecoratingResourceHandlerWrapper.class +0 -0
  130. package/target/classes/com/example/jsfs_js_ts/FacesJSMapFileResourceWrapper.class +0 -0
  131. package/target/classes/com/example/jsfs_js_ts/FacesJSMappingDecorator.class +0 -0
  132. package/target/impl/AjaxImpl.js +85 -93
  133. package/target/impl/AjaxImpl.js.map +1 -1
  134. package/target/impl/PushImpl.js +63 -64
  135. package/target/impl/PushImpl.js.map +1 -1
  136. package/target/impl/core/Const.js +38 -19
  137. package/target/impl/core/Const.js.map +1 -1
  138. package/target/impl/core/ImplTypes.js +10 -15
  139. package/target/impl/core/ImplTypes.js.map +1 -1
  140. package/target/impl/i18n/Messages.js +5 -6
  141. package/target/impl/i18n/Messages.js.map +1 -1
  142. package/target/impl/util/Assertions.js +12 -21
  143. package/target/impl/util/Assertions.js.map +1 -1
  144. package/target/impl/util/AsyncQueue.js +28 -36
  145. package/target/impl/util/AsyncQueue.js.map +1 -1
  146. package/target/impl/util/AsyncRunnable.js +1 -1
  147. package/target/impl/util/ExtDomQuery.js +235 -138
  148. package/target/impl/util/ExtDomQuery.js.map +1 -1
  149. package/target/impl/util/Lang.js +43 -50
  150. package/target/impl/util/Lang.js.map +1 -1
  151. package/target/impl/xhrCore/ErrorData.js +37 -62
  152. package/target/impl/xhrCore/ErrorData.js.map +1 -1
  153. package/target/impl/xhrCore/EventData.js +12 -14
  154. package/target/impl/xhrCore/EventData.js.map +1 -1
  155. package/target/impl/xhrCore/RequestDataResolver.js +27 -29
  156. package/target/impl/xhrCore/RequestDataResolver.js.map +1 -1
  157. package/target/impl/xhrCore/ResonseDataResolver.js +25 -23
  158. package/target/impl/xhrCore/ResonseDataResolver.js.map +1 -1
  159. package/target/impl/xhrCore/Response.js +40 -36
  160. package/target/impl/xhrCore/Response.js.map +1 -1
  161. package/target/impl/xhrCore/ResponseProcessor.js +165 -167
  162. package/target/impl/xhrCore/ResponseProcessor.js.map +1 -1
  163. package/target/impl/xhrCore/XhrFormData.js +75 -103
  164. package/target/impl/xhrCore/XhrFormData.js.map +1 -1
  165. package/target/impl/xhrCore/XhrRequest.js +160 -145
  166. package/target/impl/xhrCore/XhrRequest.js.map +1 -1
  167. package/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst +4 -0
  168. package/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +4 -0
  169. package/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst +1 -0
  170. package/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst +1 -0
  171. package/target/myfaces/OamSubmit.js +32 -20
  172. package/target/myfaces/OamSubmit.js.map +1 -1
  173. package/target/surefire-reports/TEST-com.example.jsfs_js_ts.JsfsJsTsApplicationTests.xml +78 -0
  174. package/target/surefire-reports/com.example.jsfs_js_ts.JsfsJsTsApplicationTests.txt +7 -0
  175. package/target/test/frameworkBase/LangTest.spec.js +46 -32
  176. package/target/test/frameworkBase/LangTest.spec.js.map +1 -1
  177. package/target/test/frameworkBase/_ext/monadish/DomQueryTest.spec.js +372 -134
  178. package/target/test/frameworkBase/_ext/monadish/DomQueryTest.spec.js.map +1 -1
  179. package/target/test/frameworkBase/_ext/monadish/LangTest.spec.js +46 -32
  180. package/target/test/frameworkBase/_ext/monadish/LangTest.spec.js.map +1 -1
  181. package/target/test/frameworkBase/_ext/monadish/MappingProbes.js +25 -34
  182. package/target/test/frameworkBase/_ext/monadish/MappingProbes.js.map +1 -1
  183. package/target/test/frameworkBase/_ext/monadish/MappingTest.spec.js +9 -9
  184. package/target/test/frameworkBase/_ext/monadish/MappingTest.spec.js.map +1 -1
  185. package/target/test/frameworkBase/_ext/monadish/MonadTest.spec.js +32 -32
  186. package/target/test/frameworkBase/_ext/monadish/MonadTest.spec.js.map +1 -1
  187. package/target/test/frameworkBase/_ext/monadish/StreamTest.spec.js +51 -49
  188. package/target/test/frameworkBase/_ext/monadish/StreamTest.spec.js.map +1 -1
  189. package/target/test/frameworkBase/_ext/shared/StandardInits.js +277 -124
  190. package/target/test/frameworkBase/_ext/shared/StandardInits.js.map +1 -1
  191. package/target/test/frameworkBase/_ext/shared/XmlResponses.js +199 -18
  192. package/target/test/frameworkBase/_ext/shared/XmlResponses.js.map +1 -1
  193. package/target/test/impl/ImplTest.spec.js +45 -33
  194. package/target/test/impl/ImplTest.spec.js.map +1 -1
  195. package/target/test/impl/ImplTest_23.spec.js +133 -0
  196. package/target/test/impl/ImplTest_23.spec.js.map +1 -0
  197. package/target/test/impl/SeparatorCharsTest.spec.js +22 -20
  198. package/target/test/impl/SeparatorCharsTest.spec.js.map +1 -1
  199. package/target/test/myfaces/OamSubmit.spec.js +35 -42
  200. package/target/test/myfaces/OamSubmit.spec.js.map +1 -1
  201. package/target/test/queue/AsynchronousProbe.js +24 -30
  202. package/target/test/queue/AsynchronousProbe.js.map +1 -1
  203. package/target/test/queue/AsynchronousQueueTest.spec.js +40 -71
  204. package/target/test/queue/AsynchronousQueueTest.spec.js.map +1 -1
  205. package/target/test/xhrCore/EventTests.spec.js +47 -83
  206. package/target/test/xhrCore/EventTests.spec.js.map +1 -1
  207. package/target/test/xhrCore/FakeWebsocket.js +15 -17
  208. package/target/test/xhrCore/FakeWebsocket.js.map +1 -1
  209. package/target/test/xhrCore/FileUploadTest.spec.js +50 -91
  210. package/target/test/xhrCore/FileUploadTest.spec.js.map +1 -1
  211. package/target/test/xhrCore/RequestParamsTest.spec.js +49 -98
  212. package/target/test/xhrCore/RequestParamsTest.spec.js.map +1 -1
  213. package/target/test/xhrCore/RequestTest.spec.js +84 -120
  214. package/target/test/xhrCore/RequestTest.spec.js.map +1 -1
  215. package/target/test/{typescript/xhrCore/RequestTest.js → xhrCore/RequestTest_23.spec.js} +142 -127
  216. package/target/test/xhrCore/RequestTest_23.spec.js.map +1 -0
  217. package/target/test/xhrCore/ResponseTest.spec.js +183 -105
  218. package/target/test/xhrCore/ResponseTest.spec.js.map +1 -1
  219. package/target/test/xhrCore/ResponseTest23.spec.js +312 -0
  220. package/target/test/xhrCore/ResponseTest23.spec.js.map +1 -0
  221. package/target/test/xhrCore/ShadowDomTest.spec.js +33 -66
  222. package/target/test/xhrCore/ShadowDomTest.spec.js.map +1 -1
  223. package/target/test/xhrCore/WebsocketTest.js +64 -97
  224. package/target/test/xhrCore/WebsocketTest.js.map +1 -1
  225. package/target/test/xhrCore/XhrFormDataTest.spec.js +42 -16
  226. package/target/test/xhrCore/XhrFormDataTest.spec.js.map +1 -1
  227. package/target/test-classes/jsf-development.js +452 -3674
  228. package/target/test-classes/jsf.js +1 -1
  229. package/target/test-classes/jsf.js.br +0 -0
  230. package/target/test-classes/jsf.js.gz +0 -0
  231. package/webpack.config.js +7 -4
  232. package/webpack.config.js.map +1 -1
  233. package/webpack.config.ts +23 -4
  234. package/dist/docs/modules/jsf.html +0 -71
  235. package/dist/docs/variables/jsf.specversion.html +0 -52
  236. package/integrationdeploy.cmd +0 -4
  237. package/integrationsdeploy.sh +0 -5
  238. package/remap.js +0 -44
  239. package/remap.js.map +0 -1
  240. package/src/main/java/com/example/jsfs_js_ts/JsfsJsTsApplication.java +0 -12
  241. package/src/main/types/typedefs.d.ts +0 -66
  242. package/target/api/Jsf.js.map +0 -1
  243. package/target/classes/com/example/jsfs_js_ts/JsfsJsTsApplication.class +0 -0
  244. package/target/impl/util/ListenerQueue.js +0 -3
  245. package/target/impl/util/ListenerQueue.js.map +0 -1
  246. package/target/main/typescript/api/Jsf.js +0 -258
  247. package/target/main/typescript/api/Jsf.js.map +0 -1
  248. package/target/main/typescript/impl/AjaxImpl.js +0 -569
  249. package/target/main/typescript/impl/AjaxImpl.js.map +0 -1
  250. package/target/main/typescript/impl/PushImpl.js +0 -215
  251. package/target/main/typescript/impl/PushImpl.js.map +0 -1
  252. package/target/main/typescript/impl/core/Const.js +0 -135
  253. package/target/main/typescript/impl/core/Const.js.map +0 -1
  254. package/target/main/typescript/impl/core/ImplTypes.js +0 -43
  255. package/target/main/typescript/impl/core/ImplTypes.js.map +0 -1
  256. package/target/main/typescript/impl/i18n/Messages.js +0 -114
  257. package/target/main/typescript/impl/i18n/Messages.js.map +0 -1
  258. package/target/main/typescript/impl/util/Assertions.js +0 -90
  259. package/target/main/typescript/impl/util/Assertions.js.map +0 -1
  260. package/target/main/typescript/impl/util/AsyncQueue.js +0 -104
  261. package/target/main/typescript/impl/util/AsyncQueue.js.map +0 -1
  262. package/target/main/typescript/impl/util/AsyncRunnable.js.map +0 -1
  263. package/target/main/typescript/impl/util/ExtDomQuery.js +0 -129
  264. package/target/main/typescript/impl/util/ExtDomQuery.js.map +0 -1
  265. package/target/main/typescript/impl/util/Lang.js +0 -215
  266. package/target/main/typescript/impl/util/Lang.js.map +0 -1
  267. package/target/main/typescript/impl/util/ListenerQueue.js +0 -3
  268. package/target/main/typescript/impl/util/ListenerQueue.js.map +0 -1
  269. package/target/main/typescript/impl/xhrCore/ErrorData.js +0 -89
  270. package/target/main/typescript/impl/xhrCore/ErrorData.js.map +0 -1
  271. package/target/main/typescript/impl/xhrCore/EventData.js +0 -30
  272. package/target/main/typescript/impl/xhrCore/EventData.js.map +0 -1
  273. package/target/main/typescript/impl/xhrCore/IResponseProcessor.js +0 -3
  274. package/target/main/typescript/impl/xhrCore/IResponseProcessor.js.map +0 -1
  275. package/target/main/typescript/impl/xhrCore/RequestDataResolver.js +0 -143
  276. package/target/main/typescript/impl/xhrCore/RequestDataResolver.js.map +0 -1
  277. package/target/main/typescript/impl/xhrCore/ResonseDataResolver.js +0 -103
  278. package/target/main/typescript/impl/xhrCore/ResonseDataResolver.js.map +0 -1
  279. package/target/main/typescript/impl/xhrCore/Response.js +0 -167
  280. package/target/main/typescript/impl/xhrCore/Response.js.map +0 -1
  281. package/target/main/typescript/impl/xhrCore/ResponseProcessor.js +0 -368
  282. package/target/main/typescript/impl/xhrCore/ResponseProcessor.js.map +0 -1
  283. package/target/main/typescript/impl/xhrCore/XhrFormData.js +0 -272
  284. package/target/main/typescript/impl/xhrCore/XhrFormData.js.map +0 -1
  285. package/target/main/typescript/impl/xhrCore/XhrRequest.js +0 -281
  286. package/target/main/typescript/impl/xhrCore/XhrRequest.js.map +0 -1
  287. package/target/test/frameworkBase/_ext/monadish/DomQueryTest.js +0 -293
  288. package/target/test/frameworkBase/_ext/monadish/DomQueryTest.js.map +0 -1
  289. package/target/test/frameworkBase/_ext/monadish/LangTest.js +0 -89
  290. package/target/test/frameworkBase/_ext/monadish/LangTest.js.map +0 -1
  291. package/target/test/frameworkBase/_ext/monadish/MappingTest.js +0 -39
  292. package/target/test/frameworkBase/_ext/monadish/MappingTest.js.map +0 -1
  293. package/target/test/frameworkBase/_ext/monadish/MonadTest.js +0 -155
  294. package/target/test/frameworkBase/_ext/monadish/MonadTest.js.map +0 -1
  295. package/target/test/frameworkBase/_ext/monadish/StreamTest.js +0 -176
  296. package/target/test/frameworkBase/_ext/monadish/StreamTest.js.map +0 -1
  297. package/target/test/frameworkBase/_ext/monadish/XmlQueryTest.js +0 -1
  298. package/target/test/frameworkBase/_ext/monadish/XmlQueryTest.js.map +0 -1
  299. package/target/test/typescript/frameworkBase/LangTest.js +0 -112
  300. package/target/test/typescript/frameworkBase/LangTest.js.map +0 -1
  301. package/target/test/typescript/frameworkBase/_ext/monadish/DomQueryTest.js +0 -293
  302. package/target/test/typescript/frameworkBase/_ext/monadish/DomQueryTest.js.map +0 -1
  303. package/target/test/typescript/frameworkBase/_ext/monadish/LangTest.js +0 -89
  304. package/target/test/typescript/frameworkBase/_ext/monadish/LangTest.js.map +0 -1
  305. package/target/test/typescript/frameworkBase/_ext/monadish/MappingProbes.js +0 -115
  306. package/target/test/typescript/frameworkBase/_ext/monadish/MappingProbes.js.map +0 -1
  307. package/target/test/typescript/frameworkBase/_ext/monadish/MappingTest.js +0 -39
  308. package/target/test/typescript/frameworkBase/_ext/monadish/MappingTest.js.map +0 -1
  309. package/target/test/typescript/frameworkBase/_ext/monadish/MonadTest.js +0 -155
  310. package/target/test/typescript/frameworkBase/_ext/monadish/MonadTest.js.map +0 -1
  311. package/target/test/typescript/frameworkBase/_ext/monadish/StreamTest.js +0 -176
  312. package/target/test/typescript/frameworkBase/_ext/monadish/StreamTest.js.map +0 -1
  313. package/target/test/typescript/frameworkBase/_ext/monadish/XmlQueryTest.js +0 -1
  314. package/target/test/typescript/frameworkBase/_ext/monadish/XmlQueryTest.js.map +0 -1
  315. package/target/test/typescript/frameworkBase/_ext/shared/StandardInits.js +0 -264
  316. package/target/test/typescript/frameworkBase/_ext/shared/StandardInits.js.map +0 -1
  317. package/target/test/typescript/frameworkBase/_ext/shared/XmlResponses.js +0 -23
  318. package/target/test/typescript/frameworkBase/_ext/shared/XmlResponses.js.map +0 -1
  319. package/target/test/typescript/impl/ImplTest.js +0 -98
  320. package/target/test/typescript/impl/ImplTest.js.map +0 -1
  321. package/target/test/typescript/impl/SeparatorCharsTest.js +0 -72
  322. package/target/test/typescript/impl/SeparatorCharsTest.js.map +0 -1
  323. package/target/test/typescript/queue/AsynchronousProbe.js +0 -99
  324. package/target/test/typescript/queue/AsynchronousProbe.js.map +0 -1
  325. package/target/test/typescript/queue/AsynchronousQueueTest.js +0 -130
  326. package/target/test/typescript/queue/AsynchronousQueueTest.js.map +0 -1
  327. package/target/test/typescript/xhrCore/EventTests.js +0 -155
  328. package/target/test/typescript/xhrCore/EventTests.js.map +0 -1
  329. package/target/test/typescript/xhrCore/FakeWebsocket.js +0 -25
  330. package/target/test/typescript/xhrCore/FakeWebsocket.js.map +0 -1
  331. package/target/test/typescript/xhrCore/FileUploadTest.js +0 -166
  332. package/target/test/typescript/xhrCore/FileUploadTest.js.map +0 -1
  333. package/target/test/typescript/xhrCore/RequestParamsTest.js +0 -151
  334. package/target/test/typescript/xhrCore/RequestParamsTest.js.map +0 -1
  335. package/target/test/typescript/xhrCore/RequestTest.js.map +0 -1
  336. package/target/test/typescript/xhrCore/ResponseTest.js +0 -257
  337. package/target/test/typescript/xhrCore/ResponseTest.js.map +0 -1
  338. package/target/test/typescript/xhrCore/ShadowDomTest.js +0 -122
  339. package/target/test/typescript/xhrCore/ShadowDomTest.js.map +0 -1
  340. package/target/test/typescript/xhrCore/WebsocketTest.js +0 -182
  341. package/target/test/typescript/xhrCore/WebsocketTest.js.map +0 -1
  342. package/target/test/typescript/xhrCore/XhrFormDataTest.js +0 -58
  343. package/target/test/typescript/xhrCore/XhrFormDataTest.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- /* Licensed to the Apache Software Foundation (ASF) under one or more
2
+ /*! Licensed to the Apache Software Foundation (ASF) under one or more
3
3
  * contributor license agreements. See the NOTICE file distributed with
4
4
  * this work for additional information regarding copyright ownership.
5
5
  * The ASF licenses this file to you under the Apache License, Version 2.0
@@ -19,29 +19,29 @@
19
19
  */
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
21
  exports.ExtLang = void 0;
22
- var mona_dish_1 = require("mona-dish");
23
- var Messages_1 = require("../i18n/Messages");
24
- var Const_1 = require("../core/Const");
25
- var RequestDataResolver_1 = require("../xhrCore/RequestDataResolver");
22
+ const mona_dish_1 = require("mona-dish");
23
+ const Messages_1 = require("../i18n/Messages");
24
+ const Const_1 = require("../core/Const");
25
+ const RequestDataResolver_1 = require("../xhrCore/RequestDataResolver");
26
26
  var ExtLang;
27
27
  (function (ExtLang) {
28
- var installedLocale;
29
- var nameSpace = "impl/util/Lang/";
28
+ let installedLocale;
29
+ let nameSpace = "impl/util/Lang/";
30
30
  function getLanguage() {
31
31
  //TODO global config override
32
32
  var _a, _b;
33
- var language = (_b = (_a = navigator.languages) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : navigator === null || navigator === void 0 ? void 0 : navigator.language;
33
+ let language = (_b = (_a = navigator.languages) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : navigator === null || navigator === void 0 ? void 0 : navigator.language;
34
34
  language = language.split("-")[0];
35
35
  return language;
36
36
  }
37
37
  ExtLang.getLanguage = getLanguage;
38
38
  //should be in lang, but for now here to avoid recursive imports, not sure if typescript still has a problem with those
39
39
  /**
40
- * helper function to savely resolve anything
40
+ * helper function to safely resolve anything
41
41
  * this is not an elvis operator, it resolves
42
42
  * a value without exception in a tree and if
43
43
  * it is not resolvable then an optional of
44
- * a default value is restored or Optional.empty
44
+ * a default value is restored or Optional\.empty
45
45
  * if none is given
46
46
  *
47
47
  * usage
@@ -50,11 +50,10 @@ var ExtLang;
50
50
  * </code>
51
51
  *
52
52
  * @param resolverProducer a lambda which can produce the value
53
- * @param defaultValue an optional default value if the producer failes to produce anything
53
+ * @param defaultValue an optional default value if the producer fails to produce anything
54
54
  * @returns an Optional of the produced value
55
55
  */
56
- function failSaveResolve(resolverProducer, defaultValue) {
57
- if (defaultValue === void 0) { defaultValue = null; }
56
+ function failSaveResolve(resolverProducer, defaultValue = null) {
58
57
  return mona_dish_1.Lang.saveResolve(resolverProducer, defaultValue);
59
58
  }
60
59
  ExtLang.failSaveResolve = failSaveResolve;
@@ -67,8 +66,7 @@ var ExtLang;
67
66
  * @param resolverProducer a producer function which produces a value in the non error case
68
67
  * @param defaultValue the default value in case of a fail of the function
69
68
  */
70
- function failSaveExecute(resolverProducer, defaultValue) {
71
- if (defaultValue === void 0) { defaultValue = null; }
69
+ function failSaveExecute(resolverProducer, defaultValue = null) {
72
70
  mona_dish_1.Lang.saveResolve(resolverProducer, defaultValue);
73
71
  }
74
72
  ExtLang.failSaveExecute = failSaveExecute;
@@ -76,23 +74,19 @@ var ExtLang;
76
74
  * returns a given localized message upon a given key
77
75
  * basic java log like templating functionality is included
78
76
  *
79
- * @param {String} key the key for the message
80
- * @param {String} defaultMessage optional default message if none was found
77
+ * @param key the key for the message
78
+ * @param defaultMessage optional default message if none was found
81
79
  *
82
- * Additionally you can pass additional arguments, which are used
80
+ * Additionally, you can pass additional arguments, which are used
83
81
  * in the same way java log templates use the params
84
82
  *
85
83
  * @param templateParams the param list to be filled in
86
84
  */
87
- function getMessage(key, defaultMessage) {
85
+ function getMessage(key, defaultMessage, ...templateParams) {
88
86
  var _a, _b;
89
- var templateParams = [];
90
- for (var _i = 2; _i < arguments.length; _i++) {
91
- templateParams[_i - 2] = arguments[_i];
92
- }
93
87
  installedLocale = installedLocale !== null && installedLocale !== void 0 ? installedLocale : new Messages_1.Messages();
94
- var msg = (_b = (_a = installedLocale[key]) !== null && _a !== void 0 ? _a : defaultMessage) !== null && _b !== void 0 ? _b : key;
95
- mona_dish_1.Stream.of.apply(mona_dish_1.Stream, templateParams).each(function (param, cnt) {
88
+ let msg = (_b = (_a = installedLocale[key]) !== null && _a !== void 0 ? _a : defaultMessage) !== null && _b !== void 0 ? _b : key;
89
+ mona_dish_1.Stream.of(...templateParams).each((param, cnt) => {
96
90
  msg = msg.replace(new RegExp(["\\{", cnt, "\\}"].join(Const_1.EMPTY_STR), "g"), param);
97
91
  });
98
92
  return msg;
@@ -104,21 +98,20 @@ var ExtLang;
104
98
  * @param val the value
105
99
  * @param delimiter the delimiter
106
100
  */
107
- function keyValToStr(key, val, delimiter) {
108
- if (delimiter === void 0) { delimiter = "\n"; }
101
+ function keyValToStr(key, val, delimiter = "\n") {
109
102
  return [key, val].join(delimiter);
110
103
  }
111
104
  ExtLang.keyValToStr = keyValToStr;
112
105
  /**
113
- * creates an exeption with additional internal parameters
106
+ * creates an exception with additional internal parameters
114
107
  * for extra information
115
108
  *
116
109
  * @param error
117
- * @param {String} title the exception title
118
- * @param {String} name the exception name
119
- * @param {String} callerCls the caller class
120
- * @param {String} callFunc the caller function
121
- * @param {String} message the message for the exception
110
+ * @param title the exception title
111
+ * @param name the exception name
112
+ * @param callerCls the caller class
113
+ * @param callFunc the caller function
114
+ * @param message the message for the exception
122
115
  */
123
116
  function makeException(error, title, name, callerCls, callFunc, message) {
124
117
  var _a;
@@ -127,15 +120,15 @@ var ExtLang;
127
120
  ExtLang.makeException = makeException;
128
121
  /**
129
122
  * fetches a global config entry
130
- * @param {String} configName the name of the configuration entry
131
- * @param {Object} defaultValue
123
+ * @param configName the name of the configuration entry
124
+ * @param defaultValue
132
125
  *
133
126
  * @return either the config entry or if none is given the default value
134
127
  */
135
128
  function getGlobalConfig(configName, defaultValue) {
136
129
  var _a, _b, _c;
137
130
  /**
138
- * note we could use exists but this is an heavy operation, since the config name usually
131
+ * note we could use exists but this is a heavy operation, since the config name usually
139
132
  * given this function here is called very often
140
133
  * is a single entry without . in between we can do the lighter shortcut
141
134
  */
@@ -143,7 +136,7 @@ var ExtLang;
143
136
  }
144
137
  ExtLang.getGlobalConfig = getGlobalConfig;
145
138
  /**
146
- * fetches the form in an fuzzy manner depending
139
+ * fetches the form in a fuzzy manner depending
147
140
  * on an element or event target.
148
141
  *
149
142
  * The idea is that according to the jsf spec
@@ -152,7 +145,7 @@ var ExtLang;
152
145
  * This is fine, but since then html5 came into the picture with the form attribute the element
153
146
  * can be anywhere referencing its parent form.
154
147
  *
155
- * Also theoretically you can have the case of an issuing element enclosing a set of forms
148
+ * Also, theoretically you can have the case of an issuing element enclosing a set of forms
156
149
  * (not really often used, but theoretically it could be input button allows to embed html for instance)
157
150
  *
158
151
  * So the idea is not to limit the issuing form determination to the spec case
@@ -162,23 +155,23 @@ var ExtLang;
162
155
  * @param event
163
156
  */
164
157
  function getForm(elem, event) {
165
- var queryElem = new mona_dish_1.DQ(elem);
166
- var eventTarget = new mona_dish_1.DQ((0, RequestDataResolver_1.getEventTarget)(event));
158
+ let queryElem = new mona_dish_1.DQ(elem);
159
+ let eventTarget = new mona_dish_1.DQ((0, RequestDataResolver_1.getEventTarget)(event));
167
160
  if (queryElem.isTag(Const_1.TAG_FORM)) {
168
161
  return queryElem;
169
162
  }
170
163
  //html 5 for handling
171
164
  if (queryElem.attr(Const_1.TAG_FORM).isPresent()) {
172
- var formId = queryElem.attr(Const_1.TAG_FORM).value;
173
- var foundForm = mona_dish_1.DQ.byId(formId, true);
165
+ let formId = queryElem.attr(Const_1.TAG_FORM).value;
166
+ let foundForm = mona_dish_1.DQ.byId(formId, true);
174
167
  if (foundForm.isPresent()) {
175
168
  return foundForm;
176
169
  }
177
170
  }
178
- var form = queryElem.parents(Const_1.TAG_FORM)
179
- .orElseLazy(function () { return queryElem.byTagName(Const_1.TAG_FORM, true); })
180
- .orElseLazy(function () { return eventTarget.parents(Const_1.TAG_FORM); })
181
- .orElseLazy(function () { return eventTarget.byTagName(Const_1.TAG_FORM); })
171
+ let form = queryElem.parents(Const_1.TAG_FORM)
172
+ .orElseLazy(() => queryElem.byTagName(Const_1.TAG_FORM, true))
173
+ .orElseLazy(() => eventTarget.parents(Const_1.TAG_FORM))
174
+ .orElseLazy(() => eventTarget.byTagName(Const_1.TAG_FORM))
182
175
  .first();
183
176
  assertFormExists(form);
184
177
  return form;
@@ -188,10 +181,11 @@ var ExtLang;
188
181
  * gets the local or global options with local ones having higher priority
189
182
  * if no local or global one was found then the default value is given back
190
183
  *
191
- * @param {String} configName the name of the configuration entry
192
- * @param {String} localOptions the local options root for the configuration myfaces as default marker is added implicitely
184
+ * @param configName the name of the configuration entry
185
+ * @param localOptions the local options root for the configuration myfaces as default marker is added
186
+ * implicitly
193
187
  *
194
- * @param {Object} defaultValue
188
+ * @param defaultValue
195
189
  *
196
190
  * @return either the config entry or if none is given the default value
197
191
  */
@@ -202,7 +196,6 @@ var ExtLang;
202
196
  ExtLang.getLocalOrGlobalConfig = getLocalOrGlobalConfig;
203
197
  /**
204
198
  * assert that the form exists and throw an exception in the case it does not
205
- * (TODO move this into the assertions)
206
199
  *
207
200
  * @param form the form to check for
208
201
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Lang.js","sourceRoot":"","sources":["../../../src/main/typescript/impl/util/Lang.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;AAEH,uCAAmF;AACnF,6CAA0C;AAC1C,uCAAkD;AAClD,sEAA8D;AAE9D,IAAc,OAAO,CAgMpB;AAhMD,WAAc,OAAO;IAEjB,IAAI,eAAyB,CAAC;IAC9B,IAAI,SAAS,GAAG,iBAAiB,CAAC;IAElC,SAAgB,WAAW;QACvB,6BAA6B;;QAE7B,IAAI,QAAQ,GAAW,MAAA,MAAM,SAAU,CAAC,SAAS,0CAAG,CAAC,CAAC,mCAAI,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,QAAQ,CAAC;QAC9E,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QAClC,OAAO,QAAQ,CAAC;IACpB,CAAC;IANe,mBAAW,cAM1B,CAAA;IAED,uHAAuH;IACvH;;;;;;;;;;;;;;;;OAgBG;IACH,SAAgB,eAAe,CAAI,gBAAyB,EAAE,YAAsB;QAAtB,6BAAA,EAAA,mBAAsB;QAChF,OAAO,gBAAQ,CAAC,WAAW,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;IAChE,CAAC;IAFe,uBAAe,kBAE9B,CAAA;IAED;;;;;;;;OAQG;IACH,SAAgB,eAAe,CAAI,gBAA2B,EAAE,YAAsB;QAAtB,6BAAA,EAAA,mBAAsB;QAClF,gBAAQ,CAAC,WAAW,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;IACzD,CAAC;IAFe,uBAAe,kBAE9B,CAAA;IAED;;;;;;;;;;;OAWG;IACH,SAAgB,UAAU,CAAC,GAAW,EAAE,c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4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
2
  Object.defineProperty(exports, "__esModule", { value: true });
18
3
  exports.ErrorData = exports.ErrorType = void 0;
19
- /* Licensed to the Apache Software Foundation (ASF) under one or more
4
+ /*! Licensed to the Apache Software Foundation (ASF) under one or more
20
5
  * contributor license agreements. See the NOTICE file distributed with
21
6
  * this work for additional information regarding copyright ownership.
22
7
  * The ASF licenses this file to you under the Apache License, Version 2.0
@@ -31,9 +16,9 @@ exports.ErrorData = exports.ErrorType = void 0;
31
16
  * See the License for the specific language governing permissions and
32
17
  * limitations under the License.
33
18
  */
34
- var Const_1 = require("../core/Const");
35
- var EventData_1 = require("./EventData");
36
- var Lang_1 = require("../util/Lang");
19
+ const Const_1 = require("../core/Const");
20
+ const EventData_1 = require("./EventData");
21
+ const Lang_1 = require("../util/Lang");
37
22
  var getMessage = Lang_1.ExtLang.getMessage;
38
23
  var ErrorType;
39
24
  (function (ErrorType) {
@@ -51,56 +36,46 @@ var ErrorType;
51
36
  * everything into the same attributes,
52
37
  * I will add deprecated myfaces backwards compatibility attributes as well
53
38
  */
54
- var ErrorData = /** @class */ (function (_super) {
55
- __extends(ErrorData, _super);
56
- function ErrorData(source, errorName, errorMessage, responseText, responseXML, responseCode, status, type) {
57
- if (responseText === void 0) { responseText = null; }
58
- if (responseXML === void 0) { responseXML = null; }
59
- if (responseCode === void 0) { responseCode = "200"; }
60
- if (status === void 0) { status = "UNKNOWN"; }
61
- if (type === void 0) { type = ErrorType.CLIENT_ERROR; }
62
- var _this = _super.call(this) || this;
63
- _this.type = "error";
64
- _this.source = source;
65
- _this.type = "error";
66
- _this.errorName = errorName;
67
- _this.message = _this.errorMessage = errorMessage;
68
- _this.responseCode = responseCode;
69
- _this.responseText = responseText;
70
- _this.status = status;
71
- _this.typeDetails = type;
39
+ class ErrorData extends EventData_1.EventData {
40
+ constructor(source, errorName, errorMessage, responseText = null, responseXML = null, responseCode = "200", status = "UNKNOWN", type = ErrorType.CLIENT_ERROR) {
41
+ super();
42
+ this.type = "error";
43
+ this.source = source;
44
+ this.type = "error";
45
+ this.errorName = errorName;
46
+ this.message = this.errorMessage = errorMessage;
47
+ this.responseCode = responseCode;
48
+ this.responseText = responseText;
49
+ this.status = status;
50
+ this.typeDetails = type;
72
51
  if (type == ErrorType.SERVER_ERROR) {
73
- _this.serverErrorName = _this.errorName;
74
- _this.serverErrorMessage = _this.errorMessage;
52
+ this.serverErrorName = this.errorName;
53
+ this.serverErrorMessage = this.errorMessage;
75
54
  }
76
- return _this;
77
55
  }
78
- ErrorData.fromClient = function (e) {
56
+ static fromClient(e) {
79
57
  var _a, _b, _c;
80
58
  return new ErrorData("client", (_a = e === null || e === void 0 ? void 0 : e.name) !== null && _a !== void 0 ? _a : '', (_b = e === null || e === void 0 ? void 0 : e.message) !== null && _b !== void 0 ? _b : '', (_c = e === null || e === void 0 ? void 0 : e.stack) !== null && _c !== void 0 ? _c : '');
81
- };
82
- ErrorData.fromHttpConnection = function (source, name, message, responseText, responseCode, status) {
83
- if (status === void 0) { status = 'UNKNOWN'; }
84
- return new ErrorData(source, name, message, responseText, responseCode, "".concat(responseCode), status, ErrorType.HTTP_ERROR);
85
- };
86
- ErrorData.fromGeneric = function (context, errorCode, errorType) {
87
- if (errorType === void 0) { errorType = ErrorType.SERVER_ERROR; }
88
- var getMsg = this.getMsg;
89
- var source = getMsg(context, Const_1.SOURCE);
90
- var errorName = getMsg(context, Const_1.ERROR_NAME);
91
- var errorMessage = getMsg(context, Const_1.ERROR_MESSAGE);
92
- var status = getMsg(context, Const_1.STATUS);
93
- var responseText = getMsg(context, Const_1.RESPONSE_TEXT);
94
- var responseXML = getMsg(context, Const_1.RESPONSE_XML);
59
+ }
60
+ static fromHttpConnection(source, name, message, responseText, responseCode, status = 'UNKNOWN') {
61
+ return new ErrorData(source, name, message, responseText, responseCode, `${responseCode}`, status, ErrorType.HTTP_ERROR);
62
+ }
63
+ static fromGeneric(context, errorCode, errorType = ErrorType.SERVER_ERROR) {
64
+ let getMsg = this.getMsg;
65
+ let source = getMsg(context, Const_1.SOURCE);
66
+ let errorName = getMsg(context, Const_1.ERROR_NAME);
67
+ let errorMessage = getMsg(context, Const_1.ERROR_MESSAGE);
68
+ let status = getMsg(context, Const_1.STATUS);
69
+ let responseText = getMsg(context, Const_1.RESPONSE_TEXT);
70
+ let responseXML = getMsg(context, Const_1.RESPONSE_XML);
95
71
  return new ErrorData(source, errorName, errorMessage, responseText, responseXML, errorCode + Const_1.EMPTY_STR, status, errorType);
96
- };
97
- ErrorData.getMsg = function (context, param) {
72
+ }
73
+ static getMsg(context, param) {
98
74
  return getMessage(context.getIf(param).orElse(Const_1.UNKNOWN).value);
99
- };
100
- ErrorData.fromServerError = function (context) {
75
+ }
76
+ static fromServerError(context) {
101
77
  return this.fromGeneric(context, -1);
102
- };
103
- return ErrorData;
104
- }(EventData_1.EventData));
78
+ }
79
+ }
105
80
  exports.ErrorData = ErrorData;
106
81
  //# sourceMappingURL=ErrorData.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorData.js","sourceRoot":"","sources":["../../../src/main/typescript/impl/xhrCore/ErrorData.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,uCASuB;AAGvB,yCAAsC;AACtC,qCAAqC;AACrC,IAAO,UAAU,GAAG,cAAO,CAAC,UAAU,CAAC;AAGvC,IAAY,SAKX;AALD,WAAY,SAAS;IACjB,yCAA4B,CAAA;IAC5B,q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CAAC,CAAC;QAClD,IAAI,WAAW,GAAG,MAAM,CAAC,OAAO,EAAE,oBAAY,CAAC,CAAC;QAChD,OAAO,IAAI,SAAS,CAAC,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,GAAG,iBAAS,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;IAC/H,CAAC;IAEO,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK;QAChC,OAAO,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,eAAO,CAAC,CAAC,KAAK,CAAC,CAAC;IAClE,CAAC;IAED,MAAM,CAAC,eAAe,CAAC,OAAe;QAClC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC;IACzC,CAAC;CAEJ;AA/DD,8BA+DC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EventData = void 0;
4
- /* Licensed to the Apache Software Foundation (ASF) under one or more
4
+ /*! Licensed to the Apache Software Foundation (ASF) under one or more
5
5
  * contributor license agreements. See the NOTICE file distributed with
6
6
  * this work for additional information regarding copyright ownership.
7
7
  * The ASF licenses this file to you under the Apache License, Version 2.0
@@ -16,19 +16,18 @@ exports.EventData = void 0;
16
16
  * See the License for the specific language governing permissions and
17
17
  * limitations under the License.
18
18
  */
19
- var mona_dish_1 = require("mona-dish");
20
- var Const_1 = require("../core/Const");
21
- var EventData = /** @class */ (function () {
22
- function EventData() {
23
- }
24
- EventData.createFromRequest = function (request, context, /*event name*/ name) {
19
+ const mona_dish_1 = require("mona-dish");
20
+ const Const_1 = require("../core/Const");
21
+ class EventData {
22
+ static createFromRequest(request, context, /*event name*/ name) {
25
23
  var _a;
26
- var eventData = new EventData();
24
+ let eventData = new EventData();
27
25
  eventData.type = Const_1.EVENT;
28
26
  eventData.status = name;
29
- var sourceId = context.getIf(Const_1.SOURCE)
30
- .orElseLazy(function () { return context.getIf(Const_1.P_PARTIAL_SOURCE).value; })
31
- .orElseLazy(function () { return context.getIf(Const_1.CTX_PARAM_PASS_THR, Const_1.P_PARTIAL_SOURCE).value; }).value;
27
+ let sourceId = context.getIf(Const_1.SOURCE)
28
+ .orElseLazy(() => context.getIf(Const_1.P_PARTIAL_SOURCE).value)
29
+ .orElseLazy(() => context.getIf(Const_1.CTX_PARAM_PASS_THR, Const_1.P_PARTIAL_SOURCE).value)
30
+ .value;
32
31
  if (sourceId) {
33
32
  eventData.source = mona_dish_1.DQ.byId(sourceId, true).first().value.value;
34
33
  }
@@ -38,8 +37,7 @@ var EventData = /** @class */ (function () {
38
37
  eventData.responseXML = request === null || request === void 0 ? void 0 : request.responseXML;
39
38
  }
40
39
  return eventData;
41
- };
42
- return EventData;
43
- }());
40
+ }
41
+ }
44
42
  exports.EventData = EventData;
45
43
  //# sourceMappingURL=EventData.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EventData.js","sourceRoot":"","sources":["../../../src/main/typescript/impl/xhrCore/EventData.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACH,uCAAqC;AACrC,uCAAyF;AAEzF;IAAA;IA6BA,CAAC;IArBU,2BAAiB,GAAxB,UAAyB,OAAuB,EAAE,OAAe,EAAE,cAAc,CAAC,IAAY;;QAE1F,IAAI,SAAS,GAAG,IAAI,SAAS,EAAE,CAAC;QAEhC,SAAS,CAAC,IAAI,GAAG,aAAK,CAAC;QACvB,SAAS,CAAC,MAAM,GAAG,IAAI,CAAC;QAExB,IAAI,QAAQ,GAAW,OAAO,CAAC,KAAK,CAAC,cAAM,CAAC;aACvC,UAAU,CAAC,cAAM,OAAA,OAAO,CAAC,KAAK,CAAC,wBAAgB,CAAC,CAAC,KAAK,EAArC,CAAqC,CAAC;aACvD,UAAU,CAAC,cAAM,OAAA,OAAO,CAAC,KAAK,CAAC,0BAAkB,EAAE,wBAAgB,CAAC,CA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K,CAAC;aAC3E,KAAK,CAAC;QACX,IAAI,QAAQ,EAAE;YACV,SAAS,CAAC,MAAM,GAAG,cAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC;SAClE;QAED,IAAI,IAAI,KAAK,aAAK,EAAE;YAChB,SAAS,CAAC,YAAY,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,0CAAE,QAAQ,EAAE,CAAC;YACrD,SAAS,CAAC,YAAY,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY,CAAC;YAC/C,SAAS,CAAC,WAAW,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,CAAC;SAChD;QACD,OAAO,SAAS,CAAC;IACrB,CAAC;CACJ;AA9BD,8BA8BC"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- /* Licensed to the Apache Software Foundation (ASF) under one or more
2
+ /*! Licensed to the Apache Software Foundation (ASF) under one or more
3
3
  * contributor license agreements. See the NOTICE file distributed with
4
4
  * this work for additional information regarding copyright ownership.
5
5
  * The ASF licenses this file to you under the Apache License, Version 2.0
@@ -16,10 +16,10 @@
16
16
  */
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.resolveDefaults = exports.getEventTarget = exports.resolveWindowId = exports.resolveDelay = exports.resolveTimeout = exports.resolveForm = exports.resolveFinalUrl = exports.resolveTargetUrl = exports.resolveHandlerFunc = void 0;
19
- var mona_dish_1 = require("mona-dish");
20
- var Const_1 = require("../core/Const");
21
- var Lang_1 = require("../util/Lang");
22
- var ExtDomQuery_1 = require("../util/ExtDomQuery");
19
+ const mona_dish_1 = require("mona-dish");
20
+ const Const_1 = require("../core/Const");
21
+ const Lang_1 = require("../util/Lang");
22
+ const ExtDomQuery_1 = require("../util/ExtDomQuery");
23
23
  /**
24
24
  * Resolver functions for various aspects of the request data
25
25
  *
@@ -27,7 +27,7 @@ var ExtDomQuery_1 = require("../util/ExtDomQuery");
27
27
  * parts of the response classes
28
28
  */
29
29
  /**
30
- * resolves the event handlers lazly
30
+ * resolves the event handlers lazily
31
31
  * so that if some decoration happens in between we can deal with it
32
32
  *
33
33
  * @param requestContext
@@ -36,7 +36,7 @@ var ExtDomQuery_1 = require("../util/ExtDomQuery");
36
36
  */
37
37
  function resolveHandlerFunc(requestContext, responseContext, funcName) {
38
38
  return responseContext.getIf(funcName)
39
- .orElseLazy(function () { return requestContext.getIf(funcName).value; })
39
+ .orElseLazy(() => requestContext.getIf(funcName).value)
40
40
  .orElse(Const_1.EMPTY_FUNC).value;
41
41
  }
42
42
  exports.resolveHandlerFunc = resolveHandlerFunc;
@@ -46,9 +46,8 @@ function resolveTargetUrl(srcFormElement) {
46
46
  srcFormElement.elements[Const_1.ENCODED_URL].value;
47
47
  }
48
48
  exports.resolveTargetUrl = resolveTargetUrl;
49
- function resolveFinalUrl(sourceForm, formData, ajaxType) {
50
- if (ajaxType === void 0) { ajaxType = Const_1.REQ_TYPE_POST; }
51
- var targetUrl = resolveTargetUrl(sourceForm.getAsElem(0).value);
49
+ function resolveFinalUrl(sourceForm, formData, ajaxType = Const_1.REQ_TYPE_POST) {
50
+ let targetUrl = resolveTargetUrl(sourceForm.getAsElem(0).value);
52
51
  return targetUrl + (ajaxType == Const_1.REQ_TYPE_GET ? "?" + formData.toString() : Const_1.EMPTY_STR);
53
52
  }
54
53
  exports.resolveFinalUrl = resolveFinalUrl;
@@ -63,15 +62,15 @@ exports.resolveFinalUrl = resolveFinalUrl;
63
62
  */
64
63
  function resolveForm(requestCtx, elem, event) {
65
64
  var _a, _b, _c;
66
- var configId = (_c = (_b = (_a = requestCtx.value) === null || _a === void 0 ? void 0 : _a.myfaces) === null || _b === void 0 ? void 0 : _b.form) !== null && _c !== void 0 ? _c : Const_1.MF_NONE;
65
+ const configId = (_c = (_b = (_a = requestCtx.value) === null || _a === void 0 ? void 0 : _a.myfaces) === null || _b === void 0 ? void 0 : _b.form) !== null && _c !== void 0 ? _c : Const_1.MF_NONE;
67
66
  return mona_dish_1.DQ
68
67
  .byId(configId, true)
69
- .orElseLazy(function () { return Lang_1.ExtLang.getForm(elem.getAsElem(0).value, event); });
68
+ .orElseLazy(() => Lang_1.ExtLang.getForm(elem.getAsElem(0).value, event));
70
69
  }
71
70
  exports.resolveForm = resolveForm;
72
71
  function resolveTimeout(options) {
73
72
  var _a;
74
- var getCfg = Lang_1.ExtLang.getLocalOrGlobalConfig;
73
+ let getCfg = Lang_1.ExtLang.getLocalOrGlobalConfig;
75
74
  return (_a = options.getIf(Const_1.CTX_PARAM_TIMEOUT).value) !== null && _a !== void 0 ? _a : getCfg(options.value, Const_1.CTX_PARAM_TIMEOUT, 0);
76
75
  }
77
76
  exports.resolveTimeout = resolveTimeout;
@@ -82,18 +81,18 @@ exports.resolveTimeout = resolveTimeout;
82
81
  */
83
82
  function resolveDelay(options) {
84
83
  var _a;
85
- var getCfg = Lang_1.ExtLang.getLocalOrGlobalConfig;
84
+ let getCfg = Lang_1.ExtLang.getLocalOrGlobalConfig;
86
85
  return (_a = options.getIf(Const_1.CTX_PARAM_DELAY).value) !== null && _a !== void 0 ? _a : getCfg(options.value, Const_1.CTX_PARAM_DELAY, 0);
87
86
  }
88
87
  exports.resolveDelay = resolveDelay;
89
88
  /**
90
- * resolves the window Id from various sources
89
+ * resolves the window-id from various sources
91
90
  *
92
91
  * @param options
93
92
  */
94
93
  function resolveWindowId(options) {
95
94
  var _a, _b;
96
- return (_b = (_a = options === null || options === void 0 ? void 0 : options.value) === null || _a === void 0 ? void 0 : _a.windowId) !== null && _b !== void 0 ? _b : ExtDomQuery_1.ExtDomquery.windowId;
95
+ return (_b = (_a = options === null || options === void 0 ? void 0 : options.value) === null || _a === void 0 ? void 0 : _a.windowId) !== null && _b !== void 0 ? _b : ExtDomQuery_1.ExtDomQuery.windowId;
97
96
  }
98
97
  exports.resolveWindowId = resolveWindowId;
99
98
  /**
@@ -101,21 +100,22 @@ exports.resolveWindowId = resolveWindowId;
101
100
  * browser save event resolution
102
101
  * @param evt the event object
103
102
  * (with a fallback for ie events if none is present)
103
+ * @deprecated soon will be removed
104
104
  */
105
105
  function getEventTarget(evt) {
106
106
  var _a, _b;
107
- //ie6 and 7 fallback
108
- var finalEvent = evt;
109
- /**
107
+ // ie6 and 7 fallback
108
+ let finalEvent = evt;
109
+ /*
110
110
  * evt source is defined in the jsf events
111
- * seems like some component authors use our code
111
+ * seems like some component authors use our code,
112
112
  * so we add it here see also
113
113
  * https://issues.apache.org/jira/browse/MYFACES-2458
114
114
  * not entirely a bug but makes sense to add this
115
- * behavior. I dont use it that way but nevertheless it
115
+ * behavior. I don´t use it that way but nevertheless it
116
116
  * does not break anything so why not
117
- * */
118
- var t = (_b = (_a = finalEvent === null || finalEvent === void 0 ? void 0 : finalEvent.srcElement) !== null && _a !== void 0 ? _a : finalEvent === null || finalEvent === void 0 ? void 0 : finalEvent.target) !== null && _b !== void 0 ? _b : finalEvent === null || finalEvent === void 0 ? void 0 : finalEvent.source;
117
+ */
118
+ let t = (_b = (_a = finalEvent === null || finalEvent === void 0 ? void 0 : finalEvent.srcElement) !== null && _a !== void 0 ? _a : finalEvent === null || finalEvent === void 0 ? void 0 : finalEvent.target) !== null && _b !== void 0 ? _b : finalEvent === null || finalEvent === void 0 ? void 0 : finalEvent.source;
119
119
  while ((t) && (t.nodeType != 1)) {
120
120
  t = t.parentNode;
121
121
  }
@@ -125,19 +125,17 @@ exports.getEventTarget = getEventTarget;
125
125
  /**
126
126
  * resolves a bunch of default values
127
127
  * which can be further processed from the given
128
- * call parameters of jsf.ajax.request
128
+ * call parameters of faces.ajax.request
129
129
  *
130
130
  * @param event
131
131
  * @param opts
132
132
  * @param el
133
133
  */
134
- function resolveDefaults(event, opts, el) {
134
+ function resolveDefaults(event, opts = {}, el = null) {
135
135
  var _a;
136
- if (opts === void 0) { opts = {}; }
137
- if (el === void 0) { el = null; }
138
136
  //deep copy the options, so that further transformations to not backfire into the callers
139
- var resolvedEvent = event, options = new mona_dish_1.Config(opts).deepCopy, elem = mona_dish_1.DQ.byId(el || resolvedEvent.target, true), elementId = elem.id.value, requestCtx = new mona_dish_1.Config({}), internalCtx = new mona_dish_1.Config({}), windowId = resolveWindowId(options), isResetValues = true === ((_a = options.value) === null || _a === void 0 ? void 0 : _a.resetValues);
140
- return { resolvedEvent: resolvedEvent, options: options, elem: elem, elementId: elementId, requestCtx: requestCtx, internalCtx: internalCtx, windowId: windowId, isResetValues: isResetValues };
137
+ const resolvedEvent = event, options = new ExtDomQuery_1.ExtConfig(opts).deepCopy, elem = mona_dish_1.DQ.byId(el || resolvedEvent.target, true), elementId = elem.id.value, requestCtx = new ExtDomQuery_1.ExtConfig({}), internalCtx = new ExtDomQuery_1.ExtConfig({}), windowId = resolveWindowId(options), isResetValues = true === ((_a = options.value) === null || _a === void 0 ? void 0 : _a.resetValues);
138
+ return { resolvedEvent, options, elem, elementId, requestCtx, internalCtx, windowId, isResetValues };
141
139
  }
142
140
  exports.resolveDefaults = resolveDefaults;
143
141
  //# sourceMappingURL=RequestDataResolver.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RequestDataResolver.js","sourceRoot":"","sources":["../../../src/main/typescript/impl/xhrCore/RequestDataResolver.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,uCAA+C;AAC/C,uCASuB;AAEvB,qCAAqC;AACrC,mDAAgD;AAEhD;;;;;GAKG;AAEH;;;;;;;GAOG;AACH,SAAgB,kBAAkB,CAAC,cAAsB,EAAE,eAAuB,EAAE,QAAgB;IAChG,OAAO,eAAe,CAAC,KAAK,CAAC,QAAQ,CAAC;SACjC,UAAU,CAAC,cAAK,OAAA,cAAc,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,KAAK,EAApC,CAAoC,CAAC;SACrD,MAAM,CAAC,kBAAU,CAAC,CAAC,KAAK,CAAC;AAClC,CAAC;AAJD,gDAIC;AAED,SAA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