jsf.js_next_gen 4.0.0-RC.1 → 4.0.0-RC.3

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 (144) hide show
  1. package/dist/docs/functions/faces.push.init.html +5 -1
  2. package/dist/docs/functions/myfaces.ab.html +2 -2
  3. package/dist/window/faces-development.js +2784 -2036
  4. package/dist/window/faces-development.js.br +0 -0
  5. package/dist/window/faces-development.js.gz +0 -0
  6. package/dist/window/faces-development.js.map +1 -1
  7. package/dist/window/faces.js +1 -1
  8. package/dist/window/faces.js.br +0 -0
  9. package/dist/window/faces.js.gz +0 -0
  10. package/dist/window/faces.js.map +1 -1
  11. package/dist/window/jsf-development.js +2796 -2037
  12. package/dist/window/jsf-development.js.br +0 -0
  13. package/dist/window/jsf-development.js.gz +0 -0
  14. package/dist/window/jsf-development.js.map +1 -1
  15. package/dist/window/jsf.js +1 -1
  16. package/dist/window/jsf.js.br +0 -0
  17. package/dist/window/jsf.js.gz +0 -0
  18. package/dist/window/jsf.js.map +1 -1
  19. package/package.json +2 -2
  20. package/src/main/typescript/@types/definitions/index.d.ts +13 -1
  21. package/src/main/typescript/api/_api.ts +4 -2
  22. package/src/main/typescript/api/jsf.ts +18 -0
  23. package/src/main/typescript/impl/AjaxImpl.ts +22 -2
  24. package/src/main/typescript/impl/PushImpl.ts +38 -12
  25. package/src/main/typescript/impl/core/Const.ts +2 -0
  26. package/src/main/typescript/impl/util/AsyncQueue.ts +1 -1
  27. package/src/main/typescript/impl/xhrCore/RequestDataResolver.ts +2 -2
  28. package/src/main/typescript/impl/xhrCore/XhrFormData.ts +24 -12
  29. package/src/main/typescript/test/xhrCore/RequestTest.spec.ts +172 -8
  30. package/src/main/typescript/tsconfig.json +1 -1
  31. package/target/api/_api.js +28 -13
  32. package/target/api/_api.js.map +1 -1
  33. package/target/api/faces.js +4 -4
  34. package/target/api/faces.js.map +1 -1
  35. package/target/api/jsf.js +16 -5
  36. package/target/api/jsf.js.map +1 -1
  37. package/target/impl/AjaxImpl.js +79 -53
  38. package/target/impl/AjaxImpl.js.map +1 -1
  39. package/target/impl/PushImpl.js +81 -48
  40. package/target/impl/PushImpl.js.map +1 -1
  41. package/target/impl/core/Const.js +5 -4
  42. package/target/impl/core/Const.js.map +1 -1
  43. package/target/impl/core/ImplTypes.js +14 -9
  44. package/target/impl/core/ImplTypes.js.map +1 -1
  45. package/target/impl/i18n/Messages.js +4 -3
  46. package/target/impl/i18n/Messages.js.map +1 -1
  47. package/target/impl/util/Assertions.js +18 -9
  48. package/target/impl/util/Assertions.js.map +1 -1
  49. package/target/impl/util/AsyncQueue.js +36 -28
  50. package/target/impl/util/AsyncQueue.js.map +1 -1
  51. package/target/impl/util/ExtDomQuery.js +219 -144
  52. package/target/impl/util/ExtDomQuery.js.map +1 -1
  53. package/target/impl/util/Lang.js +28 -21
  54. package/target/impl/util/Lang.js.map +1 -1
  55. package/target/impl/xhrCore/ErrorData.js +61 -36
  56. package/target/impl/xhrCore/ErrorData.js.map +1 -1
  57. package/target/impl/xhrCore/EventData.js +13 -10
  58. package/target/impl/xhrCore/EventData.js.map +1 -1
  59. package/target/impl/xhrCore/RequestDataResolver.js +18 -16
  60. package/target/impl/xhrCore/RequestDataResolver.js.map +1 -1
  61. package/target/impl/xhrCore/ResonseDataResolver.js +16 -16
  62. package/target/impl/xhrCore/ResonseDataResolver.js.map +1 -1
  63. package/target/impl/xhrCore/Response.js +16 -16
  64. package/target/impl/xhrCore/Response.js.map +1 -1
  65. package/target/impl/xhrCore/ResponseProcessor.js +133 -119
  66. package/target/impl/xhrCore/ResponseProcessor.js.map +1 -1
  67. package/target/impl/xhrCore/XhrFormData.js +114 -69
  68. package/target/impl/xhrCore/XhrFormData.js.map +1 -1
  69. package/target/impl/xhrCore/XhrRequest.js +95 -85
  70. package/target/impl/xhrCore/XhrRequest.js.map +1 -1
  71. package/target/myfaces/OamSubmit.js +15 -15
  72. package/target/myfaces/OamSubmit.js.map +1 -1
  73. package/target/test/frameworkBase/LangTest.spec.js +32 -46
  74. package/target/test/frameworkBase/LangTest.spec.js.map +1 -1
  75. package/target/test/frameworkBase/_ext/monadish/DomQueryTest.spec.js +228 -238
  76. package/target/test/frameworkBase/_ext/monadish/DomQueryTest.spec.js.map +1 -1
  77. package/target/test/frameworkBase/_ext/monadish/LangTest.spec.js +31 -45
  78. package/target/test/frameworkBase/_ext/monadish/LangTest.spec.js.map +1 -1
  79. package/target/test/frameworkBase/_ext/monadish/MappingProbes.js +33 -24
  80. package/target/test/frameworkBase/_ext/monadish/MappingProbes.js.map +1 -1
  81. package/target/test/frameworkBase/_ext/monadish/MappingTest.spec.js +8 -8
  82. package/target/test/frameworkBase/_ext/monadish/MappingTest.spec.js.map +1 -1
  83. package/target/test/frameworkBase/_ext/monadish/MonadTest.spec.js +31 -31
  84. package/target/test/frameworkBase/_ext/monadish/MonadTest.spec.js.map +1 -1
  85. package/target/test/frameworkBase/_ext/monadish/StreamTest.spec.js +48 -50
  86. package/target/test/frameworkBase/_ext/monadish/StreamTest.spec.js.map +1 -1
  87. package/target/test/frameworkBase/_ext/shared/StandardInits.js +132 -247
  88. package/target/test/frameworkBase/_ext/shared/StandardInits.js.map +1 -1
  89. package/target/test/frameworkBase/_ext/shared/XmlResponses.js +22 -199
  90. package/target/test/frameworkBase/_ext/shared/XmlResponses.js.map +1 -1
  91. package/target/test/impl/ImplTest.spec.js +59 -32
  92. package/target/test/impl/ImplTest.spec.js.map +1 -1
  93. package/target/test/impl/ImplTest_23.spec.js +59 -32
  94. package/target/test/impl/ImplTest_23.spec.js.map +1 -1
  95. package/target/test/impl/SeparatorCharsTest.spec.js +17 -17
  96. package/target/test/impl/SeparatorCharsTest.spec.js.map +1 -1
  97. package/target/test/myfaces/OamSubmit.spec.js +25 -25
  98. package/target/test/myfaces/OamSubmit.spec.js.map +1 -1
  99. package/target/test/queue/AsynchronousProbe.js +29 -23
  100. package/target/test/queue/AsynchronousProbe.js.map +1 -1
  101. package/target/test/queue/AsynchronousQueueTest.spec.js +70 -39
  102. package/target/test/queue/AsynchronousQueueTest.spec.js.map +1 -1
  103. package/target/test/xhrCore/EventTests.spec.js +73 -42
  104. package/target/test/xhrCore/EventTests.spec.js.map +1 -1
  105. package/target/test/xhrCore/FakeWebsocket.js +16 -14
  106. package/target/test/xhrCore/FakeWebsocket.js.map +1 -1
  107. package/target/test/xhrCore/FileUploadTest.spec.js +77 -46
  108. package/target/test/xhrCore/FileUploadTest.spec.js.map +1 -1
  109. package/target/test/xhrCore/RequestParamsTest.spec.js +68 -37
  110. package/target/test/xhrCore/RequestParamsTest.spec.js.map +1 -1
  111. package/target/test/xhrCore/RequestTest.spec.js +268 -84
  112. package/target/test/xhrCore/RequestTest.spec.js.map +1 -1
  113. package/target/test/xhrCore/RequestTest_23.spec.js +140 -93
  114. package/target/test/xhrCore/RequestTest_23.spec.js.map +1 -1
  115. package/target/test/xhrCore/ResponseTest.spec.js +91 -122
  116. package/target/test/xhrCore/ResponseTest.spec.js.map +1 -1
  117. package/target/test/xhrCore/ResponseTest23.spec.js +83 -114
  118. package/target/test/xhrCore/ResponseTest23.spec.js.map +1 -1
  119. package/target/test/xhrCore/ShadowDomTest.spec.js +61 -30
  120. package/target/test/xhrCore/ShadowDomTest.spec.js.map +1 -1
  121. package/target/test/xhrCore/WebsocketTest.js +93 -60
  122. package/target/test/xhrCore/WebsocketTest.js.map +1 -1
  123. package/target/test/xhrCore/XhrFormDataTest.spec.js +15 -41
  124. package/target/test/xhrCore/XhrFormDataTest.spec.js.map +1 -1
  125. package/target/classes/com/example/jsfs_js_ts/DecoratedFacesJS.class +0 -0
  126. package/target/classes/com/example/jsfs_js_ts/DecoratingResourceHandlerWrapper.class +0 -0
  127. package/target/classes/com/example/jsfs_js_ts/FacesJSMapFileResourceWrapper.class +0 -0
  128. package/target/classes/com/example/jsfs_js_ts/FacesJSMappingDecorator.class +0 -0
  129. package/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst +0 -4
  130. package/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +0 -4
  131. package/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst +0 -1
  132. package/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst +0 -1
  133. package/target/surefire-reports/TEST-com.example.jsfs_js_ts.JsfsJsTsApplicationTests.xml +0 -78
  134. package/target/surefire-reports/com.example.jsfs_js_ts.JsfsJsTsApplicationTests.txt +0 -7
  135. package/target/test-classes/.gz +0 -0
  136. package/target/test-classes/com/example/jsfs_js_ts/JsfsJsTsApplicationTests.class +0 -0
  137. package/target/test-classes/fileuploadtest.html +0 -24
  138. package/target/test-classes/jsf-development.js +0 -3559
  139. package/target/test-classes/jsf-development.js.br +0 -0
  140. package/target/test-classes/jsf-development.js.gz +0 -0
  141. package/target/test-classes/jsf-development.js.map +0 -1
  142. package/target/test-classes/jsf.js +0 -3
  143. package/target/test-classes/jsf.js.br +0 -0
  144. package/target/test-classes/jsf.js.gz +0 -0
