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,3 +1,19 @@
1
+ /*!
2
+ * Licensed to the Apache Software Foundation (ASF) under one or more
3
+ * contributor license agreements. See the NOTICE file distributed with
4
+ * this work for additional information regarding copyright ownership.
5
+ * The ASF licenses this file to you under the Apache License, Version 2.0
6
+ * (the "License"); you may not use this file except in compliance with
7
+ * the License. You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
1
17
  /*
2
18
  Special config to generate the tsdocs
3
19
  */
@@ -8,7 +24,7 @@ Special config to generate the tsdocs
8
24
 
9
25
  },
10
26
  "typedocOptions": {
11
- "entryPoints": ["api/Jsf.ts"],
27
+ "entryPoints": ["api/_api.ts"],
12
28
  "out": "../../../dist/docs",
13
29
  "externalPattern": "**/node_modules/**",
14
30
  "exclude": "**/{node_modules,test,doc,impl,myfaces}/**/*",
@@ -1,11 +1,27 @@
1
+ /*!
2
+ * Licensed to the Apache Software Foundation (ASF) under one or more
3
+ * contributor license agreements. See the NOTICE file distributed with
4
+ * this work for additional information regarding copyright ownership.
5
+ * The ASF licenses this file to you under the Apache License, Version 2.0
6
+ * (the "License"); you may not use this file except in compliance with
7
+ * the License. You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
1
17
  {
2
18
  "compilerOptions": {
3
- "target": "es5",
19
+ "target": "es2015",
4
20
  "lib": [
5
- "es5",
6
21
  "es2015.collection",
7
22
  "dom"
8
23
  ],
24
+
9
25
  "sourceMap": false,
10
26
  "outDir": "../../../target",
11
27
  "moduleResolution": "node",
@@ -13,8 +29,10 @@
13
29
  "module": "commonjs",
14
30
  "sourceMap": true,
15
31
  "typeRoots": [
16
- "../../build/npm/node_modules/@types"
17
- ],
18
- "types": ["node"]
32
+ "../../build/npm/node_modules/@types",
33
+ "./@types/"
34
+ ]
35
+
36
+
19
37
  }
20
38
  }
@@ -14,7 +14,7 @@
14
14
 
15
15
  /***/ "./src/main/typescript/api/Jsf.ts":
16
16
  /*!****************************************!*\
17
- !*** ./src/main/typescript/api/Jsf.ts ***!
17
+ !*** ./src/main/typescript/api/_api.ts ***!
18
18
  \****************************************/
19
19
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
20
20
 
package/src/test.html ADDED
@@ -0,0 +1,75 @@
1
+
2
+ <h2>protocol testcase1</h2>
3
+
4
+ <div id="centerDiv">
5
+
6
+ <h1>Selenium Testprobe for insert update delete and attribute change</h1>
7
+
8
+ <h2>This test tests all aspects of the protocol, under xhr and iframe conditions</h2>
9
+
10
+ <div id="testResults">
11
+
12
+ <h3>Test Results</h3>
13
+
14
+ <div id="evalarea1">booga</div>
15
+
16
+ <div id="evalarea2">eval area 2 triggered by update</div>
17
+
18
+ <div id="evalarea3">eval area 3 triggered by insert</div>
19
+
20
+ <div id="evalarea4">eval area 4 triggered by a click on the changed attributes area</div>
21
+
22
+ <div id="changesArea">update insert area</div>
23
+
24
+ <div id="deleteable">delete area will be deleted once you press the delete button</div>
25
+
26
+ <div id="attributeChange">attributes changes area</div>
27
+
28
+
29
+
30
+ </div>
31
+
32
+ <h2>Call actions via normal ppr</h2>
33
+
34
+ <form id="form1" action="boog.html">
35
+
36
+ <input type="hidden" id="jakarta.faces.ViewState" name="jakarta.faces.ViewState" value="blubbblubblubb">
37
+
38
+ <input type="button" id="cmd_eval" value="eval" onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'eval1');">
39
+
40
+ <input type="button" id="cmd_update_insert" value="update insert" onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'updateinsert1');">
41
+
42
+ <input type="button" id="cmd_simple_resource" value="simple resource" onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'simpleresource');">
43
+
44
+ <input type="button" id="cmd_complex_resource" value="complex resource" onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'complex_resource');">
45
+
46
+ <input type="button" id="cmd_update_insert2" value="update insert second protocol path" onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'updateinsert2');">
47
+
48
+ <input type="button" id="cmd_delete" value="delete" onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'delete1');">
49
+
50
+ <input type="button" id="cmd_replace" value="Replace Body" onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'body_replace1');">
51
+
52
+ <input type="button" id="cmd_attributeschange" value="change attributes" onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'attributes');">
53
+
54
+ <input type="button" id="cmd_illegalresponse" value="illegal response, error trigger" onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'illegalResponse');">
55
+
56
+ <input type="button" id="cmd_viewstate" value="Viewstate only update trigger" onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'viewstate');">
57
+
58
+ <input type="button" id="cmd_error" value="Server error with error response" onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'errors');">
59
+
60
+ <input type="button" id="cmd_error_component" value="Error: no component given" onclick="(window.faces || window.jsf).ajax.request(null, event, {}); return false">
61
+
62
+ </form>
63
+
64
+ <script type="text/javascript">
65
+ document.getElementById("evalarea1").innerHTML = "booga";
66
+
67
+ var target = "./test.mockup";
68
+
69
+ function emitPPR(source, event, action, useIframe, formName) {
70
+ document.getElementById(formName || "form1").action = target;
71
+
72
+ (window?.faces ?? window.jsf).ajax.request(/*String|Dom Node*/ source, /*|EVENT|*/ (window.event) ? window.event : event, /*{|OPTIONS|}*/ {op: action});
73
+ }
74
+ </script>
75
+ </div>
@@ -0,0 +1,92 @@
1
+ <h2>protocol testcase1</h2>
2
+
3
+ <div id="centerDiv">
4
+
5
+ <h1>Selenium Testprobe for insert update delete and attribute change</h1>
6
+
7
+ <h2>This test tests all aspects of the protocol, under xhr and iframe conditions</h2>
8
+
9
+ <div id="testResults">
10
+
11
+ <h3>Test Results</h3>
12
+
13
+ <div id="evalarea1">booga</div>
14
+
15
+ <div id="evalarea2">eval area 2 triggered by update</div>
16
+
17
+ <div id="evalarea3">eval area 3 triggered by insert</div>
18
+
19
+ <div id="evalarea4">eval area 4 triggered by a click on the changed attributes area</div>
20
+
21
+ <div id="changesArea">update insert area</div>
22
+
23
+ <div id="deleteable">delete area will be deleted once you press the delete button</div>
24
+
25
+ <div id="attributeChange">attributes changes area</div>
26
+
27
+ <div id="resource_area_1"></div>
28
+ <div id="resource_area_2"></div>
29
+ <div id="resource_area_3"></div>
30
+ <script nonce="test12d3" type="text/javascript" src="../../../xhrCore/fixtures/nonce_script.js"></script>
31
+
32
+ </div>
33
+
34
+ <h2>Call actions via normal ppr</h2>
35
+
36
+ <form id="form1" action="./test.mockup">
37
+
38
+ <input type="hidden" id="jakarta.faces.ViewState" name="jakarta.faces.ViewState" value="blubbblubblubb">
39
+
40
+ <input type="button" id="cmd_eval" value="eval"
41
+ onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'eval1');">
42
+
43
+ <input type="button" id="cmd_update_insert" value="update insert"
44
+ onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'updateinsert1');">
45
+
46
+ <input type="button" id="cmd_simple_resource" value="simple resource"
47
+ onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'simpleresource');">
48
+
49
+ <input type="button" id="cmd_complex_resource" value="complex resource"
50
+ onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'complex_resource');">
51
+
52
+ <input type="button" id="cmd_complex_resource2" value="complex resource2"
53
+ onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'complex_resource2');">
54
+
55
+ <input type="button" id="cmd_update_insert2" value="update insert second protocol path"
56
+ onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'updateinsert2');">
57
+
58
+ <input type="button" id="cmd_delete" value="delete"
59
+ onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'delete1');">
60
+
61
+ <input type="button" id="cmd_replace" value="Replace Body"
62
+ onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'body_replace1');">
63
+
64
+ <input type="button" id="cmd_attributeschange" value="change attributes"
65
+ onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'attributes');">
66
+
67
+ <input type="button" id="cmd_illegalresponse" value="illegal response, error trigger"
68
+ onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'illegalResponse');">
69
+
70
+ <input type="button" id="cmd_viewstate" value="Viewstate only update trigger"
71
+ onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'viewstate');">
72
+
73
+ <input type="button" id="cmd_error" value="Server error with error response"
74
+ onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'errors');">
75
+
76
+ <input type="button" id="cmd_error_component" value="Error: no component given"
77
+ onclick="(window.faces || window.jsf).ajax.request(null, event, {}); return false">
78
+
79
+ </form>
80
+
81
+ <script type="text/javascript">
82
+ document.getElementById("evalarea1").innerHTML = "booga";
83
+
84
+ var target = "./test.mockup";
85
+
86
+ function emitPPR(source, event, action, useIframe, formName) {
87
+ document.getElementById(formName || "form1").action = target;
88
+
89
+ (window?.faces ?? window.jsf).ajax.request(/*String|Dom Node*/ source, /*|EVENT|*/ (window.event) ? window.event : event, /*{|OPTIONS|}*/ {op: action});
90
+ }
91
+ </script>
92
+ </div>
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
- /* Licensed to the Apache Software Foundation (ASF) under one or more
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.myfaces = exports.faces = void 0;
4
+ /*! Licensed to the Apache Software Foundation (ASF) under one or more
3
5
  * contributor license agreements. See the NOTICE file distributed with
4
6
  * this work for additional information regarding copyright ownership.
5
7
  * The ASF licenses this file to you under the Apache License, Version 2.0
@@ -14,29 +16,18 @@
14
16
  * See the License for the specific language governing permissions and
15
17
  * limitations under the License.
16
18
  */
