jsf.js_next_gen 4.1.0-beta.2 → 4.1.0-beta.21

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 (413) hide show
  1. package/AI_CONTRIBUTIONS.md +71 -0
  2. package/README.md +254 -78
  3. package/api-extractor.faces.json +38 -0
  4. package/dist/docs/assets/hierarchy.js +1 -1
  5. package/dist/docs/assets/navigation.js +1 -1
  6. package/dist/docs/assets/search.js +1 -1
  7. package/dist/docs/functions/faces.ajax.addOnError.html +2 -2
  8. package/dist/docs/functions/faces.ajax.addOnEvent.html +2 -2
  9. package/dist/docs/functions/faces.ajax.request.html +2 -2
  10. package/dist/docs/functions/faces.ajax.response.html +2 -2
  11. package/dist/docs/functions/faces.getClientWindow.html +2 -2
  12. package/dist/docs/functions/faces.getProjectStage.html +2 -2
  13. package/dist/docs/functions/faces.getViewState.html +1 -1
  14. package/dist/docs/functions/faces.push.close.html +1 -1
  15. package/dist/docs/functions/faces.push.init.html +6 -6
  16. package/dist/docs/functions/faces.push.open.html +1 -1
  17. package/dist/docs/functions/faces.util.chain.html +2 -2
  18. package/dist/docs/functions/myfaces.ab.html +3 -3
  19. package/dist/docs/functions/myfaces.onDomReady.html +1 -1
  20. package/dist/docs/functions/myfaces.reserveNamespace.html +1 -1
  21. package/dist/docs/hierarchy.html +1 -1
  22. package/dist/docs/index.html +292 -71
  23. package/dist/docs/interfaces/faces.AjaxData.html +6 -0
  24. package/dist/docs/interfaces/faces.AjaxError.html +18 -0
  25. package/dist/docs/interfaces/faces.AjaxEvent.html +8 -0
  26. package/dist/docs/interfaces/faces.ajax.RequestContext.html +6 -0
  27. package/dist/docs/interfaces/faces.ajax.RequestOptions.html +10 -0
  28. package/dist/docs/modules/faces.ajax.html +1 -1
  29. package/dist/docs/modules/faces.html +1 -1
  30. package/dist/docs/modules/faces.push.html +1 -1
  31. package/dist/docs/modules/faces.util.html +1 -1
  32. package/dist/docs/modules/myfaces.html +1 -1
  33. package/dist/docs/modules.html +1 -1
  34. package/dist/docs/types/faces.AjaxErrorStatus.html +2 -0
  35. package/dist/docs/types/faces.AjaxEventStatus.html +2 -0
  36. package/dist/docs/types/faces.ProjectStage.html +2 -0
  37. package/dist/docs/types/faces.ajax.OnErrorCallback.html +2 -0
  38. package/dist/docs/types/faces.ajax.OnEventCallback.html +2 -0
  39. package/dist/docs/types/faces.push.OnCloseHandler.html +2 -0
  40. package/dist/docs/types/faces.push.OnErrorHandler.html +2 -0
  41. package/dist/docs/types/faces.push.OnMessageHandler.html +2 -0
  42. package/dist/docs/types/faces.push.OnOpenHandler.html +2 -0
  43. package/dist/docs/variables/faces.contextpath.html +1 -1
  44. package/dist/docs/variables/faces.implversion.html +1 -1
  45. package/dist/docs/variables/faces.separatorchar.html +1 -1
  46. package/dist/docs/variables/faces.specversion.html +1 -1
  47. package/dist/docs/variables/myfaces.oam.html +1 -1
  48. package/dist/window/faces-development.js +1801 -499
  49. package/dist/window/faces-development.js.map +1 -1
  50. package/{target/api/_api.js → dist/window/faces.d.ts} +124 -151
  51. package/dist/window/faces.js +1 -1
  52. package/dist/window/faces.js.LICENSE.txt +0 -17
  53. package/dist/window/faces.js.map +1 -1
  54. package/dist/window/jsf-development.js +1806 -513
  55. package/dist/window/jsf-development.js.map +1 -1
  56. package/{target/src/main/typescript/api/_api.js → dist/window/jsf.d.ts} +125 -153
  57. package/dist/window/jsf.js +1 -1
  58. package/dist/window/jsf.js.LICENSE.txt +0 -17
  59. package/dist/window/jsf.js.map +1 -1
  60. package/package.json +22 -18
  61. package/scripts/build-dts.mjs +239 -0
  62. package/src/main/typescript/@types/definitions/index.d.ts +22 -122
  63. package/{target/test/frameworkBase/_ext/monadish/fixtures/test2.js → src/main/typescript/@types/definitions/modules.d.ts} +18 -2
  64. package/src/main/typescript/api/_api.ts +132 -29
  65. package/{target/test/frameworkBase/_ext/monadish/fixtures/test.js → src/main/typescript/api/_api_ae_stub.d.ts} +6 -2
  66. package/src/main/typescript/api/faces.ts +2 -2
  67. package/src/main/typescript/api/jsf.ts +15 -23
  68. package/src/main/typescript/impl/AjaxImpl.ts +15 -15
  69. package/src/main/typescript/impl/PushImpl.ts +139 -69
  70. package/src/main/typescript/impl/core/Const.ts +2 -2
  71. package/src/main/typescript/impl/i18n/Messages.ts +1 -1
  72. package/src/main/typescript/impl/util/Assertions.ts +1 -2
  73. package/src/main/typescript/impl/util/AsyncRunnable.ts +3 -4
  74. package/src/main/typescript/impl/util/ExtDomQuery.ts +19 -19
  75. package/src/main/typescript/impl/util/FileUtils.ts +30 -14
  76. package/src/main/typescript/impl/util/HiddenInputBuilder.ts +34 -34
  77. package/src/main/typescript/impl/util/Lang.ts +19 -22
  78. package/src/main/typescript/impl/util/XhrQueueController.ts +25 -3
  79. package/src/main/typescript/impl/xhrCore/ErrorData.ts +17 -12
  80. package/src/main/typescript/impl/xhrCore/EventData.ts +8 -7
  81. package/src/main/typescript/impl/xhrCore/IResponseProcessor.ts +3 -3
  82. package/src/main/typescript/impl/xhrCore/RequestDataResolver.ts +7 -6
  83. package/src/main/typescript/impl/xhrCore/Response.ts +3 -3
  84. package/src/main/typescript/impl/xhrCore/ResponseDataResolver.ts +0 -38
  85. package/src/main/typescript/impl/xhrCore/ResponseProcessor.ts +17 -15
  86. package/src/main/typescript/impl/xhrCore/XhrFormData.ts +72 -63
  87. package/src/main/typescript/impl/xhrCore/XhrRequest.ts +80 -134
  88. package/src/main/typescript/mona_dish_shim.ts +6 -2
  89. package/src/main/typescript/myfaces/OamSubmit.ts +10 -6
  90. package/src/main/typescript/test/api/JsfPushShimTest.spec.ts +126 -0
  91. package/src/main/typescript/test/api/MyFacesABTest.spec.ts +16 -0
  92. package/src/main/typescript/test/api/PushTypeCompatibility.ts +65 -0
  93. package/src/main/typescript/test/frameworkBase/LangTest.spec.ts +16 -0
  94. package/src/main/typescript/test/frameworkBase/_ext/monadish/DomQueryTest.spec.ts +1 -0
  95. package/src/main/typescript/test/frameworkBase/_ext/monadish/XmlQueryTest.spec.ts +16 -0
  96. package/src/main/typescript/test/frameworkBase/_ext/monadish/markups/tobago-with-header.ts +16 -0
  97. package/src/main/typescript/test/frameworkBase/_ext/monadish/markups/tobago-without-header.ts +16 -0
  98. package/src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.ts +55 -9
  99. package/src/main/typescript/test/frameworkBase/_ext/shared/XmlResponses.ts +16 -0
  100. package/src/main/typescript/test/impl/AssertionsTest.spec.ts +168 -0
  101. package/src/main/typescript/test/impl/FileUtilsTest.spec.ts +126 -0
  102. package/src/main/typescript/test/impl/ImplTest.spec.ts +75 -1
  103. package/src/main/typescript/test/impl/ResponseDataResolverTest.spec.ts +62 -0
  104. package/src/main/typescript/test/impl/util/ExtDomQueryTest.spec.ts +91 -1
  105. package/src/main/typescript/test/impl/util/ExtLangTest.spec.ts +110 -0
  106. package/src/main/typescript/test/impl/util/HiddenInputBuilderTest.spec.ts +74 -0
  107. package/src/main/typescript/test/myfaces/OamSubmit.spec.ts +61 -1
  108. package/src/main/typescript/test/queue/AsynchronousQueueTest.spec.ts +191 -2
  109. package/src/main/typescript/test/xhrCore/ClientWindow.spec.ts +16 -0
  110. package/src/main/typescript/test/xhrCore/ErrorChainTest.spec.ts +14 -0
  111. package/src/main/typescript/test/xhrCore/FakeWebsocket.ts +21 -5
  112. package/src/main/typescript/test/xhrCore/RequestTest.spec.ts +363 -4
  113. package/src/main/typescript/test/xhrCore/ResponseTest.spec.ts +218 -4
  114. package/src/main/typescript/test/xhrCore/TobagoFileUploadTest.spec.ts +1 -1
  115. package/src/main/typescript/test/xhrCore/WebsocketTest.spec.ts +764 -0
  116. package/src/main/typescript/test/xhrCore/XhrFormDataTest.spec.ts +265 -62
  117. package/src/main/typescript/test/xhrCore/XhrRequestProgress.spec.ts +16 -0
  118. package/{target/src/main/typescript/test/xhrCore/FakeWebsocket.js → src/main/typescript/tsconfig.ae.json} +16 -23
  119. package/src/main/typescript/{tsconfig.json → tsconfig.dts.json} +11 -27
  120. package/src/main/typescript/tsconfig.test.json +17 -0
  121. package/tsconfig.api-extractor.json +17 -0
  122. package/.claude/settings.local.json +0 -16
  123. package/.github/workflows/codeql-analysis.yml +0 -83
  124. package/.github/workflows/nodejs.yml +0 -26
  125. package/.mocharc.json +0 -10
  126. package/.nyc_output/384344d4-4f46-455f-84c3-010f829098cb.json +0 -1
  127. package/.nyc_output/a0f90016-f4f9-4039-bb51-57f4f7050541.json +0 -1
  128. package/.nyc_output/db388b5d-0b79-4bce-afd2-001aaf6f0245.json +0 -1
  129. package/.nyc_output/processinfo/384344d4-4f46-455f-84c3-010f829098cb.json +0 -1
  130. package/.nyc_output/processinfo/a0f90016-f4f9-4039-bb51-57f4f7050541.json +0 -1
  131. package/.nyc_output/processinfo/db388b5d-0b79-4bce-afd2-001aaf6f0245.json +0 -1
  132. package/.nyc_output/processinfo/index.json +0 -1
  133. package/.nycrc +0 -6
  134. package/build.cmd +0 -1
  135. package/build.sh +0 -3
  136. package/mvnw +0 -286
  137. package/mvnw.cmd +0 -161
  138. package/plans for 4.0.1.txt +0 -8
  139. package/remap.ts +0 -51
  140. package/src/main/typescript/test/xhrCore/WebsocketTest.ts +0 -221
  141. package/target/api/_api.js.map +0 -1
  142. package/target/api/faces.js +0 -45
  143. package/target/api/faces.js.map +0 -1
  144. package/target/api/jsf.js +0 -56
  145. package/target/api/jsf.js.map +0 -1
  146. package/target/impl/AjaxImpl.js +0 -748
  147. package/target/impl/AjaxImpl.js.map +0 -1
  148. package/target/impl/PushImpl.js +0 -265
  149. package/target/impl/PushImpl.js.map +0 -1
  150. package/target/impl/core/Const.js +0 -177
  151. package/target/impl/core/Const.js.map +0 -1
  152. package/target/impl/core/ImplTypes.js +0 -38
  153. package/target/impl/core/ImplTypes.js.map +0 -1
  154. package/target/impl/i18n/Messages.js +0 -113
  155. package/target/impl/i18n/Messages.js.map +0 -1
  156. package/target/impl/util/Assertions.js +0 -101
  157. package/target/impl/util/Assertions.js.map +0 -1
  158. package/target/impl/util/AsyncRunnable.js +0 -78
  159. package/target/impl/util/AsyncRunnable.js.map +0 -1
  160. package/target/impl/util/ExtDomQuery.js +0 -306
  161. package/target/impl/util/ExtDomQuery.js.map +0 -1
  162. package/target/impl/util/FileUtils.js +0 -98
  163. package/target/impl/util/FileUtils.js.map +0 -1
  164. package/target/impl/util/HiddenInputBuilder.js +0 -83
  165. package/target/impl/util/HiddenInputBuilder.js.map +0 -1
  166. package/target/impl/util/IListener.js +0 -3
  167. package/target/impl/util/IListener.js.map +0 -1
  168. package/target/impl/util/Lang.js +0 -263
  169. package/target/impl/util/Lang.js.map +0 -1
  170. package/target/impl/util/XhrQueueController.js +0 -92
  171. package/target/impl/util/XhrQueueController.js.map +0 -1
  172. package/target/impl/xhrCore/ErrorData.js +0 -87
  173. package/target/impl/xhrCore/ErrorData.js.map +0 -1
  174. package/target/impl/xhrCore/EventData.js +0 -52
  175. package/target/impl/xhrCore/EventData.js.map +0 -1
  176. package/target/impl/xhrCore/IResponseProcessor.js +0 -3
  177. package/target/impl/xhrCore/IResponseProcessor.js.map +0 -1
  178. package/target/impl/xhrCore/RequestDataResolver.js +0 -186
  179. package/target/impl/xhrCore/RequestDataResolver.js.map +0 -1
  180. package/target/impl/xhrCore/ResonseDataResolver.js +0 -104
  181. package/target/impl/xhrCore/ResonseDataResolver.js.map +0 -1
  182. package/target/impl/xhrCore/Response.js +0 -186
  183. package/target/impl/xhrCore/Response.js.map +0 -1
  184. package/target/impl/xhrCore/ResponseDataResolver.js +0 -104
  185. package/target/impl/xhrCore/ResponseDataResolver.js.map +0 -1
  186. package/target/impl/xhrCore/ResponseProcessor.js +0 -468
  187. package/target/impl/xhrCore/ResponseProcessor.js.map +0 -1
  188. package/target/impl/xhrCore/XhrFormData.js +0 -163
  189. package/target/impl/xhrCore/XhrFormData.js.map +0 -1
  190. package/target/impl/xhrCore/XhrRequest.js +0 -433
  191. package/target/impl/xhrCore/XhrRequest.js.map +0 -1
  192. package/target/mona_dish_shim.js +0 -70
  193. package/target/mona_dish_shim.js.map +0 -1
  194. package/target/myfaces/OamSubmit.js +0 -128
  195. package/target/myfaces/OamSubmit.js.map +0 -1
  196. package/target/src/main/typescript/api/_api.js.map +0 -1
  197. package/target/src/main/typescript/api/faces.js +0 -45
  198. package/target/src/main/typescript/api/faces.js.map +0 -1
  199. package/target/src/main/typescript/api/jsf.js +0 -56
  200. package/target/src/main/typescript/api/jsf.js.map +0 -1
  201. package/target/src/main/typescript/impl/AjaxImpl.js +0 -748
  202. package/target/src/main/typescript/impl/AjaxImpl.js.map +0 -1
  203. package/target/src/main/typescript/impl/PushImpl.js +0 -265
  204. package/target/src/main/typescript/impl/PushImpl.js.map +0 -1
  205. package/target/src/main/typescript/impl/core/Const.js +0 -177
  206. package/target/src/main/typescript/impl/core/Const.js.map +0 -1
  207. package/target/src/main/typescript/impl/core/ImplTypes.js +0 -38
  208. package/target/src/main/typescript/impl/core/ImplTypes.js.map +0 -1
  209. package/target/src/main/typescript/impl/i18n/Messages.js +0 -113
  210. package/target/src/main/typescript/impl/i18n/Messages.js.map +0 -1
  211. package/target/src/main/typescript/impl/util/Assertions.js +0 -101
  212. package/target/src/main/typescript/impl/util/Assertions.js.map +0 -1
  213. package/target/src/main/typescript/impl/util/AsyncRunnable.js +0 -78
  214. package/target/src/main/typescript/impl/util/AsyncRunnable.js.map +0 -1
  215. package/target/src/main/typescript/impl/util/ExtDomQuery.js +0 -306
  216. package/target/src/main/typescript/impl/util/ExtDomQuery.js.map +0 -1
  217. package/target/src/main/typescript/impl/util/FileUtils.js +0 -98
  218. package/target/src/main/typescript/impl/util/FileUtils.js.map +0 -1
  219. package/target/src/main/typescript/impl/util/HiddenInputBuilder.js +0 -83
  220. package/target/src/main/typescript/impl/util/HiddenInputBuilder.js.map +0 -1
  221. package/target/src/main/typescript/impl/util/IListener.js +0 -3
  222. package/target/src/main/typescript/impl/util/IListener.js.map +0 -1
  223. package/target/src/main/typescript/impl/util/Lang.js +0 -263
  224. package/target/src/main/typescript/impl/util/Lang.js.map +0 -1
  225. package/target/src/main/typescript/impl/util/XhrQueueController.js +0 -92
  226. package/target/src/main/typescript/impl/util/XhrQueueController.js.map +0 -1
  227. package/target/src/main/typescript/impl/xhrCore/ErrorData.js +0 -87
  228. package/target/src/main/typescript/impl/xhrCore/ErrorData.js.map +0 -1
  229. package/target/src/main/typescript/impl/xhrCore/EventData.js +0 -52
  230. package/target/src/main/typescript/impl/xhrCore/EventData.js.map +0 -1
  231. package/target/src/main/typescript/impl/xhrCore/IResponseProcessor.js +0 -3
  232. package/target/src/main/typescript/impl/xhrCore/IResponseProcessor.js.map +0 -1
  233. package/target/src/main/typescript/impl/xhrCore/RequestDataResolver.js +0 -186
  234. package/target/src/main/typescript/impl/xhrCore/RequestDataResolver.js.map +0 -1
  235. package/target/src/main/typescript/impl/xhrCore/Response.js +0 -186
  236. package/target/src/main/typescript/impl/xhrCore/Response.js.map +0 -1
  237. package/target/src/main/typescript/impl/xhrCore/ResponseDataResolver.js +0 -104
  238. package/target/src/main/typescript/impl/xhrCore/ResponseDataResolver.js.map +0 -1
  239. package/target/src/main/typescript/impl/xhrCore/ResponseProcessor.js +0 -468
  240. package/target/src/main/typescript/impl/xhrCore/ResponseProcessor.js.map +0 -1
  241. package/target/src/main/typescript/impl/xhrCore/XhrFormData.js +0 -163
  242. package/target/src/main/typescript/impl/xhrCore/XhrFormData.js.map +0 -1
  243. package/target/src/main/typescript/impl/xhrCore/XhrRequest.js +0 -433
  244. package/target/src/main/typescript/impl/xhrCore/XhrRequest.js.map +0 -1
  245. package/target/src/main/typescript/mona_dish_shim.js +0 -70
  246. package/target/src/main/typescript/mona_dish_shim.js.map +0 -1
  247. package/target/src/main/typescript/myfaces/OamSubmit.js +0 -128
  248. package/target/src/main/typescript/myfaces/OamSubmit.js.map +0 -1
  249. package/target/src/main/typescript/test/api/MyFacesABTest.spec.js +0 -117
  250. package/target/src/main/typescript/test/api/MyFacesABTest.spec.js.map +0 -1
  251. package/target/src/main/typescript/test/frameworkBase/LangTest.spec.js +0 -123
  252. package/target/src/main/typescript/test/frameworkBase/LangTest.spec.js.map +0 -1
  253. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/DomQueryTest.spec.js +0 -657
  254. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/DomQueryTest.spec.js.map +0 -1
  255. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/LangTest.spec.js +0 -107
  256. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/LangTest.spec.js.map +0 -1
  257. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/MappingProbes.js +0 -106
  258. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/MappingProbes.js.map +0 -1
  259. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/MappingTest.spec.js +0 -39
  260. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/MappingTest.spec.js.map +0 -1
  261. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/MonadTest.spec.js +0 -153
  262. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/MonadTest.spec.js.map +0 -1
  263. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/XmlQueryTest.spec.js +0 -2
  264. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/XmlQueryTest.spec.js.map +0 -1
  265. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/markups/tobago-with-header.js +0 -925
  266. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/markups/tobago-with-header.js.map +0 -1
  267. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/markups/tobago-without-header.js +0 -112
  268. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/markups/tobago-without-header.js.map +0 -1
  269. package/target/src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.js +0 -728
  270. package/target/src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.js.map +0 -1
  271. package/target/src/main/typescript/test/frameworkBase/_ext/shared/XmlResponses.js +0 -296
  272. package/target/src/main/typescript/test/frameworkBase/_ext/shared/XmlResponses.js.map +0 -1
  273. package/target/src/main/typescript/test/impl/ImplTest.spec.js +0 -225
  274. package/target/src/main/typescript/test/impl/ImplTest.spec.js.map +0 -1
  275. package/target/src/main/typescript/test/impl/ImplTest_23.spec.js +0 -143
  276. package/target/src/main/typescript/test/impl/ImplTest_23.spec.js.map +0 -1
  277. package/target/src/main/typescript/test/impl/SeparatorCharsTest.spec.js +0 -106
  278. package/target/src/main/typescript/test/impl/SeparatorCharsTest.spec.js.map +0 -1
  279. package/target/src/main/typescript/test/impl/util/ExtDomQueryTest.spec.js +0 -77
  280. package/target/src/main/typescript/test/impl/util/ExtDomQueryTest.spec.js.map +0 -1
  281. package/target/src/main/typescript/test/myfaces/OamSubmit.spec.js +0 -118
  282. package/target/src/main/typescript/test/myfaces/OamSubmit.spec.js.map +0 -1
  283. package/target/src/main/typescript/test/myfaces/OnLoad.spec.js +0 -57
  284. package/target/src/main/typescript/test/myfaces/OnLoad.spec.js.map +0 -1
  285. package/target/src/main/typescript/test/myfaces/ReserveNamespace.spec.js +0 -60
  286. package/target/src/main/typescript/test/myfaces/ReserveNamespace.spec.js.map +0 -1
  287. package/target/src/main/typescript/test/queue/AsynchronousProbe.js +0 -93
  288. package/target/src/main/typescript/test/queue/AsynchronousProbe.js.map +0 -1
  289. package/target/src/main/typescript/test/queue/AsynchronousQueueTest.spec.js +0 -133
  290. package/target/src/main/typescript/test/queue/AsynchronousQueueTest.spec.js.map +0 -1
  291. package/target/src/main/typescript/test/xhrCore/ClientWindow.spec.js +0 -101
  292. package/target/src/main/typescript/test/xhrCore/ClientWindow.spec.js.map +0 -1
  293. package/target/src/main/typescript/test/xhrCore/ErrorChainTest.spec.js +0 -175
  294. package/target/src/main/typescript/test/xhrCore/ErrorChainTest.spec.js.map +0 -1
  295. package/target/src/main/typescript/test/xhrCore/EventTests.spec.js +0 -184
  296. package/target/src/main/typescript/test/xhrCore/EventTests.spec.js.map +0 -1
  297. package/target/src/main/typescript/test/xhrCore/FakeWebsocket.js.map +0 -1
  298. package/target/src/main/typescript/test/xhrCore/FileUploadTest.spec.js +0 -181
  299. package/target/src/main/typescript/test/xhrCore/FileUploadTest.spec.js.map +0 -1
  300. package/target/src/main/typescript/test/xhrCore/NamespacesRequestTest.spec.js +0 -226
  301. package/target/src/main/typescript/test/xhrCore/NamespacesRequestTest.spec.js.map +0 -1
  302. package/target/src/main/typescript/test/xhrCore/OamSubmitTest.spec.js +0 -199
  303. package/target/src/main/typescript/test/xhrCore/OamSubmitTest.spec.js.map +0 -1
  304. package/target/src/main/typescript/test/xhrCore/RequestParamsTest.spec.js +0 -567
  305. package/target/src/main/typescript/test/xhrCore/RequestParamsTest.spec.js.map +0 -1
  306. package/target/src/main/typescript/test/xhrCore/RequestTest.spec.js +0 -845
  307. package/target/src/main/typescript/test/xhrCore/RequestTest.spec.js.map +0 -1
  308. package/target/src/main/typescript/test/xhrCore/RequestTest_23.spec.js +0 -382
  309. package/target/src/main/typescript/test/xhrCore/RequestTest_23.spec.js.map +0 -1
  310. package/target/src/main/typescript/test/xhrCore/ResponseTest.spec.js +0 -667
  311. package/target/src/main/typescript/test/xhrCore/ResponseTest.spec.js.map +0 -1
  312. package/target/src/main/typescript/test/xhrCore/ResponseTest23.spec.js +0 -367
  313. package/target/src/main/typescript/test/xhrCore/ResponseTest23.spec.js.map +0 -1
  314. package/target/src/main/typescript/test/xhrCore/ShadowDomTest.spec.js +0 -123
  315. package/target/src/main/typescript/test/xhrCore/ShadowDomTest.spec.js.map +0 -1
  316. package/target/src/main/typescript/test/xhrCore/TobagoFileUploadTest.spec.js +0 -147
  317. package/target/src/main/typescript/test/xhrCore/TobagoFileUploadTest.spec.js.map +0 -1
  318. package/target/src/main/typescript/test/xhrCore/WebsocketTest.js +0 -207
  319. package/target/src/main/typescript/test/xhrCore/WebsocketTest.js.map +0 -1
  320. package/target/src/main/typescript/test/xhrCore/XhrFormDataTest.spec.js +0 -149
  321. package/target/src/main/typescript/test/xhrCore/XhrFormDataTest.spec.js.map +0 -1
  322. package/target/src/main/typescript/test/xhrCore/XhrRequestProgress.spec.js +0 -130
  323. package/target/src/main/typescript/test/xhrCore/XhrRequestProgress.spec.js.map +0 -1
  324. package/target/test/api/MyFacesABTest.spec.js +0 -117
  325. package/target/test/api/MyFacesABTest.spec.js.map +0 -1
  326. package/target/test/frameworkBase/LangTest.spec.js +0 -123
  327. package/target/test/frameworkBase/LangTest.spec.js.map +0 -1
  328. package/target/test/frameworkBase/_ext/monadish/DomQueryTest.spec.js +0 -657
  329. package/target/test/frameworkBase/_ext/monadish/DomQueryTest.spec.js.map +0 -1
  330. package/target/test/frameworkBase/_ext/monadish/LangTest.spec.js +0 -107
  331. package/target/test/frameworkBase/_ext/monadish/LangTest.spec.js.map +0 -1
  332. package/target/test/frameworkBase/_ext/monadish/MappingProbes.js +0 -106
  333. package/target/test/frameworkBase/_ext/monadish/MappingProbes.js.map +0 -1
  334. package/target/test/frameworkBase/_ext/monadish/MappingTest.spec.js +0 -39
  335. package/target/test/frameworkBase/_ext/monadish/MappingTest.spec.js.map +0 -1
  336. package/target/test/frameworkBase/_ext/monadish/MonadTest.spec.js +0 -153
  337. package/target/test/frameworkBase/_ext/monadish/MonadTest.spec.js.map +0 -1
  338. package/target/test/frameworkBase/_ext/monadish/XmlQueryTest.spec.js +0 -1
  339. package/target/test/frameworkBase/_ext/monadish/XmlQueryTest.spec.js.map +0 -1
  340. package/target/test/frameworkBase/_ext/monadish/fixtures/test.js.map +0 -1
  341. package/target/test/frameworkBase/_ext/monadish/fixtures/test2.js.map +0 -1
  342. package/target/test/frameworkBase/_ext/monadish/markups/tobago-with-header.js +0 -925
  343. package/target/test/frameworkBase/_ext/monadish/markups/tobago-with-header.js.map +0 -1
  344. package/target/test/frameworkBase/_ext/monadish/markups/tobago-without-header.js +0 -112
  345. package/target/test/frameworkBase/_ext/monadish/markups/tobago-without-header.js.map +0 -1
  346. package/target/test/frameworkBase/_ext/shared/StandardInits.js +0 -728
  347. package/target/test/frameworkBase/_ext/shared/StandardInits.js.map +0 -1
  348. package/target/test/frameworkBase/_ext/shared/XmlResponses.js +0 -296
  349. package/target/test/frameworkBase/_ext/shared/XmlResponses.js.map +0 -1
  350. package/target/test/frameworkBase/_ext/shared/fixtures/js/tobago.js +0 -16
  351. package/target/test/frameworkBase/_ext/shared/fixtures/js/tobago.js.map +0 -1
  352. package/target/test/impl/ImplTest.spec.js +0 -225
  353. package/target/test/impl/ImplTest.spec.js.map +0 -1
  354. package/target/test/impl/ImplTest_23.spec.js +0 -143
  355. package/target/test/impl/ImplTest_23.spec.js.map +0 -1
  356. package/target/test/impl/SeparatorCharsTest.spec.js +0 -106
  357. package/target/test/impl/SeparatorCharsTest.spec.js.map +0 -1
  358. package/target/test/impl/util/ExtDomQueryTest.spec.js +0 -77
  359. package/target/test/impl/util/ExtDomQueryTest.spec.js.map +0 -1
  360. package/target/test/myfaces/OamSubmit.spec.js +0 -118
  361. package/target/test/myfaces/OamSubmit.spec.js.map +0 -1
  362. package/target/test/myfaces/OnLoad.spec.js +0 -57
  363. package/target/test/myfaces/OnLoad.spec.js.map +0 -1
  364. package/target/test/myfaces/ReserveNamespace.spec.js +0 -60
  365. package/target/test/myfaces/ReserveNamespace.spec.js.map +0 -1
  366. package/target/test/queue/AsynchronousProbe.js +0 -93
  367. package/target/test/queue/AsynchronousProbe.js.map +0 -1
  368. package/target/test/queue/AsynchronousQueueTest.spec.js +0 -133
  369. package/target/test/queue/AsynchronousQueueTest.spec.js.map +0 -1
  370. package/target/test/xhrCore/ClientWindow.spec.js +0 -101
  371. package/target/test/xhrCore/ClientWindow.spec.js.map +0 -1
  372. package/target/test/xhrCore/ErrorChainTest.spec.js +0 -175
  373. package/target/test/xhrCore/ErrorChainTest.spec.js.map +0 -1
  374. package/target/test/xhrCore/EventTests.spec.js +0 -184
  375. package/target/test/xhrCore/EventTests.spec.js.map +0 -1
  376. package/target/test/xhrCore/FakeWebsocket.js +0 -38
  377. package/target/test/xhrCore/FakeWebsocket.js.map +0 -1
  378. package/target/test/xhrCore/FileUploadTest.spec.js +0 -181
  379. package/target/test/xhrCore/FileUploadTest.spec.js.map +0 -1
  380. package/target/test/xhrCore/NamespacesRequestTest.spec.js +0 -226
  381. package/target/test/xhrCore/NamespacesRequestTest.spec.js.map +0 -1
  382. package/target/test/xhrCore/OamSubmitTest.spec.js +0 -199
  383. package/target/test/xhrCore/OamSubmitTest.spec.js.map +0 -1
  384. package/target/test/xhrCore/RequestParamsTest.spec.js +0 -567
  385. package/target/test/xhrCore/RequestParamsTest.spec.js.map +0 -1
  386. package/target/test/xhrCore/RequestTest.spec.js +0 -845
  387. package/target/test/xhrCore/RequestTest.spec.js.map +0 -1
  388. package/target/test/xhrCore/RequestTest_23.spec.js +0 -382
  389. package/target/test/xhrCore/RequestTest_23.spec.js.map +0 -1
  390. package/target/test/xhrCore/ResponseTest.spec.js +0 -667
  391. package/target/test/xhrCore/ResponseTest.spec.js.map +0 -1
  392. package/target/test/xhrCore/ResponseTest23.spec.js +0 -367
  393. package/target/test/xhrCore/ResponseTest23.spec.js.map +0 -1
  394. package/target/test/xhrCore/ShadowDomTest.spec.js +0 -123
  395. package/target/test/xhrCore/ShadowDomTest.spec.js.map +0 -1
  396. package/target/test/xhrCore/TobagoFileUploadTest.spec.js +0 -147
  397. package/target/test/xhrCore/TobagoFileUploadTest.spec.js.map +0 -1
  398. package/target/test/xhrCore/WebsocketTest.js +0 -207
  399. package/target/test/xhrCore/WebsocketTest.js.map +0 -1
  400. package/target/test/xhrCore/XhrFormDataTest.spec.js +0 -149
  401. package/target/test/xhrCore/XhrFormDataTest.spec.js.map +0 -1
  402. package/target/test/xhrCore/XhrRequestProgress.spec.js +0 -130
  403. package/target/test/xhrCore/XhrRequestProgress.spec.js.map +0 -1
  404. package/target/test/xhrCore/fixtures/addedViewHead1.js +0 -17
  405. package/target/test/xhrCore/fixtures/addedViewHead1.js.map +0 -1
  406. package/target/test/xhrCore/fixtures/addedViewHead2.js +0 -17
  407. package/target/test/xhrCore/fixtures/addedViewHead2.js.map +0 -1
  408. package/target/test/xhrCore/fixtures/addedViewHead3.js +0 -17
  409. package/target/test/xhrCore/fixtures/addedViewHead3.js.map +0 -1
  410. package/target/test/xhrCore/fixtures/nonce_script.js +0 -17
  411. package/target/test/xhrCore/fixtures/nonce_script.js.map +0 -1
  412. package/tsconfig.json +0 -9
  413. package/webpack.config.ts +0 -54
