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,728 +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
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
- if (k2 === undefined) k2 = k;
19
- var desc = Object.getOwnPropertyDescriptor(m, k);
20
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
21
- desc = { enumerable: true, get: function() { return m[k]; } };
22
- }
23
- Object.defineProperty(o, k2, desc);
24
- }) : (function(o, m, k, k2) {
25
- if (k2 === undefined) k2 = k;
26
- o[k2] = m[k];
27
- }));
28
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
29
- Object.defineProperty(o, "default", { enumerable: true, value: v });
30
- }) : function(o, v) {
31
- o["default"] = v;
32
- });
33
- var __importStar = (this && this.__importStar) || (function () {
34
- var ownKeys = function(o) {
35
- ownKeys = Object.getOwnPropertyNames || function (o) {
36
- var ar = [];
37
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
38
- return ar;
39
- };
40
- return ownKeys(o);
41
- };
42
- return function (mod) {
43
- if (mod && mod.__esModule) return mod;
44
- var result = {};
45
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
46
- __setModuleDefault(result, mod);
47
- return result;
48
- };
49
- })();
50
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
51
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
52
- return new (P || (P = Promise))(function (resolve, reject) {
53
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
54
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
55
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
56
- step((generator = generator.apply(thisArg, _arguments || [])).next());
57
- });
58
- };
59
- Object.defineProperty(exports, "__esModule", { value: true });
60
- exports.StandardInits = void 0;
61
- const mona_dish_1 = require("mona-dish");
62
- /**
63
- * helpers with various init and html patterns
64
- *
65
- * We use jsdom global which builds up a
66
- * dom tree and emulates a full environment
67
- *
68
- * Note the buildup and loading is asynchronous so
69
- * we have to work with Promises and asyncs to get things
70
- * where we want to have them
71
- *
72
- * This is a pattern pretty much for every test which iterates over
73
- * multiple doms
74
- */
75
- var StandardInits;
76
- (function (StandardInits) {
77
- StandardInits.HTML_DEFAULT = `<!DOCTYPE html>
78
- <html lang="en">
79
- <head>
80
- <meta charset="UTF-8">
81
- <title>Title</title>
82
- </head>
83
- <body>
84
- <div id="id_1"></div>
85
- <div id="id_2" booga="blarg"></div>
86
- <div id="id_3"></div>
87
- <div id="id_4"></div>
88
- </body>
89
- </html>`;
90
- StandardInits.HTML_SHADOW = `<!DOCTYPE html>
91
- <html lang="en">
92
- <head>
93
- <meta charset="UTF-8">
94
- <title>Title</title>
95
- </head>
96
- <body>
97
- <form id="blarg">
98
- <input type="text" id="blarg:input_1" name="blarg:input_1" value="input_1_val"></input>
99
- <input type="hidden" id="jakarta.faces.ViewState" name="jakarta.faces.ViewState" value="blubbblubblubb"></input>
100
- <input type="button" id="blarg:input_2" name="blarg:input_2" value="input_1_val"></input>
101
- <div id="shadowDomArea">
102
- <input type="button" id="blarg:input_3" name="blarg:input_3" value="input_3_val"></input>
103
- </div>
104
- </form>
105
- </body>
106
- </html>`;
107
- /**
108
- * a page simulating basically a simple faces form
109
- */
110
- const HTML_FORM_DEFAULT = `<!DOCTYPE html>
111
- <html lang="en">
112
- <head>
113
- <meta charset="UTF-8">
114
- <title>Title</title>
115
- </head>
116
- <body>
117
- <form id="blarg">
118
- <input type="text" id="input_1" name="input_1" value="input_1_val"></input>
119
- <input type="text" id="input_2_text" name="input_2_text" value="input_2_text_val"></input>
120
- <input type="hidden" id="jakarta.faces.ViewState" name="jakarta.faces.ViewState" value="blubbblubblubb"></input>
121
- <input type="button" id="input_2" name="input_2" value="input_1_val"></input>
122
- </form>
123
- </body>
124
- </html>`;
125
- /**
126
- * a page simulating basically a simple faces form
127
- */
128
- const HTML_FORM_PREFIXED = `<!DOCTYPE html>
129
- <html lang="en">
130
- <head>
131
- <meta charset="UTF-8">
132
- <title>Title</title>
133
- </head>
134
- <body>
135
- <form id="form1">
136
- <input type="text" id="form1:input_1::field" name="form1:input_1" value="form1:input_1_val"></input>
137
- <input type="hidden" id="form1:jakarta.faces.ViewState" name="jakarta.faces.ViewState" value="blubbblubblubb"></input>
138
- <input type="button" id="form1:input_2::field" name="form1:input_2" value="form1:input_1_val"></input>
139
- <input type="text" id="form1:input_3::field" name="form1:input_23 value="form1:input_1_val"></input>
140
- </form>
141
- </body>
142
- </html>`;
143
- /**
144
- * a page based on Tobago for a file upload
145
- */
146
- const HTML_TOBAGO_FILE_FORM = `<!DOCTYPE html>
147
- <html lang='de'>
148
- <head>
149
- <meta charset='UTF-8'>
150
- <meta name='viewport' content='width=device-width, initial-scale=1.0'>
151
- <title>Test</title>
152
- </head>
153
- <body>
154
- <tobago-page locale='de' class='container-fluid' id='page' focus-on-error='true' wait-overlay-delay-full='1000' wait-overlay-delay-ajax='1000'>
155
- <form action='/content/100-upload/File_Upload.xhtml' id='page::form' method='post' enctype='multipart/form-data' accept-charset='UTF-8' data-tobago-context-path=''>
156
- <input type='hidden' name='jakarta.faces.source' id='jakarta.faces.source' disabled='disabled'>
157
- <tobago-focus id='page::lastFocusId'>
158
- <input type='hidden' name='page::lastFocusId' id='page::lastFocusId::field'>
159
- </tobago-focus>
160
- <input type='hidden' name='org.apache.myfaces.tobago.webapp.Secret' id='org.apache.myfaces.tobago.webapp.Secret' value='secretValue'>
161
- <tobago-file id='page:fileAjax' class='tobago-auto-spacing'>
162
- <div class='input-group'>
163
- <input type='file' tabindex='-1' id='page:fileAjax::field' class='form-control' name='page:fileAjax'>
164
- <tobago-behavior event='change' client-id='page:fileAjax' field-id='page:fileAjax::field' execute='page:fileAjax'></tobago-behavior>
165
- <label class='input-group-text' for='page:fileAjax::field'><span><i class='bi-folder2-open'></i></span></label>
166
- </div>
167
- </tobago-file>
168
- <div class='tobago-page-menuStore'>
169
- </div>
170
- <span id='page::jsf-state-container'><input type='hidden' name='jakarta.faces.ViewState' id='j_id__v_0:jakarta.faces.ViewState:1' value='viewStateValue' autocomplete='off'><input type='hidden' name='jakarta.faces.RenderKitId' value='tobago'><input type='hidden' id='j_id__v_0:jakarta.faces.ClientWindow:1' name='jakarta.faces.ClientWindow' value='clientWindowValue'></span>
171
- </form>
172
- </tobago-page>
173
- </body>
174
- </html>`;
175
- StandardInits.HTML_TOBAGO_SHEET_WITH_STYLE = `<!DOCTYPE html>
176
- <html lang='de'>
177
- <head>
178
- <meta charset='UTF-8'>
179
- <meta name='viewport' content='width=device-width, initial-scale=1.0'>
180
- <title>Test
181
- </title>
182
- <link rel='stylesheet' href='./fixtures/css/tobago.css' type='text/css'>
183
- <link rel='stylesheet' href='./fixtures/css/bootstrap-icons.css' type='text/css'>
184
- <script src='./fixtures/jakarta.faces.resource/faces.js.jsf' type='text/javascript'></script>
185
- <script src='./fixtures/js/tobago.js' type='module'></script>
186
- </head>
187
- <body>
188
- <tobago-page locale='de' class='container-fluid' id='page' focus-on-error='true' wait-overlay-delay-full='1000'
189
- wait-overlay-delay-ajax='1000'>
190
- <form action='/content/080-sheet/30-event/Sheet_Event.xhtml' id='page::form' method='post'
191
- accept-charset='UTF-8' data-tobago-context-path=''>
192
- <input type='hidden' name='javax.faces.source' id='javax.faces.source' disabled='disabled'>
193
- <tobago-focus id='page::lastFocusId'>
194
- <input type='hidden' name='page::lastFocusId' id='page::lastFocusId::field'>
195
- </tobago-focus>
196
- <input type='hidden' name='org.apache.myfaces.tobago.webapp.Secret' id='org.apache.myfaces.tobago.webapp.Secret'
197
- value='secretValue'>
198
- <div class='tobago-page-menuStore'>
199
- </div>
200
- <span id='page::jsf-state-container'><input type='hidden' name='javax.faces.ViewState'
201
- id='j_id__v_0:javax.faces.ViewState:1'
202
- value='viewStateValue' autocomplete='off'><input
203
- type='hidden' name='javax.faces.RenderKitId' value='tobago'><input type='hidden'
204
- id='j_id__v_0:javax.faces.ClientWindow:1'
205
- name='javax.faces.ClientWindow'
206
- value='clientWindowValue'></span>
207
- <button type='button' id='page:ajaxButton' name='page:ajaxButton'
208
- class='tobago-button btn btn-secondary tobago-auto-spacing'>
209
- <tobago-behavior event='click' client-id='page:ajaxButton' execute='page:ajaxButton'
210
- render='page:s1'></tobago-behavior>
211
- <span>Ajax</span></button>
212
- <tobago-sheet id='page:s1' data-tobago-selection-mode='multi' data-tobago-first='0' rows='0' row-count='2'>
213
- <style nonce='nonceValue' id='page:s1:j_id_4'>#page\\:s1 {
214
- max-height: 500px;
215
- }
216
- </style>
217
- <input id='page:s1::scrollPosition' name='page:s1::scrollPosition' type='hidden' value='[0,0]'>
218
- <input id='page:s1::selected' name='page:s1::selected' type='hidden' value='[]'>
219
- <div class='tobago-body'>
220
- <table cellspacing='0' cellpadding='0' summary='' class='table'>
221
- <thead>
222
- <tr>
223
- <th>
224
- <span><tobago-out id='page:s1:_col0'><span class='form-control-plaintext'>Name</span></tobago-out></span>
225
- </th>
226
- </tr>
227
- </thead>
228
- <tbody>
229
- <tr row-index='0'>
230
- <td>
231
- <tobago-out id='page:s1:0:t_name'><span class='form-control-plaintext'>Earth</span></tobago-out>
232
- </td>
233
- <td>
234
- <div>
235
- </div>
236
- </td>
237
- </tr>
238
- <tr row-index='1'>
239
- <td>
240
- <tobago-out id='page:s1:1:t_name'><span class='form-control-plaintext'>Moon</span></tobago-out>
241
- </td>
242
- <td>
243
- <div>
244
- </div>
245
- </td>
246
- </tr>
247
- </tbody>
248
- </table>
249
- </div>
250
- </tobago-sheet>
251
- </form>
252
- <noscript>
253
- <div class='tobago-page-noscript'>Diese Seite benötigt JavaScript, allerdings ist JavaScript in Ihrem Browser
254
- derzeit deaktiviert. Um JavaScript zu aktivieren, lesen Sie ggf. die Anleitung Ihres Browsers.
255
- </div>
256
- </noscript>
257
- </tobago-page>
258
- </body>
259
- </html>`;
260
- /**
261
- * a page simulating basically a simple faces form
262
- */
263
- StandardInits.HTML_PREFIX_EMBEDDED_BODY = `<form id="form1">
264
- <tobago-in id="page:input" class="tobago-auto-spacing">
265
- <input type="text" name="page:input" id="page:input::field" class="form-control" value="input_value">
266
- <tobago-behavior event="change" client-id="page:input" field-id="page:input::field" execute="page:input" render="page:output"></tobago-behavior>
267
- </tobago-in>
268
-
269
- <tobago-out id="page:output" class="tobago-auto-spacing">
270
- <input type="text" name="page:output" id="page:output::field" class="form-control">
271
- </tobago-out>
272
- </form>`;
273
- const HTML_FORM_PREFIXED_EMBEDDED = `<!DOCTYPE html>
274
- <html lang="en">
275
- <head>
276
- <meta charset="UTF-8">
277
- <title>Title</title>
278
- </head>
279
- <body>
280
- ${StandardInits.HTML_PREFIX_EMBEDDED_BODY}
281
- </body>
282
- </html>`;
283
- const HTML_FORM_NAMESPACED = `<!DOCTYPE html>
284
- <html lang="en">
285
- <head>
286
- <meta charset="UTF-8">
287
- <title>Title</title>
288
- </head>
289
- <body>
290
- <form id="jd_0:blarg">
291
- <input type="text" id="jd_0:input_1" name="jd_0:input_1" value="input_1_val"></input>
292
- <input type="hidden" id="jd_0:jakarta.faces.ViewState" name="jakarta.faces.ViewState" value="blubbblubblubb"></input>
293
- <input type="button" id="jd_0:input_2" name="input_2" value="input_1_val"></input>
294
- </form>
295
- </body>
296
- </html>`;
297
- const VIRTUAL_ELEMENT = `<!DOCTYPE html>
298
- <html lang="en">
299
- <head>
300
- <meta charset="UTF-8">
301
- <title>Title</title>
302
- </head>
303
- <body>
304
- <form id="jd_0:blarg">
305
- <tobago-multi-select id="page:numbers">
306
- <input type="checkbox" name="page:numbers" id="page:numbers:1" value="1"></input>
307
- <input type="checkbox" name="page:numbers" id="page:numbers:2" value="2"></input>
308
- <input type="checkbox" name="page:numbers" id="page:numbers:3" value="3"></input>
309
- </tobago-multi-select>
310
- </form>
311
- </body>
312
- </html>`;
313
- const CHECKBOX_RADIO_FORM = `
314
- <!DOCTYPE html>
315
- <html lang="en">
316
- <head>
317
- <meta charset="UTF-8">
318
- <title>Title</title>
319
- </head>
320
- <body>
321
- <form id="form1">
322
- <input type="checkbox" checked name="page:numbers:1" id="page:numbers:1" value="1"></input>
323
- <input type="checkbox" name="page:numbers:2" id="page:numbers:2" value="2"></input>
324
- <input type="checkbox" name="page:numbers:3" id="page:numbers:3" value="3"></input>
325
- </form>
326
-
327
- <form id="form2">
328
- <input type="radio" checked name="page:numbers:r:1" id="page:numbers:r:1" value="1"></input>
329
- <input type="radio" name="page:numbers:r:2" id="page:numbers:r:2" value="2"></input>
330
- <input type="radio" name="page:numbers:r:3" id="page:numbers:r:3" value="3"></input>
331
- </form>
332
- </body>
333
- </html>
334
- `;
335
- /**
336
- * a page simulating basically a simple faces form
337
- */
338
- const HTML_FILE_FORM_DEFAULT = `<!DOCTYPE html>
339
- <html lang="en">
340
- <head>
341
- <meta charset="UTF-8">
342
- <title>Title</title>
343
- </head>
344
- <body>
345
- <form id="blarg" enctype="multipart/form-data">
346
- <input type="file" id="fíleupload" name="fíleupload"></input>
347
- <input type="text" id="input_1" name="input_1" value="input_1_val"></input>
348
- <input type="hidden" id="jakarta.faces.ViewState" name="jakarta.faces.ViewState" value="blubbblubblubb"></input>
349
- <input type="button" id="input_2" name="input_2" value="input_1_val"></input>
350
- </form>
351
- </body>
352
- </html>`;
353
- StandardInits.STD_XML = `<?xml version="1.0" encoding="utf-8"?><partial-response><changes><update id="value_1"><![CDATA[<span id="out1">2</span>]]></update><update id="jakarta.faces.ViewState"><![CDATA[j_id1:j_id3]]></update></changes></partial-response>`;
354
- /**
355
- * a page containing a faces.js input with a new separator char
356
- * @param separatorChar
357
- * @constructor
358
- */
359
- function HTML_DEFAULT_SEPARATOR_CHAR(separatorChar, IS_40 = true) {
360
- return `<!DOCTYPE html>
361
- <html lang="en">
362
- <head>
363
- <meta charset="UTF-8">
364
- <title>Title</title>
365
- <script type="text/javascript"
366
- src="./fixtures/${IS_40 ? 'jakarta' : 'javax'}.faces.resource/${IS_40 ? 'faces' : 'jsf'}.js.jsf?ln=jakarta.faces&separator=${separatorChar}"></script>
367
- </head>
368
- <body>
369
- <form id="blarg">
370
- <input type="text" id="input_1" name="input_1"/>
371
- <input type="button" id="input_2" name="input_2"/>
372
- </form>
373
- </body>
374
- </html>
375
-
376
- `;
377
- }
378
- StandardInits.ERROR_CHAIN_PAGE = `
379
- <!DOCTYPE html>
380
- <html lang="en">
381
- <head>
382
- <meta charset="UTF-8">
383
- <title>Title</title>
384
- </head>
385
- <body>
386
- <h2>Error Chain Testcase</h2>
387
- <script type="text/javascript">
388
- /**
389
- * code identical to mojarra test, both stem from me
390
- * so mojarras side EPL here ASL2!
391
- *
392
- * @param event
393
- */
394
- function triggerRequestChain(event) {
395
- for(let cnt = 0; cnt < 5; cnt++) {
396
- faces.ajax.request(event.target, "click", {
397
- render:"form1",
398
- onerror: function() {
399
- document.getElementById("errorCalled").innerHTML = "1";
400
- }
401
- })
402
- }
403
- }
404
- </script>
405
- <div id="errorCalled"></div>
406
- <form id="form1">
407
- <div id="form1:out1">0</div>
408
- <input type="button" id="form1:button1" onclick="triggerRequestChain(event)">
409
- </form>
410
- </body>
411
- </html>
412
- `;
413
- /**
414
- * This is a standardized small page mockup
415
- * testing the various aspects of the protocol
416
- * under pure html conditions
417
- *
418
- * We get the jsf out of the way and basically simulate what the browser sees
419
- */
420
- StandardInits.PROTOCOL_PAGE = `<!DOCTYPE html>
421
- <html lang="en">
422
- <head>
423
- <meta charset="UTF-8">
424
- <title>Title</title>
425
- </head>
426
- <body>
427
- <h2>protocol testcase1</h2>
428
-
429
- <div id="centerDiv">
430
-
431
- <h1>Selenium Testprobe for insert update delete and attribute change</h1>
432
-
433
- <h2>This test tests all aspects of the protocol, under xhr and iframe conditions</h2>
434
-
435
- <div id="testResults">
436
-
437
- <h3>Test Results</h3>
438
-
439
- <div id="evalarea1">eval area 1 triggered by eval</div>
440
-
441
- <div id="evalarea2">eval area 2 triggered by update</div>
442
-
443
- <div id="evalarea3">eval area 3 triggered by insert</div>
444
-
445
- <div id="evalarea4">eval area 4 triggered by a click on the changed attributes area</div>
446
-
447
- <div id="changesArea">update insert area</div>
448
-
449
- <div id="deleteable">delete area will be deleted once you press the delete button</div>
450
-
451
- <div id="attributeChange">attributes changes area</div>
452
-
453
- <div id="resource_area_1"></div>
454
- <div id="resource_area_2"></div>
455
- <div id="resource_area_3"></div>
456
- <div id="nonce_result"></div>
457
-
458
- </div>
459
-
460
- <h2>Call actions via normal ppr</h2>
461
-
462
- <form id="form1" action="boog.html">
463
-
464
- <input type="hidden" id="jakarta.faces.ViewState" name="jakarta.faces.ViewState" value="blubbblubblubb"></input>
465
-
466
- <input type="button" id="cmd_eval" value="eval"
467
- onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'eval1');"/>
468
-
469
- <input type="button" id="cmd_update_insert" value="update insert"
470
- onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'updateinsert1');"/>
471
-
472
- <input type="button" id="cmd_simple_resource" value="simple resource"
473
- onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'simpleresource');"/>
474
-
475
- <input type="button" id="cmd_complex_resource" value="complex resource"
476
- onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'complex_resource');"/>
477
-
478
- <input type="button" id="cmd_complex_resource2" value="complex resource2"
479
- onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'complex_resource2');"/>
480
-
481
- <input type="button" id="cmd_update_insert2" value="update insert second protocol path"
482
- onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'updateinsert2');"/>
483
-
484
- <input type="button" id="cmd_delete" value="delete"
485
- onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'delete1');"/>
486
-
487
- <input type="button" id="cmd_replace" value="Replace Body"
488
- onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'body_replace1');"/>
489
-
490
- <input type="button" id="cmd_attributeschange" value="change attributes"
491
- onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'attributes');"/>
492
-
493
- <input type="button" id="cmd_illegalresponse" value="illegal response, error trigger"
494
- onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'illegalResponse');"/>
495
-
496
- <input type="button" id="cmd_viewstate" value="Viewstate only update trigger"
497
- onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'viewstate');"/>
498
-
499
- <input type="button" id="cmd_error" value="Server error with error response"
500
- onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'errors');"/>
501
-
502
- <input type="button" id="cmd_error_component" value="Error: no component given"
503
- onclick="(window.faces || window.jsf).ajax.request(null, event, {}); return false"/>
504
-
505
- </form>
506
-
507
- <script type="text/javascript">
508
- document.getElementById("evalarea1").innerHTML = "booga";
509
-
510
- var target = "./test.mockup";
511
-
512
- function emitPPR(source, event, action, useIframe, formName) {
513
- document.getElementById(formName || "form1").action = target;
514
-
515
- (window?.faces ?? window.jsf).ajax.request(/*String|Dom Node*/ source, /*|EVENT|*/ (window.event) ? window.event : event, /*{|OPTIONS|}*/ {op: action});
516
- }
517
- </script>
518
- </div>
519
- </body>`;
520
- function basicXML() {
521
- return new window.DOMParser().parseFromString(StandardInits.STD_XML, "text/xml");
522
- }
523
- StandardInits.basicXML = basicXML;
524
- function standardInit(scope, initFunc = defaultHtml) {
525
- global.navigator = {
526
- language: "en-En"
527
- };
528
- return initFunc(false).then((closeFunc) => {
529
- scope.currentTest.closeIt = () => {
530
- closeFunc();
531
- delete global.navigator;
532
- };
533
- });
534
- }
535
- StandardInits.standardInit = standardInit;
536
- function standardClose(scope) {
537
- scope.currentTest.closeIt();
538
- }
539
- StandardInits.standardClose = standardClose;
540
- function defaultHtml(withJsf = true) {
541
- return init(StandardInits.HTML_DEFAULT, withJsf);
542
- }
543
- StandardInits.defaultHtml = defaultHtml;
544
- function defaultHtml_23(withJsf = true) {
545
- return init(StandardInits.HTML_DEFAULT.replace(/jakarta/gi, "javax"), withJsf, false);
546
- }
547
- StandardInits.defaultHtml_23 = defaultHtml_23;
548
- function defaultMyFaces(withJsf = true) {
549
- return init(HTML_FORM_DEFAULT, withJsf);
550
- }
551
- StandardInits.defaultMyFaces = defaultMyFaces;
552
- function defaultMyFacesNamespaces(withJsf = true) {
553
- return init(HTML_FORM_NAMESPACED, withJsf);
554
- }
555
- StandardInits.defaultMyFacesNamespaces = defaultMyFacesNamespaces;
556
- function initVirtualElement(withJsf = true) {
557
- return init(VIRTUAL_ELEMENT, withJsf);
558
- }
559
- StandardInits.initVirtualElement = initVirtualElement;
560
- function initCheckboxRadioForm(withJsf = true) {
561
- return init(CHECKBOX_RADIO_FORM, withJsf);
562
- }
563
- StandardInits.initCheckboxRadioForm = initCheckboxRadioForm;
564
- function defaultMyFaces23(withJsf = true) {
565
- return init(HTML_FORM_DEFAULT.replace(/jakarta/gi, "javax"), withJsf, false);
566
- }
567
- StandardInits.defaultMyFaces23 = defaultMyFaces23;
568
- function defaultFileForm(withJsf = true) {
569
- return init(HTML_FILE_FORM_DEFAULT, withJsf);
570
- }
571
- StandardInits.defaultFileForm = defaultFileForm;
572
- function tobagoFileForm(withJsf = true) {
573
- return init(HTML_TOBAGO_FILE_FORM, withJsf);
574
- }
575
- StandardInits.tobagoFileForm = tobagoFileForm;
576
- function defaultFileForm_23(withJsf = true) {
577
- return init(HTML_FILE_FORM_DEFAULT.replace(/jakarta/gi, "javax"), withJsf, false);
578
- }
579
- StandardInits.defaultFileForm_23 = defaultFileForm_23;
580
- function shadowDomMyFaces(withJsf = true) {
581
- return init(StandardInits.HTML_SHADOW, withJsf).then((close) => {
582
- let shadow = mona_dish_1.DomQuery.byId(window.document).byId("shadowDomArea").attachShadow();
583
- shadow.innerHtml = `
584
- <input type="button" id="input_3" name="input_3" value="input_3_val" ></input>
585
- <div id="shadowContent">before update</div>
586
- `;
587
- return close;
588
- });
589
- }
590
- StandardInits.shadowDomMyFaces = shadowDomMyFaces;
591
- function protocolPage(withJsf = true, IS_40 = true) {
592
- return init((IS_40) ? StandardInits.PROTOCOL_PAGE : StandardInits.PROTOCOL_PAGE.replace(/jakarta/gi, "javax"), withJsf, IS_40);
593
- }
594
- StandardInits.protocolPage = protocolPage;
595
- function errorChainPage(withJsf = true, IS_40 = true) {
596
- return init((IS_40) ? StandardInits.ERROR_CHAIN_PAGE : StandardInits.ERROR_CHAIN_PAGE.replace(/jakarta/gi, "javax"), withJsf, IS_40);
597
- }
598
- StandardInits.errorChainPage = errorChainPage;
599
- function prefixEmbeddedPage(withJsf = true, IS_40 = true) {
600
- return init((IS_40) ? HTML_FORM_PREFIXED_EMBEDDED : HTML_FORM_PREFIXED_EMBEDDED.replace(/jakarta/gi, "javax"), withJsf, IS_40);
601
- }
602
- StandardInits.prefixEmbeddedPage = prefixEmbeddedPage;
603
- function defaultSeparatorChar(separatorChar, withJsf = true, IS_40 = true) {
604
- let template = HTML_DEFAULT_SEPARATOR_CHAR(separatorChar, IS_40);
605
- return init(template, withJsf);
606
- }
607
- StandardInits.defaultSeparatorChar = defaultSeparatorChar;
608
- /**
609
- * we need to manually apply the jsf top the global namespace
610
- *
611
- * the reason simply is that
612
- * we use our typescript dependency system on the tests
613
- * which forfeits the global namespace.
614
- *
615
- * The global namespace is used after the build automatically
616
- * by using the window build
617
- *
618
- * @param data
619
- * @param Implementation
620
- */
621
- let applyJsfToGlobals = function (data, Implementation, PushImpl) {
622
- var _a, _b;
623
- global.faces = data.faces;
624
- global.myfaces = data.myfaces;
625
- global.window.faces = data.faces;
626
- global.window.myfaces = data.myfaces;
627
- global.Implementation = Implementation.Implementation;
628
- global.PushImpl = PushImpl.PushImpl;
629
- //bypass a bug on windows jsdom, domparser not an auto global but on window only
630
- global.DOMParser = (_a = global === null || global === void 0 ? void 0 : global.DOMParser) !== null && _a !== void 0 ? _a : window.DOMParser;
631
- global.document = (_b = global === null || global === void 0 ? void 0 : global.document) !== null && _b !== void 0 ? _b : window.document;
632
- };
633
- let applyJsfToGlobals23 = function (data, Implementation, PushImpl) {
634
- var _a, _b;
635
- global.jsf = data.jsf;
636
- global.myfaces = data.myfaces;
637
- global.window.jsf = data.jsf;
638
- global.window.myfaces = data.myfaces;
639
- global.Implementation = Implementation.Implementation;
640
- global.window.Implementation = Implementation.Implementation;
641
- global.PushImpl = PushImpl.PushImpl;
642
- //bypass a bug on windows jsdom, domparser not an auto global but on window only
643
- global.DOMParser = (_a = global === null || global === void 0 ? void 0 : global.DOMParser) !== null && _a !== void 0 ? _a : window.DOMParser;
644
- global.document = (_b = global === null || global === void 0 ? void 0 : global.document) !== null && _b !== void 0 ? _b : window.document;
645
- };
646
- /**
647
- * init the jsdom global
648
- * @param clean
649
- * @param template
650
- */
651
- let initJSDOM = function (template) {
652
- return __awaiter(this, void 0, void 0, function* () {
653
- // @ts-ignore
654
- return Promise.resolve().then(() => __importStar(require('jsdom-global'))).then((domIt) => {
655
- var _a, _b;
656
- let params = {
657
- contentType: "text/html",
658
- runScripts: "dangerously",
659
- resources: "usable",
660
- url: `file://${__dirname}/index.html`
661
- };
662
- //we have two different apis depending whether we allow module interop with sinon or not
663
- return (_b = ((_a = domIt === null || domIt === void 0 ? void 0 : domIt.default) !== null && _a !== void 0 ? _a : domIt)) === null || _b === void 0 ? void 0 : _b(template, params);
664
- });
665
- });
666
- };
667
- /**
668
- * init the jsf subsystem
669
- */
670
- let initJSF = function () {
671
- return __awaiter(this, arguments, void 0, function* (IS_40 = true) {
672
- // @ts-ignore
673
- const facesImport = IS_40 ? Promise.resolve().then(() => __importStar(require("../../../../api/faces"))) : Promise.resolve().then(() => __importStar(require("../../../../api/jsf")));
674
- return facesImport.then((data) => {
675
- let Implementation = require("../../../../impl/AjaxImpl");
676
- let PushImpl = require("../../../../impl/PushImpl");
677
- IS_40 ? applyJsfToGlobals(data, Implementation, PushImpl) : applyJsfToGlobals23(data, Implementation, PushImpl);
678
- }).catch(err => {
679
- console.error(err);
680
- });
681
- });
682
- };
683
- /**
684
- * lets clean up some old data which might interfere
685
- */
686
- let resetGlobals = function () {
687
- var _a, _b;
688
- (_a = global === null || global === void 0 ? void 0 : global.Implementation) === null || _a === void 0 ? void 0 : _a.reset();
689
- (_b = global === null || global === void 0 ? void 0 : global.PushImpl) === null || _b === void 0 ? void 0 : _b.reset();
690
- (global.faces) ? delete global.faces : null;
691
- (global.jsf) ? delete global.jsf : null;
692
- delete global.myfaces;
693
- (global.Implementation) ? delete global.Implementation : null;
694
- delete global.PushImpl;
695
- };
696
- /**
697
- * entry point which initializes the test system with a template and with or without jsf
698
- *
699
- * @param template
700
- * @param withJsf
701
- */
702
- function init(template_1) {
703
- return __awaiter(this, arguments, void 0, function* (template, withJsf = true, IS_JSF_40 = true) {
704
- //let dom2 = new JSDOM(template)
705
- //return initMyFacesFromDom(dom2);
706
- let clean = null;
707
- //we use jsdom global to fulfill our requirements
708
- //we need to import dynamically and use awaits
709
- if (withJsf) {
710
- resetGlobals();
711
- // @ts-ignore
712
- yield initJSDOM(template).then(data => clean = data);
713
- yield initJSF(IS_JSF_40);
714
- }
715
- else {
716
- // @ts-ignore
717
- yield Promise.resolve().then(() => __importStar(require('jsdom-global'))).then((domIt) => {
718
- var _a, _b;
719
- clean = (_b = ((_a = domIt === null || domIt === void 0 ? void 0 : domIt.default) !== null && _a !== void 0 ? _a : domIt)) === null || _b === void 0 ? void 0 : _b(template);
720
- });
721
- }
722
- //the async is returning a promise on the caller level
723
- //which gets the return value on once done
724
- return clean;
725
- });
726
- }
727
- })(StandardInits || (exports.StandardInits = StandardInits = {}));
728
- //# sourceMappingURL=StandardInits.js.map