17
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
18
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
19
- if (ar || !(i in from)) {
20
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
21
- ar[i] = from[i];
22
- }
23
- }
24
- return to.concat(ar || Array.prototype.slice.call(from));
25
- };
26
- Object.defineProperty(exports, "__esModule", { value: true });
27
- exports.myfaces = exports.jsf = void 0;
28
- ///<reference types='../../types/typedefs'/>
29
- var AjaxImpl_1 = require("../impl/AjaxImpl");
30
- var PushImpl_1 = require("../impl/PushImpl");
31
- var OamSubmit_1 = require("../myfaces/OamSubmit");
32
- //declare const Implementation: any;
33
- var jsf;
34
- (function (jsf) {
35
- "use strict";
36
- /*
37
- * Version of the implementation for the jsf.js.
19
+ const AjaxImpl_1 = require("../impl/AjaxImpl");
20
+ const PushImpl_1 = require("../impl/PushImpl");
21
+ const OamSubmit_1 = require("../myfaces/OamSubmit");
22
+ const Const_1 = require("../impl/core/Const");
23
+ //we use modules to get a proper jsdoc and static/map structure in the calls
24
+ //as per spec requirement
25
+ var faces;
26
+ (function (faces) {
27
+ /**
28
+ * Version of the implementation for the faces.ts.
38
29
  * <p />
39
- * as specified within the jsf specifications jsf.html:
30
+ * as specified within the jsf specifications faces.html:
40
31
  * <ul>
41
32
  * <li>left two digits major release number</li>
42
33
  * <li>middle two digits minor spec release number</li>
@@ -44,7 +35,7 @@ var jsf;
44
35
  * </ul>
45
36
  * @constant
46
37
  */
47
- jsf.specversion = 220000;
38
+ faces.specversion = 400000;
48
39
  /**
49
40
  * Implementation version as specified within the jsf specification.
50
41
  * <p />
@@ -53,12 +44,17 @@ var jsf;
53
44
  *
54
45
  * @constant
55
46
  */
56
- jsf.implversion = 0;
47
+ faces.implversion = 0;
48
+ /**
49
+ * SeparatorChar as defined by facesContext.getNamingContainerSeparatorChar()
50
+ */
51
+ faces.separatorchar = getSeparatorChar();
52
+ // noinspection JSUnusedGlobalSymbols
57
53
  /**
58
- * SeparatorChar as defined by UINamingContainer.getNamingContainerSeparatorChar()
59
- * @type {Char}
54
+ * Context Path as defined externalContext.requestContextPath
60
55
  */
61
- jsf.separatorchar = getSeparatorChar();
56
+ faces.contextpath = '#{facesContext.externalContext.requestContextPath}';
57
+ // we do not have a fallback here, for now
62
58
  /**
63
59
  * This method is responsible for the return of a given project stage as defined
64
60
  * by the jsf specification.
@@ -72,15 +68,15 @@ var jsf;
72
68
  * </li>
73
69
  *
74
70
  * @return {String} the current project state emitted by the server side method:
75
- * <i>javax.faces.application.Application.getProjectStage()</i>
71
+ * <i>jakarta.faces.application.Application.getProjectStage()</i>
76
72
  */
77
73
  function getProjectStage() {
78
74
  return AjaxImpl_1.Implementation.getProjectStage();
79
75
  }
80
- jsf.getProjectStage = getProjectStage;
76
+ faces.getProjectStage = getProjectStage;
81
77
  /**
82
78
  * collect and encode data for a given form element (must be of type form)
83
- * find the javax.faces.ViewState element and encode its value as well!
79
+ * find the jakarta.faces.ViewState element and encode its value as well!
84
80
  * return a concatenated string of the encoded values!
85
81
  *
86
82
  * @throws an exception in case of the given element not being of type form!
@@ -89,7 +85,7 @@ var jsf;
89
85
  function getViewState(formElement) {
90
86
  return AjaxImpl_1.Implementation.getViewState(formElement);
91
87
  }
92
- jsf.getViewState = getViewState;
88
+ faces.getViewState = getViewState;
93
89
  /**
94
90
  * returns the window identifier for the given node / window
95
91
  * @return the window identifier or null if none is found
@@ -98,12 +94,16 @@ var jsf;
98
94
  function getClientWindow(rootNode) {
99
95
  return AjaxImpl_1.Implementation.getClientWindow(rootNode);
100
96
  }
101
- jsf.getClientWindow = getClientWindow;
97
+ faces.getClientWindow = getClientWindow;
102
98
  //private helper functions
103
99
  function getSeparatorChar() {
104
- return AjaxImpl_1.Implementation.getSeparatorChar();
100
+ const sep = '#{facesContext.namingContainerSeparatorChar}';
101
+ //We now enable standalone mode, the separator char was not mapped we make a fallback to 2.3 behavior
102
+ //the idea is that the separator char is provided from the underlying container, but if not then we
103
+ //will perform a fallback (aka 2.3 has the url fallback behavior)
104
+ return (sep.match(/\#\{facesContext.namingContainerSeparatorChar\}/gi)) ? AjaxImpl_1.Implementation.getSeparatorChar() : sep;
105
105
  }
106
- var ajax;
106
+ let ajax;
107
107
  (function (ajax) {
108
108
  "use strict";
109
109
  /**
@@ -123,7 +123,6 @@ var jsf;
123
123
  */
124
124
  function request(element, event, options) {
125
125
  AjaxImpl_1.Implementation.request(element, event, options);
126
- //Implementation.getInstance().requestInternal(element, event, options);
127
126
  }
128
127
  ajax.request = request;
129
128
  /**
@@ -152,7 +151,7 @@ var jsf;
152
151
  * <li> eventData.responseXML: the requestInternal response xml </li>
153
152
  * </ul>
154
153
  *
155
- * @param {function} errorListener error handler must be of the format <i>function errorListener(&lt;errorData&gt;)</i>
154
+ * @param errorListener error handler must be of the format <i>function errorListener(&lt;errorData&gt;)</i>
156
155
  */
157
156
  function addOnError(errorFunc) {
158
157
  AjaxImpl_1.Implementation.addOnError(errorFunc);
@@ -162,14 +161,14 @@ var jsf;
162
161
  * Adds a global event listener to the ajax event queue. The event listener must be a function
163
162
  * of following format: <i>function eventListener(&lt;eventData&gt;)</i>
164
163
  *
165
- * @param {function} eventListener event must be of the format <i>function eventListener(&lt;eventData&gt;)</i>
164
+ * @param eventListener event must be of the format <i>function eventListener(&lt;eventData&gt;)</i>
166
165
  */
167
166
  function addOnEvent(eventFunc) {
168
167
  AjaxImpl_1.Implementation.addOnEvent(eventFunc);
169
168
  }
170
169
  ajax.addOnEvent = addOnEvent;
171
- })(ajax = jsf.ajax || (jsf.ajax = {}));
172
- var util;
170
+ })(ajax = faces.ajax || (faces.ajax = {}));
171
+ let util;
173
172
  (function (util) {
174
173
  /**
175
174
  * varargs function which executes a chain of code (functions or any other code)
@@ -182,31 +181,31 @@ var jsf;
182
181
  * @param funcs ... arbitrary array of functions or strings
183
182
  * @returns true if the chain has succeeded false otherwise
184
183
  */
185
- function chain(source, event) {
186
- var funcs = [];
187
- for (var _i = 2; _i < arguments.length; _i++) {
188
- funcs[_i - 2] = arguments[_i];
189
- }
190
- return AjaxImpl_1.Implementation.chain.apply(AjaxImpl_1.Implementation, __spreadArray([source, event], funcs, false));
184
+ function chain(source, event, ...funcs) {
185
+ return AjaxImpl_1.Implementation.chain(source, event, ...funcs);
191
186
  }
192
187
  util.chain = chain;
193
- })(util = jsf.util || (jsf.util = {}));
194
- var push;
188
+ })(util = faces.util || (faces.util = {}));
189
+ let push;
195
190
  (function (push) {
196
191
  /**
197
- * @param {function} onopen The function to be invoked when the web socket is opened.
198
- * @param {function} onmessage The function to be invoked when a message is received.
199
- * @param {function} onclose The function to be invoked when the web socket is closed.
200
- * @param {boolean} autoconnect Whether or not to immediately open the socket. Defaults to <code>false</code>.
192
+ * @param socketClientId the sockets client identifier
193
+ * @param url the uri to reach the socket
194
+ * @param channel the channel name/id
195
+ * @param onopen The function to be invoked when the web socket is opened.
196
+ * @param onmessage The function to be invoked when a message is received.
197
+ * @param onclose The function to be invoked when the web socket is closed.
198
+ * @param behaviors functions which are invoked whenever a message is received
199
+ * @param autoConnect Whether or not to automatically open the socket. Defaults to <code>false</code>.
201
200
  */
202
- function init(socketClientId, uri, channel, onopen, onmessage, onclose, behaviorScripts, autoconnect) {
203
- PushImpl_1.PushImpl.init(socketClientId, uri, channel, onopen, onmessage, onclose, behaviorScripts, autoconnect);
201
+ function init(socketClientId, url, channel, onopen, onmessage, onclose, behaviors, autoConnect) {
202
+ PushImpl_1.PushImpl.init(socketClientId, url, channel, onopen, onmessage, onclose, behaviors, autoConnect);
204
203
  }
205
204
  push.init = init;
206
205
  /**
207
206
  * Open the web socket on the given channel.
208
- * @param {string} channel The name of the web socket channel.
209
- * @throws {Error} When channel is unknown.
207
+ * @param channel The name of the web socket channel.
208
+ * @throws Error is thrown, if the channel is unknown.
210
209
  */
211
210
  function open(socketClientId) {
212
211
  PushImpl_1.PushImpl.open(socketClientId);
@@ -214,16 +213,15 @@ var jsf;
214
213
  push.open = open;
215
214
  /**
216
215
  * Close the web socket on the given channel.
217
- * @param {string} channel The name of the web socket channel.
218
- * @throws {Error} When channel is unknown.
216
+ * @param channel The name of the web socket channel.
217
+ * @throws Error is thrown, if the channel is unknown.
219
218
  */
220
219
  function close(socketClientId) {
221
220
  PushImpl_1.PushImpl.close(socketClientId);
222
221
  }
223
222
  push.close = close;
224
- })(push = jsf.push || (jsf.push = {}));
225
- })(jsf = exports.jsf || (exports.jsf = {}));
226
- //fullfill the window contract for the myfaces namespace
223
+ })(push = faces.push || (faces.push = {}));
224
+ })(faces = exports.faces || (exports.faces = {}));
227
225
  var myfaces;
