jsf.js_next_gen 1.0.0-beta-19 → 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 +81 -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 +74 -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 +3043 -3018
  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 +51 -86
  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 -6
  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 +78 -33
  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 -7
  98. package/src/main/typescript/test/myfaces/OamSubmit.spec.ts +99 -17
  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 +24 -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 +63 -74
  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 -111
  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 -37
  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 +300 -121
  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 +68 -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 +45 -21
  198. package/target/test/impl/SeparatorCharsTest.spec.js.map +1 -1
  199. package/target/test/myfaces/OamSubmit.spec.js +90 -18
  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 +63 -71
  204. package/target/test/queue/AsynchronousQueueTest.spec.js.map +1 -1
  205. package/target/test/xhrCore/EventTests.spec.js +70 -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 +73 -91
  210. package/target/test/xhrCore/FileUploadTest.spec.js.map +1 -1
  211. package/target/test/xhrCore/RequestParamsTest.spec.js +72 -98
  212. package/target/test/xhrCore/RequestParamsTest.spec.js.map +1 -1
  213. package/target/test/xhrCore/RequestTest.spec.js +107 -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 +206 -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 +56 -66
  222. package/target/test/xhrCore/ShadowDomTest.spec.js.map +1 -1
  223. package/target/test/xhrCore/WebsocketTest.js +87 -97
  224. package/target/test/xhrCore/WebsocketTest.js.map +1 -1
  225. package/target/test/xhrCore/XhrFormDataTest.spec.js +65 -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
@@ -14,6 +14,29 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ var desc = Object.getOwnPropertyDescriptor(m, k);
20
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
21
+ desc = { enumerable: true, get: function() { return m[k]; } };
22
+ }
23
+ Object.defineProperty(o, k2, desc);
24
+ }) : (function(o, m, k, k2) {
25
+ if (k2 === undefined) k2 = k;
26
+ o[k2] = m[k];
27
+ }));
28
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
29
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
30
+ }) : function(o, v) {
31
+ o["default"] = v;
32
+ });
33
+ var __importStar = (this && this.__importStar) || function (mod) {
34
+ if (mod && mod.__esModule) return mod;
35
+ var result = {};
36
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
37
+ __setModuleDefault(result, mod);
38
+ return result;
39
+ };
17
40
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
41
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
42
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -23,36 +46,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
23
46
  step((generator = generator.apply(thisArg, _arguments || [])).next());
24
47
  });
25
48
  };