@@ -19,7 +19,7 @@
19
19
  <h1>Function init</h1></div>
20
20
  <section class="tsd-panel">
21
21
  <ul class="tsd-signatures tsd-kind-function tsd-parent-kind-namespace">
22
- <li class="tsd-signature tsd-anchor-link" id="init">init<span class="tsd-signature-symbol">(</span>socketClientId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, url<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, channel<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, onopen<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Function</span>, onmessage<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Function</span>, onclose<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Function</span>, behaviors<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, autoConnect<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#init" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" id="icon-anchor-a"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" id="icon-anchor-b"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" id="icon-anchor-c"></path></svg></a></li>
22
+ <li class="tsd-signature tsd-anchor-link" id="init">init<span class="tsd-signature-symbol">(</span>socketClientId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, url<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, channel<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, onopen<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Function</span>, onmessage<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Function</span>, onerror<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Function</span>, onclose<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Function</span>, behaviors<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, autoConnect<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#init" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" id="icon-anchor-a"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" id="icon-anchor-b"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" id="icon-anchor-c"></path></svg></a></li>
23
23
  <li class="tsd-description">
24
24
  <div class="tsd-parameters">
25
25
  <h4 class="tsd-parameters-title">Parameters</h4>
@@ -45,6 +45,10 @@
45
45
  <div class="tsd-comment tsd-typography"><p>The function to be invoked when a message is received.</p>
46
46
  </div></li>
47
47
  <li>
48
+ <h5>onerror: <span class="tsd-signature-type">Function</span></h5>
49
+ <div class="tsd-comment tsd-typography"><p>The function to be invoked when an error occurs.</p>
50
+ </div></li>
51
+ <li>
48
52
  <h5>onclose: <span class="tsd-signature-type">Function</span></h5>
49
53
  <div class="tsd-comment tsd-typography"><p>The function to be invoked when the web socket is closed.</p>
50
54
  </div></li>
@@ -18,7 +18,7 @@
18
18
  <h1>Function ab</h1></div>
19
19
  <section class="tsd-panel">
20
20
  <ul class="tsd-signatures tsd-kind-function tsd-parent-kind-namespace">
21
- <li class="tsd-signature tsd-anchor-link" id="ab">ab<span class="tsd-signature-symbol">(</span>source<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Element</span>, event<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Event</span>, eventName<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, execute<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, render<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, options<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Context</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#ab" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" id="icon-anchor-a"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" id="icon-anchor-b"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" id="icon-anchor-c"></path></svg></a></li>
21
+ <li class="tsd-signature tsd-anchor-link" id="ab">ab<span class="tsd-signature-symbol">(</span>source<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Element</span>, event<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Event</span>, eventName<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, execute<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, render<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, options<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Options</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#ab" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" id="icon-anchor-a"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" id="icon-anchor-b"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" id="icon-anchor-c"></path></svg></a></li>
22
22
  <li class="tsd-description">
23
23
  <div class="tsd-comment tsd-typography"><p>AB function similar to mojarra and Primefaces
24
24
  not part of the spec but a convenience accessor method
@@ -46,7 +46,7 @@ Code provided by Thomas Andraschko</p>
46
46
  <li>
47
47
  <h5>render: <span class="tsd-signature-type">string</span></h5></li>
48
48
  <li>
49
- <h5>options: <span class="tsd-signature-type">Context</span><span class="tsd-signature-symbol"> = {}</span></h5></li></ul></div>
49
+ <h5>options: <span class="tsd-signature-type">Options</span><span class="tsd-signature-symbol"> = {}</span></h5></li></ul></div>
50
50
  <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section></div>
51
51
  <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
52
52
  <div class="tsd-navigation settings">