@@ -1 +0,0 @@
1
- {"version":3,"file":"ErrorData.js","sourceRoot":"","sources":["../../../../../../src/main/typescript/impl/xhrCore/ErrorData.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACH,yCASuB;AACvB,yCAAyD;AAEzD,2CAAsC;AACtC,uCAAqC;AACrC,MAAM,UAAU,GAAG,cAAO,CAAC,UAAU,CAAC;AAGtC,IAAY,SAKX;AALD,WAAY,SAAS;IACjB,yCAA4B,CAAA;IAC5B,qCAAwB,CAAA;IACxB,yCAA4B,CAAA;IAC5B,gCAAmB,CAAA;AACvB,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AAED;;;;;;;;GAQG;AACH,MAAa,SAAU,SAAQ,qBAAS;IAkBpC,YAAY,MAAwB,EAAE,SAAiB,EAAE,YAAoB,EAAE,eAAuB,IAAI,EAAE,cAAwB,IAAI,EAAE,eAAuB,CAAC,CAAC,EAAE,iBAAyB,IAAI,EAAG,IAAI,GAAG,SAAS,CAAC,YAAY;QAC9N,KAAK,EAAE,CAAC;QAjBZ,SAAI,GAAW,OAAO,CAAC;QAmBnB,4DAA4D;QAC5D,+FAA+F;QAC/F,IAAI,CAAC,MAAM,GAAG,cAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC;QACzD,IAAI,CAAC,IAAI,GAAG,aAAK,CAAC;QAClB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAE3B,qGAAqG;QACrG,IAAI,CAAC,YAAY,GAAG,CAAC,IAAI,IAAI,SAAS,CAAC,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CAAC,CAAC;IACvH,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,OAAe,EAAE,SAAiB,EAAE,YAAuB,SAAS,CAAC,YAAY;QAEhG,IAAI,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAEzB,IAAI,MAAM,GAAG,MAAM,CAAC,OAAO,EAAE,cAAM,CAAC,CAAC;QACrC,IAAI,SAAS,GAAG,MAAM,CAAC,OAAO,EAAE,kBAAU,CAAC,CAAC;QAC5C,IAAI,YAAY,GAAG,MAAM,CAAC,OAAO,EAAE,qBAAa,CAAC,CAAC;QAClD,IAAI,MAAM,GAAG,MAAM,CAAC,OAAO,EAAE,cAAM,CAAC,CAAC;QACrC,IAAI,YAAY,GAAG,MAAM,CAAC,OAAO,EAAE,qBAAa,CAAC,CAAC;QAClD,IAAI,WAAW,GAAa,OAAO,CAAC,KAAK,CAAC,oBAAY,CAAC,CAAC,KAAK,CAAC;QAG9D,OAAO,IAAI,SAAS,CAAC,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;IACnH,CAAC;IAEO,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK;QAChC,OAAO,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,iBAAS,CAAC,CAAC,KAAK,CAAC,CAAC;IACpE,CAAC;IAED,MAAM,CAAC,eAAe,CAAC,OAAe;QAClC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC;IACzC,CAAC;CAEJ;AA5ED,8BA4EC"}
@@ -1,52 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EventData = void 0;
4
- /*! Licensed to the Apache Software Foundation (ASF) under one or more
5
- * contributor license agreements. See the NOTICE file distributed with
6
- * this work for additional information regarding copyright ownership.
7
- * The ASF licenses this file to you under the Apache License, Version 2.0
8
- * (the "License"); you may not use this file except in compliance with
9
- * the License. You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */
19
- const mona_dish_1 = require("mona-dish");
20
- const Const_1 = require("../core/Const");
21
- class EventData {
22
- static createFromRequest(request, internalContext, context, /*event name*/ name) {
23
- let eventData = new EventData();
24
- let internalSource = "_internal._source";
25
- eventData.type = Const_1.EVENT;
26
- eventData.status = name;
27
- eventData.source = internalContext.getIf("_source", "_element").value;
28
- // this fixes the issue that the source element is not present anymore at done
29
- // at page transitions
30
- if (!eventData.source) {
31
- let sourceId = context.getIf(Const_1.SOURCE)
32
- .orElseLazy(() => context.getIf(Const_1.P_AJAX_SOURCE).value)
33
- .orElseLazy(() => context.getIf(Const_1.CTX_PARAM_REQ_PASS_THR, Const_1.P_AJAX_SOURCE).value)
34
- .value;
35
- if (sourceId) {
36
- eventData.source = mona_dish_1.DQ.byId(sourceId, true).first().value.value;
37
- }
38
- if (eventData.source) {
39
- //we store the event source for later references
40
- internalContext.assign("_source", "_element").value = eventData.source;
41
- }
42
- }
43
- if (name !== Const_1.BEGIN) {
44
- eventData.responseCode = request === null || request === void 0 ? void 0 : request.status;
45
- eventData.responseText = request === null || request === void 0 ? void 0 : request.responseText;
46
- eventData.responseXML = request === null || request === void 0 ? void 0 : request.responseXML;
47
- }
48
- return eventData;
49
- }
50
- }
51
- exports.EventData = EventData;
52
- //# sourceMappingURL=EventData.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EventData.js","sourceRoot":"","sources":["../../../../../../src/main/typescript/impl/xhrCore/EventData.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACH,yCAAqC;AACrC,yCAA0F;AAE1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AAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY,CAAC;YAC/C,SAAS,CAAC,WAAW,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,CAAC;QACjD,CAAC;QACD,OAAO,SAAS,CAAC;IACrB,CAAC;CACJ;AAvCD,8BAuCC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=IResponseProcessor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IResponseProcessor.js","sourceRoot":"","sources":["../../../../../../src/main/typescript/impl/xhrCore/IResponseProcessor.ts"],"names":[],"mappings":""}
@@ -1,186 +0,0 @@
1
- "use strict";
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
- */
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.resolveHandlerFunc = resolveHandlerFunc;
19
- exports.resolveTargetUrl = resolveTargetUrl;
20
- exports.resolveFinalUrl = resolveFinalUrl;
21
- exports.resolveForm = resolveForm;
22
- exports.resolveViewId = resolveViewId;
23
- exports.resolveViewRootId = resolveViewRootId;
24
- exports.resoveNamingContainerMapper = resoveNamingContainerMapper;
25
- exports.resolveTimeout = resolveTimeout;
26
- exports.resolveDelay = resolveDelay;
27
- exports.resolveWindowId = resolveWindowId;
28
- exports.getEventTarget = getEventTarget;
29
- exports.resolveDefaults = resolveDefaults;
30
- const mona_dish_1 = require("mona-dish");
31
- const Const_1 = require("../core/Const");
32
- const Lang_1 = require("../util/Lang");
33
- const ExtDomQuery_1 = require("../util/ExtDomQuery");
34
- const Assertions_1 = require("../util/Assertions");
35
- /**
36
- * Resolver functions for various aspects of the request data
37
- *
38
- * stateless because it might be called from various
39
- * parts of the response classes
40
- */
41
- /**
42
- * resolves the event handlers lazily
43
- * so that if some decoration happens in between we can deal with it
44
- *
45
- * @param requestContext
46
- * @param responseContext
47
- * @param funcName
48
- */
49
- function resolveHandlerFunc(requestContext, responseContext, funcName) {
50
- responseContext = responseContext || new mona_dish_1.Config({});
51
- return responseContext.getIf(funcName)
52
- .orElseLazy(() => requestContext.getIf(funcName).value)
53
- .orElse(Const_1.EMPTY_FUNC).value;
54
- }
55
- function resolveTargetUrl(srcFormElement) {
56
- return (typeof srcFormElement.elements[Const_1.ENCODED_URL] == 'undefined') ?
57
- srcFormElement.action :
58
- srcFormElement.elements[Const_1.ENCODED_URL].value;
59
- }
60
- function resolveFinalUrl(sourceForm, formData, ajaxType = Const_1.REQ_TYPE_POST) {
61
- let targetUrl = resolveTargetUrl(sourceForm.getAsElem(0).value);
62
- return targetUrl + (ajaxType == Const_1.REQ_TYPE_GET ? "?" + formData.toString() : Const_1.EMPTY_STR);
63
- }
64
- /**
65
- * form resolution the same way our old implementation did
66
- * it is either the id or the parent form of the element or an embedded form
67
- * of the element
68
- *
69
- * @param elem
70
- * @param event
71
- */
72
- function resolveForm(elem, event) {
73
- return Lang_1.ExtLang.getForm(elem.getAsElem(0).value, event);
74
- }
75
- function resolveViewId(form) {
76
- const viewState = form.querySelectorAll(`input[type='hidden'][name*='${(0, Const_1.$nsp)(Const_1.P_VIEWSTATE)}']`).id.orElse("").value;
77
- const divider = (0, Const_1.$faces)().separatorchar;
78
- const viewId = viewState.split(divider, 2)[0];
79
- const viewStateViewId = viewId.indexOf((0, Const_1.$nsp)(Const_1.P_VIEWSTATE)) === -1 ? viewId : "";
80
- // myfaces specific, we in non portlet environments prepend the viewId
81
- // even without being in a naming container, the other components ignore that
82
- return form.id.value.indexOf(viewStateViewId) === 0 ? viewStateViewId : "";
83
- }
84
- function resolveViewRootId(form) {
85
- const viewState = form.querySelectorAll(`input[type='hidden'][name*='${(0, Const_1.$nsp)(Const_1.P_VIEWSTATE)}']`).attr("name").orElse("").value;
86
- const divider = (0, Const_1.$faces)().separatorchar;
87
- const viewId = viewState.split(divider, 2)[0];
88
- //different to the identifier the form id is never prepended to the viewstate
89
- return viewId.indexOf((0, Const_1.$nsp)(Const_1.P_VIEWSTATE)) === -1 ? viewId : "";
90
- }
91
- /**
92
- * as per jsdoc before the request it must be ensured that every post argument
93
- * is prefixed with the naming container id (there is an exception in mojarra with
94
- * the element=element param, which we have to follow here as well.
95
- * (inputs are prefixed by name anyway normally this only affects our standard parameters)
96
- * @private
97
- */
98
- function resoveNamingContainerMapper(internalContext) {
99
- const isNamedViewRoot = internalContext.getIf(Const_1.NAMED_VIEWROOT).isPresent();
100
- if (!isNamedViewRoot) {
101
- return (key, value) => [key, value];
102
- }
103
- const partialId = internalContext.getIf(Const_1.NAMING_CONTAINER_ID).value;
104
- const SEP = (0, Const_1.$faces)().separatorchar;
105
- const prefix = partialId + SEP;
106
- return (key, value) => (key.indexOf(prefix) == 0) ? [key, value] : [prefix + key, value];
107
- }
108
- function resolveTimeout(options) {
109
- var _a;
110
- let getCfg = Lang_1.ExtLang.getLocalOrGlobalConfig;
111
- return (_a = options.getIf(Const_1.CTX_OPTIONS_TIMEOUT).value) !== null && _a !== void 0 ? _a : getCfg(options.value, Const_1.CTX_OPTIONS_TIMEOUT, 0);
112
- }
113
- /**
114
- * resolve the delay from the options and/or the request context and or the configuration
115
- *
116
- * @param options ... the options object, in most cases it will host the delay value
117
- */
118
- function resolveDelay(options) {
119
- // null, 'none', or undefined will automatically be mapped to 0 aka no delay
120
- // the config delay will be dropped not needed anymore, it does not really
121
- // make sense anymore now that it is part of a local spec
122
- let ret = options.getIf(Const_1.CTX_OPTIONS_DELAY).orElse(0).value;
123
- // if delay === none, no delay must be used, aka delay 0
124
- ret = (Const_1.DELAY_NONE === ret) ? 0 : ret;
125
- // negative, or invalid values will automatically get a js exception
126
- Assertions_1.Assertions.assertDelay(ret);
127
- return ret;
128
- }
129
- /**
130
- * resolves the window-id from various sources
131
- *
132
- * @param options
133
- */
134
- function resolveWindowId(options) {
135
- var _a, _b;
136
- return (_b = (_a = options === null || options === void 0 ? void 0 : options.value) === null || _a === void 0 ? void 0 : _a.windowId) !== null && _b !== void 0 ? _b : ExtDomQuery_1.ExtDomQuery.windowId.value;
137
- }
138
- /**
139
- * cross port from the dojo lib
140
- * browser save event resolution
141
- * @param evt the event object
142
- * (with a fallback for ie events if none is present)
143
- * @deprecated soon will be removed
144
- */
145
- function getEventTarget(evt) {
146
- var _a, _b;
147
- // ie6 and 7 fallback
148
- let finalEvent = evt;
149
- /*
150
- * evt source is defined in the jsf events
151
- * seems like some component authors use our code,
152
- * so we add it here see also
153
- * https://issues.apache.org/jira/browse/MYFACES-2458
154
- * not entirely a bug but makes sense to add this
155
- * behavior. I don´t use it that way but nevertheless it
156
- * does not break anything so why not
157
- */
158
- let t = (_b = (_a = finalEvent === null || finalEvent === void 0 ? void 0 : finalEvent.srcElement) !== null && _a !== void 0 ? _a : finalEvent === null || finalEvent === void 0 ? void 0 : finalEvent.target) !== null && _b !== void 0 ? _b : finalEvent === null || finalEvent === void 0 ? void 0 : finalEvent.source;
159
- while ((t) && (t.nodeType != 1)) {
160
- t = t.parentNode;
161
- }
162
- return t;
163
- }
164
- /**
165
- * resolves a bunch of default values
166
- * which can be further processed from the given
167
- * call parameters of faces.ajax.request
168
- *
169
- * @param event
170
- * @param opts
171
- * @param el
172
- */
173
- function resolveDefaults(event, opts, el = null) {
174
- var _a;
175
- //deep copy the options, so that further transformations to not backfire into the callers
176
- const elem = mona_dish_1.DQ.byId(el || event.target, true);
177
- const options = new ExtDomQuery_1.ExtConfig(opts).deepCopy;
178
- return {
179
- options: options,
180
- elem: elem,
181
- elementId: elem.id.value,
182
- windowId: resolveWindowId(options),
183
- isResetValues: true === ((_a = options.value) === null || _a === void 0 ? void 0 : _a.resetValues)
184
- };
185
- }
186
- //# sourceMappingURL=RequestDataResolver.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RequestDataResolver.js","sourceRoot":"","sources":["../../../../../../src/main/typescript/impl/xhrCore/RequestDataResolver.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAqCH,gDAKC;AAED,4CAIC;AAED,0CAIC;AAUD,kCAEC;AAED,sCAQC;AAED,8CAMC;AASD,kEASC;AAED,wCAGC;AAOD,oCAUC;AAOD,0CAEC;AASD,wCAiBC;AAWD,0CAWC;AAnLD,yCAA+C;AAC/C,yCAYuB;AAEvB,uCAAqC;AACrC,qDAA2D;AAC3D,mDAA8C;AAG9C;;;;;GAKG;AAEH;;;;;;;GAOG;AACH,SAAgB,kBAAkB,CAAC,cAAsB,EAAE,eAAuB,EAAE,QAAgB;IAChG,eAAe,GAAG,eAAe,IAAI,IAAI,kBAAM,CAAC,EAAE,CAAC,CAAC;IACpD,OAAO,eAAe,CAAC,KAAK,CAAC,QAAQ,CAAC;SACjC,UAAU,CAAC,GAAG,EAAE,CAAA,cAAc,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC;SACrD,MAAM,CAAC,kBAAU,CAAC,CAAC,KAAK,CAAC;AAClC,CAAC;AAED,SAAgB,gBAAgB,CAAC,cAA+B;IAC5D,OAAO,CAAC,OAAO,cAAc,CAAC,QAAQ,CAAC,mBAAW,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC;QACjE,cAAc,CAAC,MAAM,CAAC,CAAC;QACvB,cAAc,CAAC,QAAQ,CAAC,mBAAW,CAAC,CAAC,KAAK,CAAC;AACnD,CAAC;AAED,SAAgB,eAAe,CAAC,UAAoB,EAAE,QAAqB,EAAE,QAAQ,GAAG,qBAAa;IACjG,IAAI,SAAS,GAAG,gBAAgB,CAAkB,UAAU,C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ACH,SAAgB,eAAe,CAAC,KAAY,EAAE,IAA+B,EAAG,KAAuB,IAAI;;IACvG,yFAAyF;IACzF,MAAM,IAAI,GAAG,cAAE,CAAC,IAAI,CAAC,EAAE,IAAa,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACxD,MAAM,OAAO,GAAG,IAAI,uBAAS,CAAC,IAAI,CAAC,CAAC,QAAqB,CAAC;IAC1D,OAAO;QACH,OAAO,EAAE,OAAO;QAChB,IAAI,EAAE,IAAI;QACV,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,KAAK;QACxB,QAAQ,EAAE,eAAe,CAAC,OAAO,CAAC;QAClC,aAAa,EAAE,IAAI,MAAK,MAAA,OAAO,CAAC,KAAK,0CAAE,WAAW,CAAA;KACrD,CAAC;AACN,CAAC"}
@@ -1,186 +0,0 @@
1
- "use strict";
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
- */
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.Response = void 0;
19
- const mona_dish_1 = require("mona-dish");
20
- const ResponseProcessor_1 = require("./ResponseProcessor");
21
- const Const_1 = require("../core/Const");
22
- const ResponseDataResolver_1 = require("./ResponseDataResolver");
23
- const ExtDomQuery_1 = require("../util/ExtDomQuery");
24
- var Response;
25
- (function (Response) {
26
- /**
27
- * Standardized faces.ts response
28
- * this one is called straight from faces.ts.response
29
- *
30
- * The processing follows the spec by going for the responseXML
31
- * and processing its tags
32
- *
33
- * @param {XMLHttpRequest} request (xhrRequest) - xhr request object
34
- * @param context {Context} context (Map) - AJAX context
35
- *
36
- */
37
- function processResponse(request, context) {
38
- let req = ExtDomQuery_1.ExtConfig.fromNullable(request);
39
- let { externalContext, internalContext } = (0, ResponseDataResolver_1.resolveContexts)(context);
40
- let responseXML = (0, ResponseDataResolver_1.resolveResponseXML)(req);
41
- let responseProcessor = new ResponseProcessor_1.ResponseProcessor(req, externalContext, internalContext);
42
- internalContext.assign(Const_1.RESPONSE_XML).value = responseXML;
43
- // we now process the partial tags, or in none given raise an error
44
- responseXML.querySelectorAll(Const_1.XML_TAG_PARTIAL_RESP)
45
- .each(item => processPartialTag(item, responseProcessor, internalContext));
46
- // We now process the viewStates, client windows and the elements to be evaluated are delayed.
47
- // The reason for this is that often it is better
48
- // to wait until the document has caught up before
49
- // doing any evaluations even on embedded scripts.
50
- // Usually this does not matter, the client window comes in almost last always anyway
51
- // we maybe drop this deferred assignment in the future, but myfaces did it until now.
52
- responseProcessor.updateNamedViewRootState();
53
- responseProcessor.fixViewStates();
54
- responseProcessor.fixClientWindow();
55
- responseProcessor.globalEval();
56
- responseProcessor.done();
57
- }
58
- Response.processResponse = processResponse;
59
- /**
60
- * highest node partial-response from there the main operations are triggered
61
- */
62
- function processPartialTag(node, responseProcessor, internalContext) {
63
- /*
64
- https://javaee.github.io/javaserverfaces/docs/2.2/javadocs/web-partialresponse.html#ns_xsd
65
- The "partial-response" element is the root of the partial response information hierarchy,
66
- and contains nested elements for all possible elements that can exist in the response.
67
- This element must have an "id" attribute whose value is the return from calling getContainerClientId()
68
- on the UIViewRoot to which this response pertains.
69
- */
70
- // we can determine whether we are in a naming container scenario by checking whether the passed view id is present in the page
71
- // under or in body as identifier
72
- var _a;
73
- let partialId = (_a = node === null || node === void 0 ? void 0 : node.id) === null || _a === void 0 ? void 0 : _a.value;
74
- internalContext.assignIf(!!partialId, Const_1.NAMING_CONTAINER_ID).value = partialId; // second case mojarra
75
- // there must be at least one container viewstate element resembling the viewroot that we know
76
- // this is named
77
- responseProcessor.updateNamedViewRootState();
78
- const SEL_SUB_TAGS = [Const_1.XML_TAG_ERROR, Const_1.XML_TAG_REDIRECT, Const_1.XML_TAG_CHANGES].join(",");
79
- // now we can process the main operations
80
- node.querySelectorAll(SEL_SUB_TAGS).each((node) => {
81
- switch (node.tagName.value) {
82
- case Const_1.XML_TAG_ERROR:
83
- responseProcessor.error(node);
84
- break;
85
- case Const_1.XML_TAG_REDIRECT:
86
- responseProcessor.redirect(node);
87
- break;
88
- case Const_1.XML_TAG_CHANGES:
89
- processChangesTag(node, responseProcessor);
90
- break;
91
- }
92
- });
93
- }
94
- let processInsert = function (responseProcessor, node) {
95
- // path1 insert after as child tags
96
- if (node.querySelectorAll([Const_1.XML_TAG_BEFORE, Const_1.XML_TAG_AFTER].join(",")).length) {
97
- responseProcessor.insertWithSubTags(node);
98
- }
99
- else { // insert before after with id
100
- responseProcessor.insert(node);
101
- }
102
- };
103
- /**
104
- * next level changes tag
105
- *
106
- * @param node
107
- * @param responseProcessor
108
- */
109
- function processChangesTag(node, responseProcessor) {
110
- const ALLOWED_TAGS = [Const_1.XML_TAG_UPDATE, Const_1.XML_TAG_EVAL, Const_1.XML_TAG_INSERT, Const_1.XML_TAG_DELETE, Const_1.XML_TAG_ATTRIBUTES, Const_1.XML_TAG_EXTENSION].join(", ");
111
- node.querySelectorAll(ALLOWED_TAGS).each((node) => {
112
- switch (node.tagName.value) {
113
- case Const_1.XML_TAG_UPDATE:
114
- processUpdateTag(node, responseProcessor);
115
- break;
116
- case Const_1.XML_TAG_EVAL:
117
- responseProcessor.eval(node);
118
- break;
119
- case Const_1.XML_TAG_INSERT:
120
- processInsert(responseProcessor, node);
121
- break;
122
- case Const_1.XML_TAG_DELETE:
123
- responseProcessor.delete(node);
124
- break;
125
- case Const_1.XML_TAG_ATTRIBUTES:
126
- responseProcessor.attributes(node);
127
- break;
128
- case Const_1.XML_TAG_EXTENSION:
129
- break;
130
- }
131
- });
132
- return true;
133
- }
134
- /**
135
- * checks and stores a state update for delayed processing
136
- *
137
- * @param responseProcessor the response processor to perform the store operation
138
- * @param node the xml node to check for the state
139
- *
140
- * @private
141
- */
142
- function storeState(responseProcessor, node) {
143
- return responseProcessor.processViewState(node) || responseProcessor.processClientWindow(node);
144
- }
145
- /**
146
- * branch tag update. drill further down into the updates
147
- * special case viewState in that case it is a leaf
148
- * and the viewState must be processed
149
- *
150
- * @param node
151
- * @param responseProcessor
152
- */
153
- function processUpdateTag(node, responseProcessor) {
154
- // early state storing, if no state we perform a normal update cycle
155
- if (!storeState(responseProcessor, node)) {
156
- handleElementUpdate(node, responseProcessor);
157
- }
158
- }
159
- /**
160
- * element update
161
- *
162
- * @param node
163
- * @param responseProcessor
164
- */
165
- function handleElementUpdate(node, responseProcessor) {
166
- let cdataBlock = node.cDATAAsString;
167
- switch (node.id.value) {
168
- case (0, Const_1.$nsp)(Const_1.P_VIEWROOT):
169
- responseProcessor.replaceViewRoot(mona_dish_1.DQ.fromMarkup(cdataBlock.substring(cdataBlock.indexOf("<html"))));
170
- break;
171
- case (0, Const_1.$nsp)(Const_1.P_VIEWHEAD):
172
- responseProcessor.replaceHead(mona_dish_1.DQ.fromMarkup(cdataBlock));
173
- break;
174
- case (0, Const_1.$nsp)(Const_1.P_VIEWBODY):
175
- responseProcessor.replaceBody(mona_dish_1.DQ.fromMarkup(cdataBlock));
176
- break;
177
- case (0, Const_1.$nsp)(Const_1.P_RESOURCE):
178
- responseProcessor.addToHead(mona_dish_1.DQ.fromMarkup(cdataBlock));
179
- break;
180
- default: // htmlItem replacement
181
- responseProcessor.update(node, cdataBlock);
182
- break;
183
- }
184
- }
185
- })(Response || (exports.Response = Response = {}));
186
- //# sourceMappingURL=Response.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../../../src/main/typescript/impl/xhrCore/Response.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;A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,CAAC;IAED;;;;;OAKG;IACH,SAAS,mBAAmB,CAAC,IAAc,EAAE,iBAAqC;QAC9E,IAAI,UAAU,GAAG,IAAI,CAAC,aAAa,CAAC;QACpC,QAAQ,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC;YACpB,KAAK,IAAA,YAAI,EAAC,kBAAU,CAAC;gBACjB,iBAAiB,CAAC,eAAe,CAAC,cAAE,CAAC,UAAU,CAAC,UAAU,CAAC,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;gBACpG,MAAM;YAEV,KAAK,IAAA,YAAI,EAAC,kBAAU,CAAC;gBACjB,iBAAiB,CAAC,WAAW,CAAC,cAAE,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;gBACzD,MAAM;YAEV,KAAK,IAAA,YAAI,EAAC,kBAAU,CAAC;gBACjB,iBAAiB,CAAC,WAAW,CAAC,cAAE,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;gBACzD,MAAM;YAEV,KAAK,IAAA,YAAI,EAAC,kBAAU,CAAC;gBACjB,iBAAiB,CAAC,SAAS,CAAC,cAAE,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAA;gBACtD,MAAM;YAEV,SAAQ,uBAAuB;gBAC3B,iBAAiB,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;gBAC3C,MAAM;QACd,CAAC;IACL,CAAC;AACL,CAAC,EA5LgB,QAAQ,wBAAR,QAAQ,QA4LxB"}
@@ -1,104 +0,0 @@
1
- "use strict";
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
- */
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.resolveResponseXML = resolveResponseXML;
19
- exports.resolveContexts = resolveContexts;
20
- exports.resolveSourceElement = resolveSourceElement;
21
- exports.resolveSourceForm = resolveSourceForm;
22
- const mona_dish_1 = require("mona-dish");
23
- const Assertions_1 = require("../util/Assertions");
24
- const mona_dish_2 = require("mona-dish");
25
- const Const_1 = require("../core/Const");
26
- const ExtDomQuery_1 = require("../util/ExtDomQuery");
27
- /**
28
- * Resolver functions for various aspects of the response data
29
- *
30
- * stateless because it might be called from various
31
- * parts of the response classes
32
- */
33
- /**
34
- * fetches the response XML
35
- * as XML Query object
36
- *
37
- * @param request the request hosting the responseXML
38
- *
39
- * Throws an error in case of non-existent or wrong xml data
40
- *
41
- */
42
- function resolveResponseXML(request) {
43
- let ret = new mona_dish_1.XMLQuery((0, Const_1.$nsp)(request.getIf(Const_1.SEL_RESPONSE_XML).value));
44
- Assertions_1.Assertions.assertValidXMLResponse(ret);
45
- return ret;
46
- }
47
- /**
48
- * Splits the incoming pass-through context apart
49
- * in an internal and an external normalized context
50
- * the internal one is just for our internal processing
51
- *
52
- * @param context the root context as associative array
53
- */
54
- function resolveContexts(context) {
55
- /**
56
- * we split the context apart into the external one and
57
- * some internal values
58
- */
59
- let externalContext = ExtDomQuery_1.ExtConfig.fromNullable(context);
60
- let internalContext = externalContext.getIf(Const_1.CTX_PARAM_MF_INTERNAL);
61
- if (!internalContext.isPresent()) {
62
- internalContext = ExtDomQuery_1.ExtConfig.fromNullable({});
63
- }
64
- /**
65
- * prepare storage for some deferred operations
66
- */
67
- internalContext.assign(Const_1.DEFERRED_HEAD_INSERTS).value = [];
68
- internalContext.assign(Const_1.UPDATE_FORMS).value = [];
69
- internalContext.assign(Const_1.UPDATE_ELEMS).value = [];
70
- return { externalContext, internalContext };
71
- }
72
- /**
73
- * fetches the source element out of our contexts
74
- *
75
- * @param context the external context which should host the source id
76
- * @param internalContext internal pass-through fall back
77
- *
78
- */
79
- function resolveSourceElement(context, internalContext) {
80
- let elemId = resolveSourceElementId(context, internalContext);
81
- return mona_dish_2.DQ.byId(elemId.value, true);
82
- }
83
- /**
84
- * fetches the source form if it still exists
85
- * also embedded forms and parent forms are taken into consideration
86
- * as fallbacks
87
- *
88
- * @param internalContext
89
- * @param elem
90
- */
91
- function resolveSourceForm(internalContext, elem) {
92
- let sourceFormId = internalContext.getIf(Const_1.CTX_PARAM_SRC_FRM_ID);
93
- let sourceForm = new mona_dish_2.DQ(sourceFormId.isPresent() ? document.forms[sourceFormId.value] : null);
94
- sourceForm = sourceForm.orElseLazy(() => elem.firstParent(Const_1.HTML_TAG_FORM))
95
- .orElseLazy(() => elem.querySelectorAll(Const_1.HTML_TAG_FORM))
96
- .orElseLazy(() => mona_dish_2.DQ.querySelectorAll(Const_1.HTML_TAG_FORM));
97
- return sourceForm;
98
- }
99
- function resolveSourceElementId(context, internalContext) {
100
- //?internal context?? used to be external one
101
- return internalContext.getIf(Const_1.CTX_PARAM_SRC_CTL_ID)
102
- .orElseLazy(() => context.getIf(Const_1.SOURCE, "id").value);
103
- }
104
- //# sourceMappingURL=ResponseDataResolver.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ResponseDataResolver.js","sourceRoot":"","sources":["../../../../../../src/main/typescript/impl/xhrCore/ResponseDataResolver.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAoCH,gDAKC;AASD,0CAkBC;AASD,oDAGC;AAUD,8CASC;AAjGD,yCAAqD;AAErD,mDAA8C;AAC9C,yCAA6B;AAC7B,yCAWuB;AACvB,qDAA8C;AAE9C;;;;;GAKG;AAEH;;;;;;;;GAQG;AACH,SAAgB,kBAAkB,CAAC,OAAe;IAC9C,IAAI,GAAG,GAAG,IAAI,oBA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