26
- var __generator = (this && this.__generator) || function (thisArg, body) {
27
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
- function verb(n) { return function (v) { return step([n, v]); }; }
30
- function step(op) {
31
- if (f) throw new TypeError("Generator is already executing.");
32
- while (_) try {
33
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
34
- if (y = 0, t) op = [op[0] & 2, t.value];
35
- switch (op[0]) {
36
- case 0: case 1: t = op; break;
37
- case 4: _.label++; return { value: op[1], done: false };
38
- case 5: _.label++; y = op[1]; op = [0]; continue;
39
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
- default:
41
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
- if (t[2]) _.ops.pop();
46
- _.trys.pop(); continue;
47
- }
48
- op = body.call(thisArg, _);
49
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
- }
52
- };
53
49
  Object.defineProperty(exports, "__esModule", { value: true });
54
50
  exports.StandardInits = void 0;
55
- var mona_dish_1 = require("mona-dish");
51
+ const mona_dish_1 = require("mona-dish");
56
52
  /**
57
53
  * helpers with various init and html patterns
58
54
  *
@@ -68,44 +64,213 @@ var mona_dish_1 = require("mona-dish");
68
64
  */
69
65
  var StandardInits;
70
66
  (function (StandardInits) {
71
- StandardInits.HTML_DEFAULT = "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <title>Title</title>\n</head>\n<body>\n<div id=\"id_1\"></div>\n<div id=\"id_2\" booga=\"blarg\"></div>\n<div id=\"id_3\"></div>\n<div id=\"id_4\"></div>\n</body>\n</html>";
72
- StandardInits.HTML_SHADOW = "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <title>Title</title>\n</head>\n<body>\n<form id=\"blarg\">\n <input type=\"text\" id=\"blarg:input_1\" name=\"blarg:input_1\" value=\"input_1_val\"></input>\n <input type=\"hidden\" id=\"javax.faces.ViewState\" name=\"javax.faces.ViewState\" value=\"blubbblubblubb\"></input>\n <input type=\"button\" id=\"blarg:input_2\" name=\"blarg:input_2\" value=\"input_1_val\"></input>\n <div id=\"shadowDomArea\">\n <input type=\"button\" id=\"blarg:input_3\" name=\"blarg:input_3\" value=\"input_3_val\"></input>\n </div>\n</form>\n</body>\n</html>";
67
+ StandardInits.HTML_DEFAULT = `<!DOCTYPE html>
68
+ <html lang="en">
69
+ <head>
70
+ <meta charset="UTF-8">
71
+ <title>Title</title>
72
+ </head>
73
+ <body>
74
+ <div id="id_1"></div>
75
+ <div id="id_2" booga="blarg"></div>
76
+ <div id="id_3"></div>
77
+ <div id="id_4"></div>
78
+ </body>
79
+ </html>`;
80
+ StandardInits.HTML_SHADOW = `<!DOCTYPE html>
81
+ <html lang="en">
82
+ <head>
83
+ <meta charset="UTF-8">
84
+ <title>Title</title>
85
+ </head>
86
+ <body>
87
+ <form id="blarg">
88
+ <input type="text" id="blarg:input_1" name="blarg:input_1" value="input_1_val"></input>
89
+ <input type="hidden" id="jakarta.faces.ViewState" name="jakarta.faces.ViewState" value="blubbblubblubb"></input>
90
+ <input type="button" id="blarg:input_2" name="blarg:input_2" value="input_1_val"></input>
91
+ <div id="shadowDomArea">
92
+ <input type="button" id="blarg:input_3" name="blarg:input_3" value="input_3_val"></input>
93
+ </div>
94
+ </form>
95
+ </body>
96
+ </html>`;
73
97
  /**
74
- * a page simulating basically a simple jsf form
98
+ * a page simulating basically a simple faces form
75
99
  */
76
- var HTML_FORM_DEFAULT = "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <title>Title</title>\n</head>\n<body>\n<form id=\"blarg\">\n <input type=\"text\" id=\"input_1\" name=\"input_1\" value=\"input_1_val\"></input>\n <input type=\"hidden\" id=\"javax.faces.ViewState\" name=\"javax.faces.ViewState\" value=\"blubbblubblubb\"></input>\n <input type=\"button\" id=\"input_2\" name=\"input_2\" value=\"input_1_val\"></input>\n</form>\n</body>\n</html>";
100
+ const HTML_FORM_DEFAULT = `<!DOCTYPE html>
101
+ <html lang="en">
102
+ <head>
103
+ <meta charset="UTF-8">
104
+ <title>Title</title>
105
+ </head>
106
+ <body>
107
+ <form id="blarg">
108
+ <input type="text" id="input_1" name="input_1" value="input_1_val"></input>
109
+ <input type="hidden" id="jakarta.faces.ViewState" name="jakarta.faces.ViewState" value="blubbblubblubb"></input>
110
+ <input type="button" id="input_2" name="input_2" value="input_1_val"></input>
111
+ </form>
112
+ </body>
113
+ </html>`;
77
114
  /**
78
- * a page simulating basically a simple jsf form
115
+ * a page simulating basically a simple faces form
79
116
  */
80
- var HTML_FILE_FORM_DEFAULT = "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <title>Title</title>\n</head>\n<body>\n<form id=\"blarg\" enctype=\"multipart/form-data\">\n <input type=\"file\" id=\"f\u00EDleupload\"></input>\n <input type=\"text\" id=\"input_1\" name=\"input_1\" value=\"input_1_val\"></input>\n <input type=\"hidden\" id=\"javax.faces.ViewState\" name=\"javax.faces.ViewState\" value=\"blubbblubblubb\"></input>\n <input type=\"button\" id=\"input_2\" name=\"input_2\" value=\"input_1_val\"></input>\n</form>\n</body>\n</html>";
81
- StandardInits.STD_XML = "<?xml version=\"1.0\" encoding=\"utf-8\"?><partial-response><changes><update id=\"value_1\"><![CDATA[<span id=\"out1\">2</span>]]></update><update id=\"javax.faces.ViewState\"><![CDATA[j_id1:j_id3]]></update></changes></partial-response>";
117
+ const HTML_FILE_FORM_DEFAULT = `<!DOCTYPE html>
118
+ <html lang="en">
119
+ <head>
120
+ <meta charset="UTF-8">
121
+ <title>Title</title>
122
+ </head>
123
+ <body>
124
+ <form id="blarg" enctype="multipart/form-data">
125
+ <input type="file" id="fíleupload"></input>
126
+ <input type="text" id="input_1" name="input_1" value="input_1_val"></input>
127
+ <input type="hidden" id="jakarta.faces.ViewState" name="jakarta.faces.ViewState" value="blubbblubblubb"></input>
128
+ <input type="button" id="input_2" name="input_2" value="input_1_val"></input>
129
+ </form>
130
+ </body>
131
+ </html>`;
132
+ StandardInits.STD_XML = `<?xml version="1.0" encoding="utf-8"?><partial-response><changes><update id="value_1"><![CDATA[<span id="out1">2</span>]]></update><update id="jakarta.faces.ViewState"><![CDATA[j_id1:j_id3]]></update></changes></partial-response>`;
82
133
  /**
83
- * a page containing a jsf.js input with a new separator char
134
+ * a page containing a faces.js input with a new separator char
84
135
  * @param separatorChar
85
136
  * @constructor
86
137
  */
87
- function HTML_DEFAULT_SEPARATOR_CHAR(separatorChar) {
88
- return "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <title>Title</title>\n <script type=\"text/javascript\"\n src=\"/wfmportal/javax.faces.resource/jsf.js.jsf?ln=javax.faces&separator=".concat(separatorChar, "\"></script>\n</head>\n<body>\n<form id=\"blarg\">\n <input type=\"text\" id=\"input_1\" name=\"input_1\"/>\n <input type=\"button\" id=\"input_2\" name=\"input_2\"/>\n</form>\n</body>\n</html>\n \n ");
138
+ function HTML_DEFAULT_SEPARATOR_CHAR(separatorChar, IS_40 = true) {
139
+ return `<!DOCTYPE html>
140
+ <html lang="en">
141
+ <head>
142
+ <meta charset="UTF-8">
143
+ <title>Title</title>
144
+ <script type="text/javascript"
145
+ src="/wfmportal/${IS_40 ? 'jakarta' : 'javax'}.faces.resource/${IS_40 ? 'faces' : 'jsf'}.js.jsf?ln=jakarta.faces&separator=${separatorChar}"></script>
146
+ </head>
147
+ <body>
148
+ <form id="blarg">
149
+ <input type="text" id="input_1" name="input_1"/>
150
+ <input type="button" id="input_2" name="input_2"/>
151
+ </form>
152
+ </body>
153
+ </html>
154
+
155
+ `;
89
156
  }
90
157
  /**
91
158
  * This is a standardized small page mockup
92
159
  * testing the various aspects of the protocol
93
160
  * under pure html conditions
94
161
  *
95
- * We get the jsf out of the way and bascially simulate what the browser sees
162
+ * We get the jsf out of the way and basically simulate what the browser sees
96
163
  */
97
- StandardInits.PROTOCOL_PAGE = "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <title>Title</title>\n</head>\n<body>\n<h2>protocol testcase1</h2>\n\n<div id=\"centerDiv\">\n\n <h1>Selenium Testprobe for insert update delete and attribute change</h1>\n\n <h2>This test tests all aspects of the protocol, under xhr and iframe conditions</h2>\n\n <div id=\"testResults\">\n \n <h3>Test Results</h3>\n\n <div id=\"evalarea1\">eval area 1 triggered by eval</div>\n \n <div id=\"evalarea2\">eval area 2 triggered by update</div>\n \n <div id=\"evalarea3\">eval area 3 triggered by insert</div>\n \n <div id=\"evalarea4\">eval area 4 triggered by a click on the changed attributes area</div>\n\n <div id=\"changesArea\">update insert area</div>\n \n <div id=\"deleteable\">delete area will be deleted once you press the delete button</div>\n \n <div id=\"attributeChange\">attributes changes area</div>\n \n \n \n </div>\n\n <h2>Call actions via normal ppr</h2>\n\n <form id=\"form1\" action=\"boog.html\">\n \n <input type=\"hidden\" id=\"javax.faces.ViewState\" name=\"javax.faces.ViewState\" value=\"blubbblubblubb\"></input>\n \n <input type=\"button\" id=\"cmd_eval\" value=\"eval\"\n onclick=\"emitPPR(this, ('undefined' == typeof event)? null: event, 'eval1');\"/>\n \n <input type=\"button\" id=\"cmd_update_insert\" value=\"update insert\"\n onclick=\"emitPPR(this, ('undefined' == typeof event)? null: event, 'updateinsert1');\"/>\n \n <input type=\"button\" id=\"cmd_update_insert2\" value=\"update insert second protocol path\"\n onclick=\"emitPPR(this, ('undefined' == typeof event)? null: event, 'updateinsert2');\"/>\n\n <input type=\"button\" id=\"cmd_delete\" value=\"delete\"\n onclick=\"emitPPR(this, ('undefined' == typeof event)? null: event, 'delete1');\"/>\n\n <input type=\"button\" id=\"cmd_replace\" value=\"Replace Body\"\n onclick=\"emitPPR(this, ('undefined' == typeof event)? null: event, 'body_replace1');\"/>\n\n <input type=\"button\" id=\"cmd_attributeschange\" value=\"change attributes\"\n onclick=\"emitPPR(this, ('undefined' == typeof event)? null: event, 'attributes');\"/>\n\n <input type=\"button\" id=\"cmd_illegalresponse\" value=\"illegal response, error trigger\"\n onclick=\"emitPPR(this, ('undefined' == typeof event)? null: event, 'illegalResponse');\"/>\n\n <input type=\"button\" id=\"cmd_viewstate\" value=\"Viewstate only update trigger\"\n onclick=\"emitPPR(this, ('undefined' == typeof event)? null: event, 'viewstate');\"/>\n\n <input type=\"button\" id=\"cmd_error\" value=\"Server error with error response\"\n onclick=\"emitPPR(this, ('undefined' == typeof event)? null: event, 'errors');\"/>\n\n <input type=\"button\" id=\"cmd_error_component\" value=\"Error: no component given\"\n onclick=\"jsf.ajax.request(null, event, {}); return false\"/>\n\n </form>\n\n <script type=\"text/javascript\">\n document.getElementById(\"evalarea1\").innerHTML = \"booga\";\n\n var target = \"./test.mockup\";\n\n function emitPPR(source, event, action, useIframe, formName) {\n debugger;\n console.debug(\"emitting;\");\n document.getElementById(formName || \"form1\").action = target;\n\n jsf.ajax.request(/*String|Dom Node*/ source, /*|EVENT|*/ (window.event) ? window.event : event, /*{|OPTIONS|}*/ {op: action});\n }\n </script>\n</div>\n</body>";
164
+ StandardInits.PROTOCOL_PAGE = `<!DOCTYPE html>
165
+ <html lang="en">
166
+ <head>
167
+ <meta charset="UTF-8">
168
+ <title>Title</title>
169
+ </head>
170
+ <body>
171
+ <h2>protocol testcase1</h2>
172
+
173
+ <div id="centerDiv">
174
+
175
+ <h1>Selenium Testprobe for insert update delete and attribute change</h1>
176
+
177
+ <h2>This test tests all aspects of the protocol, under xhr and iframe conditions</h2>
178
+
179
+ <div id="testResults">
180
+
181
+ <h3>Test Results</h3>
182
+
183
+ <div id="evalarea1">eval area 1 triggered by eval</div>
184
+
185
+ <div id="evalarea2">eval area 2 triggered by update</div>
186
+
187
+ <div id="evalarea3">eval area 3 triggered by insert</div>
188
+
189
+ <div id="evalarea4">eval area 4 triggered by a click on the changed attributes area</div>
190
+
191
+ <div id="changesArea">update insert area</div>
192
+
193
+ <div id="deleteable">delete area will be deleted once you press the delete button</div>
194
+
195
+ <div id="attributeChange">attributes changes area</div>
196
+
197
+ <div id="resource_area_1"></div>
198
+ <div id="resource_area_2"></div>
199
+ <div id="resource_area_3"></div>
200
+ <div id="nonce_result"></div>
201
+
202
+ </div>
203
+
204
+ <h2>Call actions via normal ppr</h2>
205
+
206
+ <form id="form1" action="boog.html">
207
+
208
+ <input type="hidden" id="jakarta.faces.ViewState" name="jakarta.faces.ViewState" value="blubbblubblubb"></input>
209
+
210
+ <input type="button" id="cmd_eval" value="eval"
211
+ onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'eval1');"/>
212
+
213
+ <input type="button" id="cmd_update_insert" value="update insert"
214
+ onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'updateinsert1');"/>
215
+
216
+ <input type="button" id="cmd_simple_resource" value="simple resource"
217
+ onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'simpleresource');"/>
218
+
219
+ <input type="button" id="cmd_complex_resource" value="complex resource"
220
+ onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'complex_resource');"/>
221
+
222
+ <input type="button" id="cmd_complex_resource2" value="complex resource2"
223
+ onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'complex_resource2');"/>
224
+
225
+ <input type="button" id="cmd_update_insert2" value="update insert second protocol path"
226
+ onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'updateinsert2');"/>
227
+
228
+ <input type="button" id="cmd_delete" value="delete"
229
+ onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'delete1');"/>
230
+
231
+ <input type="button" id="cmd_replace" value="Replace Body"
232
+ onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'body_replace1');"/>
233
+
234
+ <input type="button" id="cmd_attributeschange" value="change attributes"
235
+ onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'attributes');"/>
236
+
237
+ <input type="button" id="cmd_illegalresponse" value="illegal response, error trigger"
238
+ onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'illegalResponse');"/>
239
+
240
+ <input type="button" id="cmd_viewstate" value="Viewstate only update trigger"
241
+ onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'viewstate');"/>
242
+
243
+ <input type="button" id="cmd_error" value="Server error with error response"
244
+ onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'errors');"/>
245
+
246
+ <input type="button" id="cmd_error_component" value="Error: no component given"
247
+ onclick="(window.faces || window.jsf).ajax.request(null, event, {}); return false"/>
248
+
249
+ </form>
250
+
251
+ <script type="text/javascript">
252
+ document.getElementById("evalarea1").innerHTML = "booga";
253
+
254
+ var target = "./test.mockup";
255
+
256
+ function emitPPR(source, event, action, useIframe, formName) {
257
+ document.getElementById(formName || "form1").action = target;
258
+
259
+ (window?.faces ?? window.jsf).ajax.request(/*String|Dom Node*/ source, /*|EVENT|*/ (window.event) ? window.event : event, /*{|OPTIONS|}*/ {op: action});
260
+ }
261
+ </script>
262
+ </div>
263
+ </body>`;
98
264
  function basicXML() {
99
265
  return new window.DOMParser().parseFromString(StandardInits.STD_XML, "text/xml");
100
266
  }
101
267
  StandardInits.basicXML = basicXML;
102
- function standardInit(scope, initFunc) {
103
- if (initFunc === void 0) { initFunc = defaultHtml; }
268
+ function standardInit(scope, initFunc = defaultHtml) {
104
269
  global.navigator = {
105
270
  language: "en-En"
106
271
  };
107
- return initFunc(false).then(function (closeFunc) {
108
- scope.currentTest.closeIt = function () {
272
+ return initFunc(false).then((closeFunc) => {
273
+ scope.currentTest.closeIt = () => {
109
274
  closeFunc();
110
275
  delete global.navigator;
111
276
  };
@@ -116,38 +281,47 @@ var StandardInits;
116
281
  scope.currentTest.closeIt();
117
282
  }
118
283
  StandardInits.standardClose = standardClose;
119
- function defaultHtml(withJsf) {
120
- if (withJsf === void 0) { withJsf = true; }
284
+ function defaultHtml(withJsf = true) {
121
285
  return init(StandardInits.HTML_DEFAULT, withJsf);
122
286
  }
123
287
  StandardInits.defaultHtml = defaultHtml;
124
- function defaultMyFaces(withJsf) {
125
- if (withJsf === void 0) { withJsf = true; }
288
+ function defaultHtml_23(withJsf = true) {
289
+ return init(StandardInits.HTML_DEFAULT.replace(/jakarta/gi, "javax"), withJsf, false);
290
+ }
291
+ StandardInits.defaultHtml_23 = defaultHtml_23;
292
+ function defaultMyFaces(withJsf = true) {
126
293
  return init(HTML_FORM_DEFAULT, withJsf);
127
294
  }
128
295
  StandardInits.defaultMyFaces = defaultMyFaces;
129
- function defaultFileForm(withJsf) {
130
- if (withJsf === void 0) { withJsf = true; }
296
+ function defaultMyFaces23(withJsf = true) {
297
+ return init(HTML_FORM_DEFAULT.replace(/jakarta/gi, "javax"), withJsf, false);
298
+ }
299
+ StandardInits.defaultMyFaces23 = defaultMyFaces23;
300
+ function defaultFileForm(withJsf = true) {
131
301
  return init(HTML_FILE_FORM_DEFAULT, withJsf);
132
302
  }
133
303
  StandardInits.defaultFileForm = defaultFileForm;
134
- function shadowDomMyFaces(withJsf) {
135
- if (withJsf === void 0) { withJsf = true; }
136
- return init(StandardInits.HTML_SHADOW, withJsf).then(function (close) {
137
- var shadow = mona_dish_1.DomQuery.byId(window.document).byId("shadowDomArea").attachShadow();
138
- shadow.innerHtml = "\n <input type=\"button\" id=\"input_3\" name=\"input_3\" value=\"input_3_val\" ></input>\n <div id=\"shadowContent\">before update</div>\n ";
304
+ function defaultFileForm_23(withJsf = true) {
305
+ return init(HTML_FILE_FORM_DEFAULT.replace(/jakarta/gi, "javax"), withJsf, false);
306
+ }
307
+ StandardInits.defaultFileForm_23 = defaultFileForm_23;
308
+ function shadowDomMyFaces(withJsf = true) {
309
+ return init(StandardInits.HTML_SHADOW, withJsf).then((close) => {
310
+ let shadow = mona_dish_1.DomQuery.byId(window.document).byId("shadowDomArea").attachShadow();
311
+ shadow.innerHtml = `
312
+ <input type="button" id="input_3" name="input_3" value="input_3_val" ></input>
313
+ <div id="shadowContent">before update</div>
314
+ `;
139
315
  return close;
140
316
  });
141
317
  }
142
318
  StandardInits.shadowDomMyFaces = shadowDomMyFaces;
143
- function protocolPage(withJsf) {
144
- if (withJsf === void 0) { withJsf = true; }
145
- return init(StandardInits.PROTOCOL_PAGE, withJsf);
319
+ function protocolPage(withJsf = true, IS_40 = true) {
320
+ return init((IS_40) ? StandardInits.PROTOCOL_PAGE : StandardInits.PROTOCOL_PAGE.replace(/jakarta/gi, "javax"), withJsf, IS_40);
146
321
  }
147
322
  StandardInits.protocolPage = protocolPage;
148
- function defaultSeparatorChar(separatorChar, withJsf) {
149
- if (withJsf === void 0) { withJsf = true; }
150
- var template = HTML_DEFAULT_SEPARATOR_CHAR(separatorChar);
323
+ function defaultSeparatorChar(separatorChar, withJsf = true, IS_40 = true) {
324
+ let template = HTML_DEFAULT_SEPARATOR_CHAR(separatorChar, IS_40);
151
325
  return init(template, withJsf);
152
326
  }
153
327
  StandardInits.defaultSeparatorChar = defaultSeparatorChar;
@@ -164,13 +338,26 @@ var StandardInits;
164
338
  * @param data
165
339
  * @param Implementation
166
340
  */
167
- var applyJsfToGlobals = function (data, Implementation, PushImpl) {
341
+ let applyJsfToGlobals = function (data, Implementation, PushImpl) {
342
+ var _a, _b;
343
+ global.faces = data.faces;
344
+ global.myfaces = data.myfaces;
345
+ global.window.faces = data.faces;
346
+ global.window.myfaces = data.myfaces;
347
+ global.Implementation = Implementation.Implementation;
348
+ global.PushImpl = PushImpl.PushImpl;
349
+ //bypass a bug on windows jsdom, domparser not an auto global but on window only
350
+ global.DOMParser = (_a = global === null || global === void 0 ? void 0 : global.DOMParser) !== null && _a !== void 0 ? _a : window.DOMParser;
351
+ global.document = (_b = global === null || global === void 0 ? void 0 : global.document) !== null && _b !== void 0 ? _b : window.document;
352
+ };
353
+ let applyJsfToGlobals23 = function (data, Implementation, PushImpl) {
168
354
  var _a, _b;
169
355
  global.jsf = data.jsf;
170
356
  global.myfaces = data.myfaces;
171
357
  global.window.jsf = data.jsf;
172
358
  global.window.myfaces = data.myfaces;
173
359
  global.Implementation = Implementation.Implementation;
360
+ global.window.Implementation = Implementation.Implementation;
174
361
  global.PushImpl = PushImpl.PushImpl;
175
362
  //bypass a bug on windows jsdom, domparser not an auto global but on window only
176
363
  global.DOMParser = (_a = global === null || global === void 0 ? void 0 : global.DOMParser) !== null && _a !== void 0 ? _a : window.DOMParser;
@@ -181,46 +368,49 @@ var StandardInits;
181
368
  * @param clean
182
369
  * @param template
183
370
  */
184
- var initJSDOM = function (template) {
185
- return __awaiter(this, void 0, void 0, function () {
186
- return __generator(this, function (_a) {
187
- // @ts-ignore
188
- return [2 /*return*/, Promise.resolve().then(function () { return require('jsdom-global'); }).then(function (domIt) {
189
- return domIt(template, {
190
- contentType: "text/html",
191
- runScripts: "dangerously"
192
- });
193
- })];
371
+ let initJSDOM = function (template) {
372
+ return __awaiter(this, void 0, void 0, function* () {
373
+ // @ts-ignore
374
+ return Promise.resolve().then(() => __importStar(require('jsdom-global'))).then((domIt) => {
375
+ var _a, _b;
376
+ let params = {
377
+ contentType: "text/html",
378
+ runScripts: "dangerously",
379
+ resources: "usable",
380
+ url: `file://${__dirname}/index.html`
381
+ };
382
+ //we have two different apis depending whether we allow module interop with sinon or not
383
+ return (_b = ((_a = domIt === null || domIt === void 0 ? void 0 : domIt.default) !== null && _a !== void 0 ? _a : domIt)) === null || _b === void 0 ? void 0 : _b(template, params);
194
384
  });
195
385
  });
196
386
  };
197
387
  /**
198
388
  * init the jsf subsystem
199
389
  */
200
- var initJSF = function () {
201
- return __awaiter(this, void 0, void 0, function () {
202
- return __generator(this, function (_a) {
203
- // @ts-ignore
204
- return [2 /*return*/, Promise.resolve().then(function () { return require("../../../../api/Jsf"); }).then(function (data) {
205
- var Implementation = require("../../../../impl/AjaxImpl");
206
- var PushImpl = require("../../../../impl/PushImpl");
207
- applyJsfToGlobals(data, Implementation, PushImpl);
208
- }).catch(function (err) {
209
- console.error(err);
210
- })];
390
+ let initJSF = function (IS_40 = true) {
391
+ return __awaiter(this, void 0, void 0, function* () {
392
+ // @ts-ignore
393
+ const facesImport = IS_40 ? Promise.resolve().then(() => __importStar(require("../../../../api/faces"))) : Promise.resolve().then(() => __importStar(require("../../../../api/jsf")));
394
+ return facesImport.then((data) => {
395
+ let Implementation = require("../../../../impl/AjaxImpl");
396
+ let PushImpl = require("../../../../impl/PushImpl");
397
+ IS_40 ? applyJsfToGlobals(data, Implementation, PushImpl) : applyJsfToGlobals23(data, Implementation, PushImpl);
398
+ }).catch(err => {
399
+ console.error(err);
211
400
  });
212
401
  });
213
402
  };
214
403
  /**
215
404
  * lets clean up some old data which might interfere
216
405
  */
217
- var resetGlobals = function () {
406
+ let resetGlobals = function () {
218
407
  var _a, _b;
219
408
  (_a = global === null || global === void 0 ? void 0 : global.Implementation) === null || _a === void 0 ? void 0 : _a.reset();
220
409
  (_b = global === null || global === void 0 ? void 0 : global.PushImpl) === null || _b === void 0 ? void 0 : _b.reset();
221
- delete global.jsf;
410
+ (global.faces) ? delete global.faces : null;
411
+ (global.jsf) ? delete global.jsf : null;
222
412
  delete global.myfaces;
223
- delete global.Implementation;
413
+ (global.Implementation) ? delete global.Implementation : null;
224
414
  delete global.PushImpl;
225
415
  };
226
416
  /**
@@ -229,40 +419,29 @@ var StandardInits;
229
419
  * @param template
230
420
  * @param withJsf
231
421
  */
232
- function init(template, withJsf) {
233
- if (withJsf === void 0) { withJsf = true; }
234
- return __awaiter(this, void 0, void 0, function () {
235
- var clean;
236
- return __generator(this, function (_a) {
237
- switch (_a.label) {
238
- case 0:
239
- clean = null;
240
- if (!withJsf) return [3 /*break*/, 3];
241
- resetGlobals();
242
- // @ts-ignore
243
- return [4 /*yield*/, initJSDOM(template).then(function (data) { return clean = data; })];
244
- case 1:
245
- // @ts-ignore
246
- _a.sent();
247
- return [4 /*yield*/, initJSF()];
248
- case 2:
249
- _a.sent();
250
- return [3 /*break*/, 5];
251
- case 3:
252
- // @ts-ignore
253
- return [4 /*yield*/, Promise.resolve().then(function () { return require('jsdom-global'); }).then(function (domIt) {
254
- clean = domIt(template);
255
- })];
256
- case 4:
257
- // @ts-ignore
258
- _a.sent();
259
- _a.label = 5;
260
- case 5:
261
- //the async is returning a promise on the caller level
262
- //which gets the return value on once done
263
- return [2 /*return*/, clean];
264
- }
265
- });
422
+ function init(template, withJsf = true, IS_JSF_40 = true) {
423
+ return __awaiter(this, void 0, void 0, function* () {
424
+ //let dom2 = new JSDOM(template)
425
+ //return initMyFacesFromDom(dom2);
426
+ let clean = null;
427
+ //we use jsdom global to fullfill our requirements
428
+ //we need to import dynamically and use awaits
429
+ if (withJsf) {
430
+ resetGlobals();
431
+ // @ts-ignore
432
+ yield initJSDOM(template).then(data => clean = data);
433
+ yield initJSF(IS_JSF_40);
434
+ }
435
+ else {
436
+ // @ts-ignore
437
+ yield Promise.resolve().then(() => __importStar(require('jsdom-global'))).then((domIt) => {
438
+ var _a, _b;
439
+ clean = (_b = ((_a = domIt === null || domIt === void 0 ? void 0 : domIt.default) !== null && _a !== void 0 ? _a : domIt)) === null || _b === void 0 ? void 0 : _b(template);
440
+ });
441
+ }
442
+ //the async is returning a promise on the caller level
443
+ //which gets the return value on once done
444
+ return clean;
266
445
  });
267
446
  }
268
447
  })(StandardInits = exports.StandardInits || (exports.StandardInits = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"StandardInits.js","sourceRoot":"","sources":["../../../../../src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,uCAAmC;AAMnC;;;;;;;;;;;;GAYG;AACH,IAAc,aAAa,CA0V1B;AA1VD,WAAc,aAAa;IAEV,0BAAY,GAAG,4PAYxB,CAAC;IAGQ,yBAAW,GAAG,uoBAgBvB,CAAC;IAEL;;OAEG;IACH,IAAM,iBAAiB,GAAG,odAatB,CAAC;IAEL;;OAEG;IACH,IAAM,sBAAsB,GAAG,8iBAc3B,CAAC;IAIQ,qBAAO,GAAG,+OAAqO,CAAC;IAE7P;;;;OAIG;IACH,SAAS,2BAA2B,CAAC,aAAqB;QACtD,OAAO,2OAMwE,aAAa,wNAU/F,CAAC;IACF,CAAC;IAED;;;;;;OAMG;IACU,2BAAa,GAAG,mqHAyFzB,CAAC;IAEL,SAAgB,QAAQ;QACpB,OAAO,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC,eAAe,CAAC,cAAA,OAAO,EAAE,UAAU,CAAC,CAA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b,OAAO,EAAP,wBAAO;wBAEP,YAAY,EAAE,CAAC;wBACf,aAAa;wBACb,qBAAM,SAAS,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,UAAA,IAAI,IAAI,OAAA,KAAK,GAAG,IAAI,EAAZ,CAAY,CAAC,EAAA;;wBADpD,aAAa;wBACb,SAAoD,CAAC;wBACrD,qBAAM,OAAO,EAAE,EAAA;;wBAAf,SAAe,CAAC;;;oBAEhB,aAAa;oBACb,qBAAM,oDAAO,cAAc,MAAE,IAAI,CAAC,UAAC,KAAK;4BACpC,KAAK,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC;wBAC5B,CAAC,CAAC,EAAA;;wBAHF,aAAa;wBACb,SAEE,CAAC;;;oBAEP,sDAAsD;oBACtD,0CAA0C;oBAC1C,sBAAO,KAAK,EAAC;;;;KAEhB;AACL,CAAC,EA1Va,aAAa,GAAb,qBAAa,KAAb,qBAAa,QA0V1B"}
1
+ {"version":3,"file":"StandardInits.js","sourceRoot":"","sources":["../../../../../src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,yCAAmC;AAQnC;;;;;;;;;;;;GAYG;AACH,IAAc,aAAa,CAqY1B;AArYD,WAAc,aAAa;IAEV,0BAAY,GAAG;;;;;;;;;;;;QAYxB,CAAC;IAGQ,yBAAW,GAAG;;;;;;;;;;;;;;;;QAgBvB,CAAC;IAEL;;OAEG;IACH,MAAM,iBAAiB,GAAG;;;;;;;;;;;;;QAatB,CAAC;IAIL;;OAEG;IACH,MAAM,sBAAsB,GAAG;;;;;;;;;;;;;;QAc3B,CAAC;IAIQ,qBAAO,GAAG,uOAAuO,CAAC;IAE/P;;;;OAIG;IACH,SAAS,2BAA2B,CAAC,aAAqB,EAAE,KAAK,GAAC,IAAI;QAClE,OAAO;;;;;;8BAMe,KAAK,CAAC,CAAC,CAAC,SA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