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
@@ -12,20 +12,16 @@ exports.AsynchronousQueue = void 0;
12
12
  * This interface can be used as wrapper contract
13
13
  * for normal promises if needed.
14
14
  */
15
- var AsynchronousQueue = /** @class */ (function () {
16
- function AsynchronousQueue() {
15
+ class AsynchronousQueue {
16
+ constructor() {
17
17
  this.runnableQueue = [];
18
18
  }
19
- Object.defineProperty(AsynchronousQueue.prototype, "isEmpty", {
20
- /**
21
- * simple is empty accessor, returns true if queue is empty atm
22
- */
23
- get: function () {
24
- return !this.runnableQueue.length;
25
- },
26
- enumerable: false,
27
- configurable: true
28
- });
19
+ /**
20
+ * simple is empty accessor, returns true if queue is empty atm
21
+ */
22
+ get isEmpty() {
23
+ return !this.runnableQueue.length;
24
+ }
29
25
  /**
30
26
  * enqueues an element and starts the
31
27
  * asynchronous work loop if not already running
@@ -33,40 +29,38 @@ var AsynchronousQueue = /** @class */ (function () {
33
29
  * @param element the element to be queued and processed
34
30
  * @param delay possible delay after our usual process or drop if something newer is incoming algorithm
35
31
  */
36
- AsynchronousQueue.prototype.enqueue = function (element, delay) {
37
- var _this = this;
38
- if (delay === void 0) { delay = 0; }
32
+ enqueue(element, delay = 0) {
39
33
  if (this.delayTimeout) {
40
34
  clearTimeout(this.delayTimeout);
41
35
  this.delayTimeout = null;
42
36
  }
43
37
  if (delay) {
44
- this.delayTimeout = setTimeout(function () {
45
- _this.appendElement(element);
38
+ this.delayTimeout = setTimeout(() => {
39
+ this.appendElement(element);
46
40
  });
47
41
  }
48
42
  else {
49
43
  this.appendElement(element);
50
44
  }
51
- };
45
+ }
52
46
  /**
53
47
  * fetches the next element from the queue (first in first out order)
54
48
  */
55
- AsynchronousQueue.prototype.dequeue = function () {
49
+ dequeue() {
56
50
  return this.runnableQueue.shift();
57
- };
51
+ }
58
52
  /**
59
53
  * clears up all elements from the queue
60
54
  */
61
- AsynchronousQueue.prototype.cleanup = function () {
55
+ cleanup() {
62
56
  this.currentlyRunning = null;
63
57
  this.runnableQueue.length = 0;
64
- };
58
+ }
65
59
  /**
66
60
  * cancels the currently running element and then cleans up the queue
67
61
  * aka cancel the queue entirely
68
62
  */
69
- AsynchronousQueue.prototype.cancel = function () {
63
+ cancel() {
70
64
  try {
71
65
  if (this.currentlyRunning) {
72
66
  this.currentlyRunning.cancel();
@@ -75,11 +69,11 @@ var AsynchronousQueue = /** @class */ (function () {
75
69
  finally {
76
70
  this.cleanup();
77
71
  }
78
- };
79
- AsynchronousQueue.prototype.callForNextElementToProcess = function () {
72
+ }
73
+ callForNextElementToProcess() {
80
74
  this.runEntry();
81
- };
82
- AsynchronousQueue.prototype.appendElement = function (element) {
75
+ }
76
+ appendElement(element) {
83
77
  //only if the first element is added we start with a trigger
84
78
  //otherwise a process already is running and not finished yet at that
85
79
  //time
@@ -87,19 +81,18 @@ var AsynchronousQueue = /** @class */ (function () {
87
81
  if (!this.currentlyRunning) {
88
82
  this.runEntry();
89
83
  }
90
- };
91
- AsynchronousQueue.prototype.runEntry = function () {
92
- var _this = this;
84
+ }
85
+ runEntry() {
93
86
  if (this.isEmpty) {
94
87
  this.currentlyRunning = null;
95
88
  return;
96
89
  }
97
90
  this.currentlyRunning = this.dequeue();
98
91
  this.currentlyRunning
99
- .catch(function (e) {
92
+ .catch((e) => {
100
93
  //in case of an error we always clean up the remaining calls
101
94
  //to allow a clean recovery of the application
102
- _this.cleanup();
95
+ this.cleanup();
103
96
  throw e;
104
97
  })
105
98
  .then(
@@ -109,9 +102,8 @@ var AsynchronousQueue = /** @class */ (function () {
109
102
  //naturally give we have a DOM, the DOM is the natural event dispatch system
110
103
  //which we can use, to decouple the calls from a recursive stack call
111
104
  //(the browser engine will take care of that)
112
- function () { return _this.callForNextElementToProcess(); }).start();
113
- };
114
- return AsynchronousQueue;
115
- }());
105
+ () => this.callForNextElementToProcess()).start();
106
+ }
107
+ }
116
108
  exports.AsynchronousQueue = AsynchronousQueue;
117
109
  //# sourceMappingURL=AsyncQueue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AsyncQueue.js","sourceRoot":"","sources":["../../../src/main/typescript/impl/util/AsyncQueue.ts"],"names":[],"mappings":";;;AAiBA;;;;;;;;;;GAUG;AACH;IAOI;QALQ,kBAAa,GAAG,EAAE,CAAC;IAM3B,CAAC;IAKD,sBAAI,sCAAO;QAHX;;WAEG;aACH;YACI,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC;QACtC,CAAC;;;OAAA;IAED;;;;;;OAMG;IACH,mCAAO,GAAP,UAAQ,OAAU,EAAE,KAAS;QAA7B,iBAYC;QAZmB,sBAAA,EAAA,SAAS;QACzB,IAAI,IAAI,CAAC,YAAY,EAAE;YACnB,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;YAChC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;SAC5B;QACD,IAAI,KAAK,EAAE;YACP,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC;gBAC3B,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AC,CAAC;aACD,IAAI;QACD,yDAAyD;QACzD,wDAAwD;QACxD,kBAAkB;QAClB,4EAA4E;QAC5E,qEAAqE;QACrE,6CAA6C;QAC7C,cAAM,OAAA,KAAI,CAAC,2BAA2B,EAAE,EAAlC,CAAkC,CAC3C,CAAC,KAAK,EAAE,CAAC;IAClB,CAAC;IACL,wBAAC;AAAD,CAAC,AAxGD,IAwGC;AAxGY,8CAAiB"}
1
+ {"version":3,"file":"AsyncQueue.js","sourceRoot":"","sources":["../../../src/main/typescript/impl/util/AsyncQueue.ts"],"names":[],"mappings":";;;AAiBA;;;;;;;;;;GAUG;AACH,MAAa,iBAAiB;IAO1B;QALQ,kBAAa,GAAG,EAAE,CAAC;IAM3B,CAAC;IAED;;OAEG;IACH,IAAI,OAAO;QACP,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC;IACtC,CAAC;IAED;;;;;;OAMG;IACH,OAAO,CAAC,OAAU,EAAE,KAAK,GAAG,CAAC;QACzB,IAAI,IAAI,CAAC,YAAY,EAAE;YACnB,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;YAChC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;SAC5B;QACD,IAAI,KAAK,EAAE;YACP,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,GAAG,EAAE;gBAChC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;YAChC,CAAC,CAAC,CAAC;SACN;aAAM;YACH,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;SAC/B;IACL,CAAC;IAED;;OAEG;IACH,OAAO;QACH,OAAO,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC;IACtC,CAAC;IAED;;OAEG;IACH,OAAO;QACH,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;QAC7B,IAAI,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC;IAClC,CAAC;IAED;;;OAGG;IACH,MAAM;QACF,IAAI;YACA,IAAI,IAAI,CAAC,gBAAgB,EAAE;gBACvB,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,CAAC;aAClC;SACJ;gBAAS;YACN,IAAI,CAAC,OAAO,EAAE,CAAC;SAClB;IACL,CAAC;IAEO,2BAA2B;QAC/B,IAAI,CAAC,QAAQ,EAAE,CAAC;IACpB,CAAC;IAEO,aAAa,CAAC,OAAU;QAC5B,4DAA4D;QAC5D,qEAAqE;QACrE,MAAM;QACN,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjC,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE;YACxB,IAAI,CAAC,QAAQ,EAAE,CAAC;SACnB;IACL,CAAC;IAEO,QAAQ;QACZ,IAAI,IAAI,CAAC,OAAO,EAAE;YACd,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;YAC7B,OAAO;SACV;QACD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;QACvC,IAAI,CAAC,gBAAgB;aAChB,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;YACT,4DAA4D;YAC5D,8CAA8C;YAC9C,IAAI,CAAC,OAAO,EAAE,CAAC;YACf,MAAM,CAAC,CAAC;QACZ,CAAC,CAAC;aACD,IAAI;QACD,yDAAyD;QACzD,wDAAwD;QACxD,kBAAkB;QAClB,4EAA4E;QAC5E,qEAAqE;QACrE,6CAA6C;QAC7C,GAAG,EAAE,CAAC,IAAI,CAAC,2BAA2B,EAAE,CAC3C,CAAC,KAAK,EAAE,CAAC;IAClB,CAAC;CACJ;AAxGD,8CAwGC"}
@@ -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
@@ -1,22 +1,7 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
2
  Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.ExtDQ = exports.ExtDomquery = void 0;
19
- /* Licensed to the Apache Software Foundation (ASF) under one or more
3
+ exports.ExtConfig = exports.ExtDQ = exports.ExtDomQuery = void 0;
4
+ /*! Licensed to the Apache Software Foundation (ASF) under one or more
20
5
  * contributor license agreements. See the NOTICE file distributed with
21
6
  * this work for additional information regarding copyright ownership.
22
7
  * The ASF licenses this file to you under the Apache License, Version 2.0
@@ -31,155 +16,198 @@ exports.ExtDQ = exports.ExtDomquery = void 0;
31
16
  * See the License for the specific language governing permissions and
32
17
  * limitations under the License.
33
18
  */
34
- var mona_dish_1 = require("mona-dish");
35
- var Const_1 = require("../core/Const");
19
+ const mona_dish_1 = require("mona-dish");
20
+ const Const_1 = require("../core/Const");
36
21
  /**
37
- * detects whether a source is a jsf.js request
22
+ * detects whether a source is a faces.js request
38
23
  *
39
- * @param source the source string for the jsf.js request
40
- * @return true if a jsf.js loading pattern is detected
24
+ * @param source the source string for the faces.js request
25
+ * @return true if a faces.js loading pattern is detected
41
26
  * @constructor
42
27
  */
43
- var IS_JSF_SOURCE = function (source) {
44
- return source && !!((source === null || source === void 0 ? void 0 : source.search(/\/javax\.faces\.resource.*\/jsf\.js.*/)) != -1 ||
28
+ const IS_FACES_SOURCE = (source) => {
29
+ //spec version smaller 4 we have to deal with the jsf namespace
30
+ return source && !!((source === null || source === void 0 ? void 0 : source.search(/\/jakarta\.faces\.resource.*\/faces\.js.*/)) != -1 ||
31
+ (source === null || source === void 0 ? void 0 : source.search(/\/faces-development\.js.*/)) != -1 ||
32
+ (source === null || source === void 0 ? void 0 : source.search(/\/faces-uncompressed\.js.*/)) != -1 ||
33
+ (source === null || source === void 0 ? void 0 : source.search(/\/faces[^.]*\.js.*ln=jakarta.faces.*/gi)) != -1 ||
34
+ //fallback without check for jsf, that way we allow both bookmarks
35
+ (source === null || source === void 0 ? void 0 : source.search(/\/javax\.faces\.resource.*\/jsf\.js.*/)) != -1 ||
45
36
  (source === null || source === void 0 ? void 0 : source.search(/\/jsf-development\.js.*/)) != -1 ||
46
37
  (source === null || source === void 0 ? void 0 : source.search(/\/jsf-uncompressed\.js.*/)) != -1 ||
47
38
  (source === null || source === void 0 ? void 0 : source.search(/\/jsf[^.]*\.js.*ln=javax.faces.*/gi)) != -1);
48
39
  };
49
40
  /**
50
- * namespace myfaces.testscripts can be used as extension point for internal
51
- * tests, those will be handled similarly to jsf.js regarding
52
- * reload blocking on ajax requests
41
+ * namespace myfaces\.testscripts can be used as extension point for internal
42
+ * tests, those will be handled similarly to faces.js, in regard
43
+ * to reload blocking on ajax requests
44
+ *
45
+ * Note: atm not used, used to be used in the old implementation
46
+ * but still is reserved for now
53
47
  *
54
48
  * @param source the source to check
55
49
  * @constructor
56
50
  */
57
- var IS_INTERNAL_SOURCE = function (source) {
58
- return source.search(/\/jsf[^.]*\.js.*ln=myfaces.testscripts.*/gi) != -1;
51
+ const IS_INTERNAL_SOURCE = (source) => {
52
+ return source.search(/\/faces[^.]*\.js.*ln=myfaces.testscripts.*/gi) != -1 || source.search(/\/jsf[^.]*\.js.*ln=myfaces.testscripts.*/gi) != -1;
59
53
  };
60
- var ATTR_SRC = 'src';
54
+ const ATTR_SRC = 'src';
61
55
  /**
62
56
  * Extension which adds implementation specific
63
- * meta data to our dom query
57
+ * meta-data to our dom query
64
58
  *
65
59
  * Usage
66
60
  * el = new ExtDQ(oldReference)
67
61
  * nonce = el.nonce
68
62
  * windowId = el.getWindowId
69
63
  */
70
- var ExtDomquery = /** @class */ (function (_super) {
71
- __extends(ExtDomquery, _super);
72
- function ExtDomquery() {
73
- return _super !== null && _super.apply(this, arguments) || this;
74
- }
75
- Object.defineProperty(ExtDomquery, "windowId", {
76
- get: function () {
77
- return new ExtDomquery(document.body).windowId;
78
- },
79
- enumerable: false,
80
- configurable: true
81
- });
82
- Object.defineProperty(ExtDomquery, "nonce", {
83
- get: function () {
84
- return new ExtDomquery(document.body).nonce;
85
- },
86
- enumerable: false,
87
- configurable: true
88
- });
89
- Object.defineProperty(ExtDomquery.prototype, "windowId", {
90
- get: function () {
91
- var fetchWindowIdFromURL = function () {
92
- var href = window.location.href;
93
- var windowId = "windowId";
94
- var regex = new RegExp("[\\?&]" + windowId + "=([^&#\\;]*)");
95
- var results = regex.exec(href);
96
- //initial trial over the url and a regexp
97
- if (results != null)
98
- return results[1];
99
- return null;
100
- };
101
- //byId ($)
102
- if (this.value.isPresent()) {
103
- var result = this.querySelectorAll("form input[name='" + Const_1.P_WINDOW_ID + "']");
104
- if (result.length > 0) {
105
- throw Error("Multiple different windowIds found in document");
106
- }
107
- return (result.isPresent()) ? result.getAsElem(0).value.value : fetchWindowIdFromURL();
108
- }
109
- else {
110
- return fetchWindowIdFromURL();
111
- }
112
- },
113
- enumerable: false,
114
- configurable: true
115
- });
116
- Object.defineProperty(ExtDomquery.prototype, "nonce", {
117
- /*
118
- * determines the jsf.js nonce and adds them to the namespace
119
- * this is done once and only lazily
120
- */
121
- get: function () {
122
- //already processed
123
- var myfacesConfig = new mona_dish_1.Config(window.myfaces);
124
- var nonce = myfacesConfig.getIf("config", "cspMeta", "nonce");
125
- if (nonce.value) {
126
- return nonce.value;
127
- }
128
- var curScript = new mona_dish_1.DQ(document.currentScript);
129
- //since our baseline atm is ie11 we cannot use document.currentScript globally
130
- if (curScript.attr("nonce").value != null) {
131
- // fastpath for modern browsers
132
- return curScript.attr("nonce").value;
133
- }
134
- // fallback if the currentScript method fails, we just search the jsf tags for nonce, this is
135
- // the last possibility
136
- var nonceScript = mona_dish_1.DQ
137
- .querySelectorAll("script[src], link[src]")
138
- .lazyStream
139
- .filter(function (item) { return item.attr("nonce").value != null && item.attr(ATTR_SRC) != null; })
140
- .map(function (item) { return IS_JSF_SOURCE(item.attr(ATTR_SRC).value); })
141
- .first();
142
- if (nonceScript.isPresent()) {
143
- nonce.value = mona_dish_1.DomQuery.byId(nonceScript.value, true).attr("nonce").value;
64
+ class ExtDomQuery extends mona_dish_1.DQ {
65
+ static get windowId() {
66
+ return new ExtDomQuery(document.body).windowId;
67
+ }
68
+ static get nonce() {
69
+ return new ExtDomQuery(document.body).nonce;
70
+ }
71
+ get windowId() {
72
+ const fetchWindowIdFromURL = function () {
73
+ let href = window.location.href;
74
+ let windowId = "windowId";
75
+ let regex = new RegExp("[\\?&]" + windowId + "=([^&#\\;]*)");
76
+ let results = regex.exec(href);
77
+ //initial trial over the url and a regexp
78
+ if (results != null)
79
+ return results[1];
80
+ return null;
81
+ };
82
+ //byId ($)
83
+ if (this.value.isPresent()) {
84
+ let result = this.querySelectorAll("form input[name='" + Const_1.P_WINDOW_ID + "']");
85
+ if (result.length > 1) {
86
+ throw Error("Multiple different windowIds found in document");
144
87
  }
88
+ return (result.isPresent()) ? result.getAsElem(0).value.value : fetchWindowIdFromURL();
89
+ }
90
+ else {
91
+ return fetchWindowIdFromURL();
92
+ }
93
+ }
94
+ /*
95
+ * determines the faces.js nonce and adds them to the namespace
96
+ * this is done once and only lazily
97
+ */
98
+ get nonce() {
99
+ //already processed
100
+ let myfacesConfig = new ExtConfig(window.myfaces);
101
+ let nonce = myfacesConfig.getIf("config", "cspMeta", "nonce");
102
+ if (nonce.value) {
145
103
  return nonce.value;
146
- },
147
- enumerable: false,
148
- configurable: true
149
- });
150
- ExtDomquery.searchJsfJsFor = function (item) {
151
- return new ExtDomquery(document).searchJsfJsFor(item);
152
- };
104
+ }
105
+ let curScript = new mona_dish_1.DQ(document.currentScript);
106
+ //since our baseline atm is ie11 we cannot use document.currentScript globally
107
+ if (!!this.extractNonce(curScript)) {
108
+ // fast-path for modern browsers
109
+ return this.extractNonce(curScript);
110
+ }
111
+ // fallback if the currentScript method fails, we just search the jsf tags for nonce, this is
112
+ // the last possibility
113
+ let nonceScript = mona_dish_1.DQ
114
+ .querySelectorAll("script[src], link[src]")
115
+ .lazyStream
116
+ .filter((item) => this.extractNonce(item) && item.attr(ATTR_SRC) != null)
117
+ .filter(item => IS_FACES_SOURCE(item.attr(ATTR_SRC).value))
118
+ .first();
119
+ if (nonceScript.isPresent()) {
120
+ return this.extractNonce(nonceScript.value);
121
+ }
122
+ return null;
123
+ }
124
+ static searchJsfJsFor(item) {
125
+ return new ExtDomQuery(document).searchJsfJsFor(item);
126
+ }
153
127
  /**
154
- * searches the embedded jsf.js for items like separator char etc..
128
+ * searches the embedded faces.js for items like separator char etc.
155
129
  * expects a match as variable under position 1 in the result match
156
- * @param rexp
130
+ * @param regExp
157
131
  */
158
- ExtDomquery.prototype.searchJsfJsFor = function (rexp) {
132
+ searchJsfJsFor(regExp) {
159
133
  //perfect application for lazy stream
160
134
  return mona_dish_1.DQ.querySelectorAll("script[src], link[src]").lazyStream
161
- .filter(function (item) { return IS_JSF_SOURCE(item.attr(ATTR_SRC).value); })
162
- .map(function (item) { return item.attr(ATTR_SRC).value.match(rexp); })
163
- .filter(function (item) { return item != null && item.length > 1; })
164
- .map(function (result) {
135
+ .filter(item => IS_FACES_SOURCE(item.attr(ATTR_SRC).value))
136
+ .map(item => item.attr(ATTR_SRC).value.match(regExp))
137
+ .filter(item => item != null && item.length > 1)
138
+ .map((result) => {
165
139
  return decodeURIComponent(result[1]);
166
140
  }).first();
167
- };
168
- ExtDomquery.prototype.globalEval = function (code, nonce) {
169
- return new ExtDomquery(_super.prototype.globalEval.call(this, code, nonce !== null && nonce !== void 0 ? nonce : this.nonce));
170
- };
141
+ }
142
+ globalEval(code, nonce) {
143
+ return new ExtDomQuery(super.globalEval(code, nonce !== null && nonce !== void 0 ? nonce : this.nonce));
144
+ }
145
+ // called from base class runScripts, do not delete
146
+ // noinspection JSUnusedGlobalSymbols
147
+ globalEvalSticky(code, nonce) {
148
+ return new ExtDomQuery(super.globalEvalSticky(code, nonce !== null && nonce !== void 0 ? nonce : this.nonce));
149
+ }
171
150
  /**
172
151
  * decorated run scripts which takes our jsf extensions into consideration
173
152
  * (standard DomQuery will let you pass anything)
174
- * @param whilteListed
153
+ * @param sticky if set to true the internally generated element for the script is left in the dom
154
+ * @param whiteListed
175
155
  */
176
- ExtDomquery.prototype.runScripts = function (whilteListed) {
177
- var whitelistFunc = function (src) {
156
+ runScripts(sticky = false, whiteListed) {
157
+ const whitelistFunc = (src) => {
178
158
  var _a;
179
- return ((_a = whilteListed === null || whilteListed === void 0 ? void 0 : whilteListed(src)) !== null && _a !== void 0 ? _a : true) && !IS_JSF_SOURCE(src) && !IS_INTERNAL_SOURCE(src);
159
+ return ((_a = whiteListed === null || whiteListed === void 0 ? void 0 : whiteListed(src)) !== null && _a !== void 0 ? _a : true) && !IS_FACES_SOURCE(src) && !IS_INTERNAL_SOURCE(src);
180
160
  };
181
- return _super.prototype.runScripts.call(this, whitelistFunc);
182
- };
161
+ return super.runScripts(sticky, whitelistFunc);
162
+ }
163
+ /**
164
+ * adds the elements in this ExtDomQuery to the head
165
+ *
166
+ * @param suppressDoubleIncludes checks for existing elements in the head before running the insert
167
+ */
168
+ runHeadInserts(suppressDoubleIncludes = true) {
169
+ let head = ExtDomQuery.byId(document.head);
170
+ //automated nonce handling
171
+ let processedScripts = [];
172
+ // the idea is only to run head inserts on resources
173
+ // which do not exist already, that way
174
+ // we can avoid double includes on subsequent resource
175
+ // requests.
176
+ function resourceIsNew(element) {
177
+ if (!suppressDoubleIncludes) {
178
+ return true;
179
+ }
180
+ const tagName = element.tagName.value;
181
+ if (!tagName) {
182
+ // text node they do not have tag names, so we can process them as they are without
183
+ // any further ado
184
+ return true;
185
+ }
186
+ let reference = element.attr("href")
187
+ .orElse(element.attr("src").value)
188
+ .orElse(element.attr("rel").value);
189
+ if (!reference.isPresent()) {
190
+ return true;
191
+ }
192
+ return !head.querySelectorAll(`${tagName}[href='${reference.value}']`).length &&
193
+ !head.querySelectorAll(`${tagName}[src='${reference.value}']`).length &&
194
+ !head.querySelectorAll(`${tagName}[rel='${reference.value}']`).length;
195
+ }
196
+ this
197
+ .filter(resourceIsNew)
198
+ .each(element => {
199
+ if (element.tagName.value != "SCRIPT") {
200
+ //we need to run runScripts properly to deal with the rest
201
+ new ExtDomQuery(...processedScripts).runScripts(true);
202
+ processedScripts = [];
203
+ head.append(element);
204
+ }
205
+ else {
206
+ processedScripts.push(element);
207
+ }
208
+ });
209
+ new ExtDomQuery(...processedScripts).runScripts(true);
210
+ }
183
211
  /**
184
212
  * byId producer
185
213
  *
@@ -187,13 +215,82 @@ var ExtDomquery = /** @class */ (function (_super) {
187
215
  * @param deep whether the search should go into embedded shadow dom elements
188
216
  * @return a DomQuery containing the found elements
189
217
  */
190
- ExtDomquery.byId = function (selector, deep) {
191
- if (deep === void 0) { deep = false; }
192
- var ret = mona_dish_1.DomQuery.byId(selector, deep);
193
- return new ExtDomquery(ret);
194
- };
195
- return ExtDomquery;
196
- }(mona_dish_1.DQ));
197
- exports.ExtDomquery = ExtDomquery;
198
- exports.ExtDQ = mona_dish_1.DQ;
218
+ static byId(selector, deep = false) {
219
+ const ret = mona_dish_1.DomQuery.byId(selector, deep);
220
+ return new ExtDomQuery(ret);
221
+ }
222
+ extractNonce(curScript) {
223
+ var _a, _b;
224
+ return (_b = (_a = curScript.getAsElem(0).value) === null || _a === void 0 ? void 0 : _a.nonce) !== null && _b !== void 0 ? _b : curScript.attr("nonce").value;
225
+ }
226
+ }
227
+ exports.ExtDomQuery = ExtDomQuery;
228
+ exports.ExtDQ = ExtDomQuery;
229
+ /**
230
+ * in order to reduce the number of interception points for the fallbacks we add
231
+ * the namespace remapping straight to our config accessors
232
+ */
233
+ class ExtConfig extends mona_dish_1.Config {
234
+ constructor(root) {
235
+ super(root);
236
+ }
237
+ assignIf(condition, ...accessPath) {
238
+ const accessPathMapped = this.remap(accessPath);
239
+ return super.assignIf(condition, ...accessPathMapped);
240
+ }
241
+ assign(...accessPath) {
242
+ const accessPathMapped = this.remap(accessPath);
243
+ return super.assign(...accessPathMapped);
244
+ }
245
+ append(...accessPath) {
246
+ return super.append(...accessPath);
247
+ }
248
+ appendIf(condition, ...accessPath) {
249
+ const accessPathMapped = this.remap(accessPath);
250
+ return super.appendIf(condition, ...accessPathMapped);
251
+ }
252
+ getIf(...accessPath) {
253
+ const accessPathMapped = this.remap(accessPath);
254
+ return super.getIf(...accessPathMapped);
255
+ }
256
+ get(defaultVal) {
257
+ return super.get((0, Const_1.$nsp)(defaultVal));
258
+ }
259
+ delete(key) {
260
+ return super.delete((0, Const_1.$nsp)(key));
261
+ }
262
+ /**
263
+ * creates a config from an initial value or null
264
+ * @param value
265
+ */
266
+ static fromNullable(value) {
267
+ return new ExtConfig(value);
268
+ }
269
+ getClass() {
270
+ return ExtConfig;
271
+ }
272
+ /**
273
+ * shallow copy getter, copies only the first level, references the deeper nodes
274
+ * in a shared manner
275
+ */
276
+ shallowCopy$() {
277
+ const ret = super.shallowCopy$();
278
+ return new ExtConfig(ret);
279
+ }
280
+ /**
281
+ * deep copy, copies all config nodes
282
+ */
283
+ get deepCopy() {
284
+ return new ExtConfig(super.deepCopy$());
285
+ }
286
+ /**
287
+ * helper to remap the namespaces of an array of access paths
288
+ * @param accessPath the access paths to be remapped
289
+ * @private returns an array of access paths with version remapped namespaces
290
+ */
291
+ remap(accessPath) {
292
+ return mona_dish_1.Stream.of(...accessPath).map(key => (0, Const_1.$nsp)(key)).collect(new mona_dish_1.ArrayCollector());
293
+ }
294
+ }
295
+ exports.ExtConfig = ExtConfig;
199
296
  //# sourceMappingURL=ExtDomQ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