228
226
  (function (myfaces) {
229
227
  /**
@@ -233,23 +231,23 @@ var myfaces;
233
231
  *
234
232
  * @param source the event source
235
233
  * @param event the event
236
- * @param eventName event name for java.javax.faces.behavior.evemnt
237
- * @param execute execute list as passed down in jsf.ajax.request
234
+ * @param eventName event name for java.jakarta.faces.behavior.evemnt
235
+ * @param execute execute list as passed down in faces.ajax.request
238
236
  * @param render
239
237
  * @param options
240
238
  */
241
- function ab(source, event, eventName, execute, render, options) {
242
- if (options === void 0) { options = {}; }
239
+ function ab(source, event, eventName, execute, render, options = {}) {
240
+ var _a;
243
241
  if (eventName) {
244
- options["javax.faces.behavior.event"] = eventName;
242
+ options[(0, Const_1.$nsp)(Const_1.P_BEHAVIOR_EVENT)] = eventName;
245
243
  }
246
244
  if (execute) {
247
- options["execute"] = execute;
245
+ options[Const_1.CTX_PARAM_EXECUTE] = execute;
248
246
  }
249
247
  if (render) {
250
- options["render"] = render;
248
+ options[Const_1.CTX_PARAM_RENDER] = render;
251
249
  }
252
- jsf.ajax.request(source, event, options);
250
+ ((_a = window === null || window === void 0 ? void 0 : window.faces) !== null && _a !== void 0 ? _a : window.jsf).ajax.request(source, event, options);
253
251
  }
254
252
  myfaces.ab = ab;
255
253
  /**
@@ -257,4 +255,4 @@ var myfaces;
257
255
  */
258
256
  myfaces.oam = OamSubmit_1.oam;
259
257
  })(myfaces = exports.myfaces || (exports.myfaces = {}));
260
- //# sourceMappingURL=Jsf.js.map
258
+ //# sourceMappingURL=_api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_api.js","sourceRoot":"","sources":["../../src/main/typescript/api/_api.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACH,+CAAgD;AAChD,+CAA0C;AAC1C,oDAAiD;AACjD,8CAA+F;AAI/F,4EAA4E;AAC5E,yBAAyB;AACzB,IAAc,KAAK,CAqNlB;AArND,WAAc,KAAK;IAGf;;;;;;;;;;OAUG;IACQ,iBAAW,GAAG,MAAM,CAAC;IAChC;;;;;;;OAOG;IACQ,iBAAW,GAAG,CAAC,CAAC;IAE3B;;OAEG;IACQ,mBAAa,GAAW,gBAAgB,EAAE,CAAC;IAEtD,qC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,EAxCa,IAAI,GAAJ,UAAI,KAAJ,UAAI,QAwCjB;AACL,CAAC,EArNa,KAAK,GAAL,aAAK,KAAL,aAAK,QAqNlB;AAED,IAAc,OAAO,CA+BpB;AA/BD,WAAc,OAAO;IACjB;;;;;;;;;;;OAWG;IACH,SAAgB,EAAE,CAAC,MAAe,EAAE,KAAY,EAAE,SAAiB,EAAE,OAAe,EAAE,MAAc,EAAE,UAAmB,EAAE;;QACvH,IAAI,SAAS,EAAE;YACZ,OAAO,CAAC,IAAA,YAAI,EAAC,wBAAgB,CAAC,CAAC,GAAG,SAAS,CAAC;SAC9C;QACD,IAAI,OAAO,EAAE;YACT,OAAO,CAAC,yBAAiB,CAAC,GAAG,OAAO,CAAC;SACxC;QACD,IAAI,MAAM,EAAE;YACR,OAAO,CAAC,wBAAgB,CAAC,GAAG,MAAM,CAAC;SACtC;QAED,CAAC,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,mCAAI,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAZe,UAAE,KAYjB,CAAA;IAED;;OAEG;IACU,WAAG,GAAG,eAAI,CAAC;AAC5B,CAAC,EA/Ba,OAAO,GAAP,eAAO,KAAP,eAAO,QA+BpB"}
@@ -0,0 +1,45 @@
1
+ /*! Licensed to the Apache Software Foundation (ASF) under one or more
2
+ * contributor license agreements. See the NOTICE file distributed with
3
+ * this work for additional information regarding copyright ownership.
4
+ * The ASF licenses this file to you under the Apache License, Version 2.0
5
+ * (the "License"); you may not use this file except in compliance with
6
+ * the License. You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ "use strict";
17
+ var _a, _b, _c;
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.myfaces = exports.faces = void 0;
20
+ /**
21
+ * faces.js init layer which provides as per spec the proper
22
+ * window namespace if it does not exist already
23
+ *
24
+ * The idea is that we use a small shim on top of
25
+ * the implementation to provide the window namespace.
26
+ * The implementation itself is in a protected namespace
27
+ * which will be bound by the build system
28
+ *
29
+ * The documentation nevertheless targets the _api file, which
30
+ * hosts the full api
31
+ */
32
+ if (!window.faces) {
33
+ //we lazily load the code to prevent ram bloat
34
+ const faces = require("./_api").faces;
35
+ window['faces'] = (_a = window === null || window === void 0 ? void 0 : window.faces) !== null && _a !== void 0 ? _a : faces;
36
+ }
37
+ if (!((_b = window === null || window === void 0 ? void 0 : window.myfaces) === null || _b === void 0 ? void 0 : _b.ab)) {
38
+ const myfaces = require("./_api").myfaces;
39
+ //namespace might be extended is not exclusively reserved so we merge
40
+ window["myfaces"] = (_c = window === null || window === void 0 ? void 0 : window.myfaces) !== null && _c !== void 0 ? _c : {};
41
+ Object.keys(myfaces).forEach(key => { var _a, _b; return window.myfaces[key] = (_b = (_a = window.myfaces) === null || _a === void 0 ? void 0 : _a[key]) !== null && _b !== void 0 ? _b : myfaces[key]; });
42
+ }
43
+ exports.faces = window.faces;
44
+ exports.myfaces = window.myfaces;
45
+ //# sourceMappingURL=faces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"faces.js","sourceRoot":"","sources":["../../src/main/typescript/api/faces.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,YAAY,CAAC;;;;AAEb;;;;;;;;;;;GAWG;AACH,IAAG,CAAC,MAAM,CAAC,KAAK,EAAE;IACd,8CAA8C;IAC9C,MAAM,KAAK,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC;IACtC,MAAM,CAAC,OAAO,CAAC,GAAG,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,mCAAI,KAAK,CAAC;CAC5C;AACD,IAAG,CAAC,CAAA,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,0CAAE,EAAE,CAAA,EAAE;IACrB,MAAM,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC;IAE1C,qEAAqE;IACpE,MAAc,CAAC,SAAS,CAAC,GAAG,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,mCAAI,EAAE,CAAC;IACnD,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,eAAC,OAAA,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,MAAA,MAAA,MAAM,CAAC,OAAO,0CAAG,GAAG,CAAC,mCAAI,OAAO,CAAC,GAAG,CAAC,CAAA,EAAA,CAAC,CAAC;CACpG;AACU,QAAA,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;AACrB,QAAA,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC"}
@@ -0,0 +1,45 @@
1
+ /*! Licensed to the Apache Software Foundation (ASF) under one or more
2
+ * contributor license agreements. See the NOTICE file distributed with
3
+ * this work for additional information regarding copyright ownership.
4
+ * The ASF licenses this file to you under the Apache License, Version 2.0
5
+ * (the "License"); you may not use this file except in compliance with
6
+ * the License. You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ "use strict";
17
+ var _a, _b, _c, _d, _e;
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.myfaces = exports.jsf = void 0;
20
+ /**
21
+ * jsf.js init layer which provides as per spec the proper
22
+ * window namespace if it does not exist already
23
+ * if this file is included then the code falls back with its namespaces
24
+ * on jsf2.3 or earlier level, for 4.0+ please include faces.js
25
+ */
26
+ if (!(window === null || window === void 0 ? void 0 : window.jsf)) {
27
+ const faces = require("./_api").faces;
28
+ window['jsf'] = (_a = window === null || window === void 0 ? void 0 : window.jsf) !== null && _a !== void 0 ? _a : faces;
29
+ window.jsf.specversion = 230000;
30
+ delete window.jsf.contextpath;
31
+ }
32
+ if (!((_b = window === null || window === void 0 ? void 0 : window.myfaces) === null || _b === void 0 ? void 0 : _b.ab)) {
33
+ const myfaces = require("./_api").myfaces;
34
+ //namespace might be extended is not exclusively reserved so we merge
35
+ window["myfaces"] = (_c = window === null || window === void 0 ? void 0 : window.myfaces) !== null && _c !== void 0 ? _c : {};
36
+ if (!((_d = window === null || window === void 0 ? void 0 : window.myfaces) === null || _d === void 0 ? void 0 : _d.ab)) {
37
+ const myfaces = require("./_api").myfaces;
38
+ //namespace might be extended is not exclusively reserved so we merge
39
+ window["myfaces"] = (_e = window === null || window === void 0 ? void 0 : window.myfaces) !== null && _e !== void 0 ? _e : {};
40
+ Object.keys(myfaces).forEach(key => { var _a, _b; return window.myfaces[key] = (_b = (_a = window.myfaces) === null || _a === void 0 ? void 0 : _a[key]) !== null && _b !== void 0 ? _b : myfaces[key]; });
41
+ }
42
+ }
43
+ exports.jsf = window.jsf;
44
+ exports.myfaces = window.myfaces;
45
+ //# sourceMappingURL=jsf.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsf.js","sourceRoot":"","sources":["../../src/main/typescript/api/jsf.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,YAAY,CAAC;;;;AACb;;;;;GAKG;AACH,IAAG,CAAC,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,GAAG,CAAA,EAAE;IACb,MAAM,KAAK,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC;IACrC,MAAc,CAAC,KAAK,CAAC,GA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