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

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 (183) hide show
  1. package/dist/docs/assets/main.js +56 -52
  2. package/dist/docs/assets/style.css +23 -0
  3. package/dist/window/faces-development.js +2860 -2999
  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.LICENSE.txt +0 -2
  9. package/dist/window/faces.js.br +0 -0
  10. package/dist/window/faces.js.gz +0 -0
  11. package/dist/window/faces.js.map +1 -1
  12. package/dist/window/jsf-development.js +2865 -3004
  13. package/dist/window/jsf-development.js.br +0 -0
  14. package/dist/window/jsf-development.js.gz +0 -0
  15. package/dist/window/jsf-development.js.map +1 -1
  16. package/dist/window/jsf.js +1 -1
  17. package/dist/window/jsf.js.LICENSE.txt +0 -2
  18. package/dist/window/jsf.js.br +0 -0
  19. package/dist/window/jsf.js.gz +0 -0
  20. package/dist/window/jsf.js.map +1 -1
  21. package/package.json +16 -16
  22. package/src/main/test.xml +23 -0
  23. package/src/main/typescript/@types/definitions/index.d.ts +12 -7
  24. package/src/main/typescript/api/_api.ts +4 -3
  25. package/src/main/typescript/impl/AjaxImpl.ts +125 -41
  26. package/src/main/typescript/impl/core/Const.ts +52 -41
  27. package/src/main/typescript/impl/util/Assertions.ts +16 -8
  28. package/src/main/typescript/impl/util/ExtDomQuery.ts +12 -4
  29. package/src/main/typescript/impl/util/HiddenInputBuilder.ts +89 -0
  30. package/src/main/typescript/impl/util/Lang.ts +9 -11
  31. package/src/main/typescript/impl/util/URLCodec.ts +71 -0
  32. package/src/main/typescript/impl/xhrCore/ErrorData.ts +15 -10
  33. package/src/main/typescript/impl/xhrCore/EventData.ts +2 -2
  34. package/src/main/typescript/impl/xhrCore/IResponseProcessor.ts +15 -1
  35. package/src/main/typescript/impl/xhrCore/RequestDataResolver.ts +69 -24
  36. package/src/main/typescript/impl/xhrCore/ResonseDataResolver.ts +4 -4
  37. package/src/main/typescript/impl/xhrCore/Response.ts +55 -38
  38. package/src/main/typescript/impl/xhrCore/ResponseProcessor.ts +173 -98
  39. package/src/main/typescript/impl/xhrCore/XhrFormData.ts +64 -158
  40. package/src/main/typescript/impl/xhrCore/XhrRequest.ts +36 -21
  41. package/src/main/typescript/myfaces/OamSubmit.ts +29 -13
  42. package/src/main/typescript/test/frameworkBase/_ext/monadish/DomQueryTest.spec.ts +1 -1
  43. package/src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.ts +72 -0
  44. package/src/main/typescript/test/frameworkBase/_ext/shared/XmlResponses.ts +40 -1
  45. package/src/main/typescript/test/impl/ImplTest.spec.ts +3 -3
  46. package/src/main/typescript/test/impl/ImplTest_23.spec.ts +3 -3
  47. package/src/main/typescript/test/xhrCore/EventTests.spec.ts +1 -1
  48. package/src/main/typescript/test/xhrCore/FileUploadTest.spec.ts +2 -0
  49. package/src/main/typescript/test/xhrCore/NamespacesRequestTest.spec.ts +203 -0
  50. package/src/main/typescript/test/xhrCore/OamSubmitTest.spec.ts +177 -0
  51. package/src/main/typescript/test/xhrCore/RequestParamsTest.spec.ts +128 -15
  52. package/src/main/typescript/test/xhrCore/RequestTest.spec.ts +70 -3
  53. package/src/main/typescript/test/xhrCore/RequestTest_23.spec.ts +39 -3
  54. package/src/main/typescript/test/xhrCore/ResponseTest.spec.ts +372 -34
  55. package/src/main/typescript/test/xhrCore/ResponseTest23.spec.ts +43 -9
  56. package/src/main/typescript/test/xhrCore/XhrFormDataTest.spec.ts +67 -49
  57. package/src/main/typescript/test.xml +6 -0
  58. package/src/main/typescript/tsconfig.json +2 -2
  59. package/src/test/resources/jsf-development.js +1 -1
  60. package/src/tmp/test.html +12 -88
  61. package/target/api/_api.js +16 -29
  62. package/target/api/_api.js.map +1 -1
  63. package/target/api/faces.js +4 -4
  64. package/target/api/faces.js.map +1 -1
  65. package/target/api/jsf.js +9 -9
  66. package/target/api/jsf.js.map +1 -1
  67. package/target/classes/com/example/jsfs_js_ts/DecoratedFacesJS.class +0 -0
  68. package/target/classes/com/example/jsfs_js_ts/DecoratingResourceHandlerWrapper.class +0 -0
  69. package/target/classes/com/example/jsfs_js_ts/FacesJSMapFileResourceWrapper.class +0 -0
  70. package/target/classes/com/example/jsfs_js_ts/FacesJSMappingDecorator.class +0 -0
  71. package/target/impl/AjaxImpl.js +155 -89
  72. package/target/impl/AjaxImpl.js.map +1 -1
  73. package/target/impl/PushImpl.js +45 -48
  74. package/target/impl/PushImpl.js.map +1 -1
  75. package/target/impl/core/Const.js +52 -40
  76. package/target/impl/core/Const.js.map +1 -1
  77. package/target/impl/core/Context.js +10 -0
  78. package/target/impl/core/Context.js.map +1 -0
  79. package/target/impl/core/ImplTypes.js +9 -14
  80. package/target/impl/core/ImplTypes.js.map +1 -1
  81. package/target/impl/i18n/Messages.js +3 -4
  82. package/target/impl/i18n/Messages.js.map +1 -1
  83. package/target/impl/util/Assertions.js +20 -24
  84. package/target/impl/util/Assertions.js.map +1 -1
  85. package/target/impl/util/AsyncQueue.js +28 -36
  86. package/target/impl/util/AsyncQueue.js.map +1 -1
  87. package/target/impl/util/ExtDomQuery.js +153 -221
  88. package/target/impl/util/ExtDomQuery.js.map +1 -1
  89. package/target/impl/util/HiddenElementBuilder.js +7 -0
  90. package/target/impl/util/HiddenElementBuilder.js.map +1 -0
  91. package/target/impl/util/HiddenInputBuilder.js +79 -0
  92. package/target/impl/util/HiddenInputBuilder.js.map +1 -0
  93. package/target/impl/util/Lang.js +23 -32
  94. package/target/impl/util/Lang.js.map +1 -1
  95. package/target/impl/util/URLCodec.js +69 -0
  96. package/target/impl/util/URLCodec.js.map +1 -0
  97. package/target/impl/xhrCore/ErrorData.js +41 -64
  98. package/target/impl/xhrCore/ErrorData.js.map +1 -1
  99. package/target/impl/xhrCore/EventData.js +10 -13
  100. package/target/impl/xhrCore/EventData.js.map +1 -1
  101. package/target/impl/xhrCore/RequestContext.js +11 -0
  102. package/target/impl/xhrCore/RequestContext.js.map +1 -0
  103. package/target/impl/xhrCore/RequestDataResolver.js +71 -27
  104. package/target/impl/xhrCore/RequestDataResolver.js.map +1 -1
  105. package/target/impl/xhrCore/ResonseDataResolver.js +16 -16
  106. package/target/impl/xhrCore/ResonseDataResolver.js.map +1 -1
  107. package/target/impl/xhrCore/Response.js +43 -28
  108. package/target/impl/xhrCore/Response.js.map +1 -1
  109. package/target/impl/xhrCore/ResponseProcessor.js +217 -162
  110. package/target/impl/xhrCore/ResponseProcessor.js.map +1 -1
  111. package/target/impl/xhrCore/XhrFormData.js +77 -199
  112. package/target/impl/xhrCore/XhrFormData.js.map +1 -1
  113. package/target/impl/xhrCore/XhrRequest.js +102 -103
  114. package/target/impl/xhrCore/XhrRequest.js.map +1 -1
  115. package/target/myfaces/OamSubmit.js +33 -24
  116. package/target/myfaces/OamSubmit.js.map +1 -1
  117. package/target/test/frameworkBase/LangTest.spec.js +46 -32
  118. package/target/test/frameworkBase/LangTest.spec.js.map +1 -1
  119. package/target/test/frameworkBase/_ext/monadish/DomQueryTest.spec.js +238 -228
  120. package/target/test/frameworkBase/_ext/monadish/DomQueryTest.spec.js.map +1 -1
  121. package/target/test/frameworkBase/_ext/monadish/LangTest.spec.js +45 -31
  122. package/target/test/frameworkBase/_ext/monadish/LangTest.spec.js.map +1 -1
  123. package/target/test/frameworkBase/_ext/monadish/MappingProbes.js +24 -33
  124. package/target/test/frameworkBase/_ext/monadish/MappingProbes.js.map +1 -1
  125. package/target/test/frameworkBase/_ext/monadish/MappingTest.spec.js +8 -8
  126. package/target/test/frameworkBase/_ext/monadish/MappingTest.spec.js.map +1 -1
  127. package/target/test/frameworkBase/_ext/monadish/MonadTest.spec.js +31 -31
  128. package/target/test/frameworkBase/_ext/monadish/MonadTest.spec.js.map +1 -1
  129. package/target/test/frameworkBase/_ext/monadish/StreamTest.spec.js +50 -48
  130. package/target/test/frameworkBase/_ext/monadish/StreamTest.spec.js.map +1 -1
  131. package/target/test/frameworkBase/_ext/shared/StandardInits.js +310 -132
  132. package/target/test/frameworkBase/_ext/shared/StandardInits.js.map +1 -1
  133. package/target/test/frameworkBase/_ext/shared/XmlResponses.js +235 -22
  134. package/target/test/frameworkBase/_ext/shared/XmlResponses.js.map +1 -1
  135. package/target/test/impl/ImplTest.spec.js +32 -59
  136. package/target/test/impl/ImplTest.spec.js.map +1 -1
  137. package/target/test/impl/ImplTest_23.spec.js +32 -59
  138. package/target/test/impl/ImplTest_23.spec.js.map +1 -1
  139. package/target/test/impl/SeparatorCharsTest.spec.js +17 -17
  140. package/target/test/impl/SeparatorCharsTest.spec.js.map +1 -1
  141. package/target/test/myfaces/OamSubmit.spec.js +25 -25
  142. package/target/test/myfaces/OamSubmit.spec.js.map +1 -1
  143. package/target/test/queue/AsynchronousProbe.js +23 -29
  144. package/target/test/queue/AsynchronousProbe.js.map +1 -1
  145. package/target/test/queue/AsynchronousQueueTest.spec.js +39 -70
  146. package/target/test/queue/AsynchronousQueueTest.spec.js.map +1 -1
  147. package/target/test/xhrCore/EventTests.spec.js +43 -74
  148. package/target/test/xhrCore/EventTests.spec.js.map +1 -1
  149. package/target/test/xhrCore/FakeWebsocket.js +14 -16
  150. package/target/test/xhrCore/FakeWebsocket.js.map +1 -1
  151. package/target/test/xhrCore/FileUploadTest.spec.js +47 -77
  152. package/target/test/xhrCore/FileUploadTest.spec.js.map +1 -1
  153. package/target/test/xhrCore/NamespacesRequestTest.spec.js +204 -0
  154. package/target/test/xhrCore/NamespacesRequestTest.spec.js.map +1 -0
  155. package/target/test/xhrCore/OamSubmitTest.spec.js +180 -0
  156. package/target/test/xhrCore/OamSubmitTest.spec.js.map +1 -0
  157. package/target/test/xhrCore/RequestParamsTest.spec.js +143 -72
  158. package/target/test/xhrCore/RequestParamsTest.spec.js.map +1 -1
  159. package/target/test/xhrCore/RequestTest.spec.js +173 -149
  160. package/target/test/xhrCore/RequestTest.spec.js.map +1 -1
  161. package/target/test/xhrCore/RequestTest_23.spec.js +127 -142
  162. package/target/test/xhrCore/RequestTest_23.spec.js.map +1 -1
  163. package/target/test/xhrCore/ResponseTest.spec.js +415 -100
  164. package/target/test/xhrCore/ResponseTest.spec.js.map +1 -1
  165. package/target/test/xhrCore/ResponseTest23.spec.js +152 -91
  166. package/target/test/xhrCore/ResponseTest23.spec.js.map +1 -1
  167. package/target/test/xhrCore/ShadowDomTest.spec.js +30 -61
  168. package/target/test/xhrCore/ShadowDomTest.spec.js.map +1 -1
  169. package/target/test/xhrCore/WebsocketTest.js +60 -93
  170. package/target/test/xhrCore/WebsocketTest.js.map +1 -1
  171. package/target/test/xhrCore/XhrFormDataTest.spec.js +79 -30
  172. package/target/test/xhrCore/XhrFormDataTest.spec.js.map +1 -1
  173. package/target/test-classes/.gz +0 -0
  174. package/target/test-classes/com/example/jsfs_js_ts/JsfsJsTsApplicationTests.class +0 -0
  175. package/target/test-classes/fileuploadtest.html +24 -0
  176. package/target/test-classes/jsf-development.js +3559 -0
  177. package/target/test-classes/jsf-development.js.br +0 -0
  178. package/target/test-classes/jsf-development.js.gz +0 -0
  179. package/target/test-classes/jsf-development.js.map +1 -0
  180. package/target/test-classes/jsf.js +3 -0
  181. package/target/test-classes/jsf.js.br +0 -0
  182. package/target/test-classes/jsf.js.gz +0 -0
  183. package/tmp.xml +36 -0
@@ -19,58 +19,75 @@ import {DQ} from "mona-dish";
19
19
  import * as sinon from 'sinon';
20
20
  import {XhrFormData} from "../../impl/xhrCore/XhrFormData";
21
21
  import {expect} from "chai";
22
+ import {StandardInits} from "../frameworkBase/_ext/shared/StandardInits";
23
+ import defaultMyFaces = StandardInits.defaultMyFaces;
24
+ import {Implementation} from "../../impl/AjaxImpl";
22
25
 
23
26
  const jsdom = require("jsdom");
24
27
  const {JSDOM} = jsdom;
25
28
 
26
29
  describe('XhrFormData tests', function () {
27
30
 
28
- beforeEach(function () {
29
-
30
- let dom = new JSDOM(`
31
- <!DOCTYPE html>
32
- <html lang="en">
33
- <head>
34
- <meta charset="UTF-8">
35
- <title>Title</title>
36
- </head>
37
- <body>
38
- <div id="id_1"></div>
39
- <div id="id_2" booga="blarg"></div>
40
- <div id="id_3"></div>
41
- <div id="id_4"></div>
42
- </body>
43
- </html>
44
-
45
- `, {
46
- contentType: "text/html",
47
- runScripts: "dangerously"
31
+ beforeEach(async function () {
32
+
33
+ let waitForResult = defaultMyFaces();
34
+
35
+ return waitForResult.then((close) => {
36
+
37
+ this.xhr = sinon.useFakeXMLHttpRequest();
38
+ this.requests = [];
39
+ this.xhr.onCreate = (xhr) => {
40
+ this.requests.push(xhr);
41
+ };
42
+ (<any>global).XMLHttpRequest = this.xhr;
43
+ window.XMLHttpRequest = this.xhr;
44
+
45
+ this.jsfAjaxResponse = sinon.spy((<any>global).faces.ajax, "response");
46
+
47
+ this.closeIt = () => {
48
+ (<any>global).XMLHttpRequest = window.XMLHttpRequest = this.xhr.restore();
49
+ this.jsfAjaxResponse.restore();
50
+ Implementation.reset();
51
+ close();
52
+ }
53
+ });
48
54
  });
49
55
 
50
- let window = dom.window;
51
-
52
- (<any>global).window = window;
53
- (<any>global).body = window.document.body;
54
- (<any>global).document = window.document;
55
- (<any>global).navigator = {
56
- language: "en-En"
57
- };
58
-
59
- this.xhr = sinon.useFakeXMLHttpRequest();
60
- this.requests = [];
61
- this.xhr.onCreate = (xhr) => {
62
- this.requests.push(xhr);
63
- };
64
- (<any>global).XMLHttpRequest = this.xhr;
65
- window.XMLHttpRequest = this.xhr;
66
- });
67
-
68
- this.afterEach(function () {
69
- (<any>global).XMLHttpRequest = window.XMLHttpRequest = this.xhr.restore();
70
- });
71
-
72
- it("must have multiple values for a name", function () {
73
- window.document.body.innerHTML = `<form id="page::form">
56
+ beforeEach(function () {
57
+
58
+ let waitForResult = defaultMyFaces();
59
+
60
+ return waitForResult.then((close) => {
61
+ (<any>global).window = window;
62
+ (<any>global).body = window.document.body;
63
+ (<any>global).document = window.document;
64
+ global.body.innerHTML = `
65
+ <div id="id_1"></div>
66
+ <div id="id_2" booga="blarg"></div>
67
+ <div id="id_3"></div>
68
+ <div id="id_4"></div>
69
+ `;
70
+ (<any>global).navigator = {
71
+ language: "en-En"
72
+ };
73
+
74
+ this.xhr = sinon.useFakeXMLHttpRequest();
75
+ this.requests = [];
76
+ this.xhr.onCreate = (xhr) => {
77
+ this.requests.push(xhr);
78
+ };
79
+ (<any>global).XMLHttpRequest = this.xhr;
80
+ window.XMLHttpRequest = this.xhr;
81
+
82
+ });
83
+
84
+ this.afterEach(function () {
85
+ (<any>global).XMLHttpRequest = window.XMLHttpRequest = this.xhr.restore();
86
+ });
87
+ });
88
+
89
+ it("must have multiple values for a name", function () {
90
+ window.document.body.innerHTML = `<form id="page::form">
74
91
  <tobago-select-many-checkbox id="page:animals">
75
92
  <label for="page:animals">Checkbox Group</label>
76
93
  <label><input type="checkbox" name="page:animals" id="page:animals::0" value="Cat" checked="checked">Cat</label>
@@ -84,10 +101,11 @@ describe('XhrFormData tests', function () {
84
101
  </div>
85
102
  </form>`;
86
103
 
87
- const xhrFormData = new XhrFormData(DQ.byId("page::form"));
88
- const formData = xhrFormData.toString();
104
+ global.debugf2 = true;
105
+ const xhrFormData = new XhrFormData(DQ.byId("page::form"));
106
+ const formData = xhrFormData.toString();
89
107
 
90
- expect(formData).to.contain("animals=Cat");
91
- expect(formData).to.contain("animals=Fox");
92
- });
108
+ expect(formData).to.contain("animals=Cat");
109
+ expect(formData).to.contain("animals=Fox");
110
+ });
93
111
  });
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <partial-response id='viewroot_1'>
3
+ <changes>
4
+ <update id='viewroot_1:jakarta.faces.ViewState:1'><![[updatedVST]]></update>
5
+ </changes>
6
+ </partial-response>
@@ -16,7 +16,7 @@
16
16
  */
17
17
  {
18
18
  "compilerOptions": {
19
- "target": "es5",
19
+ "target": "es2015",
20
20
  "lib": [
21
21
  "es2015.collection",
22
22
  "dom"
@@ -29,7 +29,7 @@
29
29
  "module": "commonjs",
30
30
  "sourceMap": true,
31
31
  "typeRoots": [
32
- "../../build/npm/node_modules/@types",
32
+ "../../../node_modules/@types",
33
33
  "./@types/"
34
34
  ]
35
35
 
@@ -3121,7 +3121,7 @@ var XhrFormData = /** @class */ (function (_super) {
3121
3121
  */
3122
3122
  XhrFormData.prototype.assignEncodedString = function (encoded) {
3123
3123
  var keyValueEntries = decodeURIComponent(encoded).split(/&/gi);
3124
- this.assignString(keyValueEntries);
3124
+ this.assignKeyValueEntries(keyValueEntries);
3125
3125
  };
3126
3126
  XhrFormData.prototype.assignString = function (keyValueEntries) {
3127
3127
  var toMerge = new mona_dish_1.Config({});
package/src/tmp/test.html CHANGED
@@ -1,92 +1,16 @@
1
- <h2>protocol testcase1</h2>
2
-
3
- <div id="centerDiv">
4
-
5
- <h1>Selenium Testprobe for insert update delete and attribute change</h1>
6
-
7
- <h2>This test tests all aspects of the protocol, under xhr and iframe conditions</h2>
8
-
9
- <div id="testResults">
10
-
11
- <h3>Test Results</h3>
12
-
13
- <div id="evalarea1">booga</div>
14
-
15
- <div id="evalarea2">eval area 2 triggered by update</div>
16
-
17
- <div id="evalarea3">eval area 3 triggered by insert</div>
18
-
19
- <div id="evalarea4">eval area 4 triggered by a click on the changed attributes area</div>
20
-
21
- <div id="changesArea">update insert area</div>
22
-
23
- <div id="deleteable">delete area will be deleted once you press the delete button</div>
24
-
25
- <div id="attributeChange">attributes changes area</div>
26
-
27
- <div id="resource_area_1"></div>
28
- <div id="resource_area_2"></div>
29
- <div id="resource_area_3"></div>
30
- <script nonce="test12d3" type="text/javascript" src="../../../xhrCore/fixtures/nonce_script.js"></script>
31
-
32
- </div>
33
-
34
- <h2>Call actions via normal ppr</h2>
35
-
36
- <form id="form1" action="./test.mockup">
37
-
38
- <input type="hidden" id="jakarta.faces.ViewState" name="jakarta.faces.ViewState" value="blubbblubblubb">
39
-
40
- <input type="button" id="cmd_eval" value="eval"
41
- onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'eval1');">
42
-
43
- <input type="button" id="cmd_update_insert" value="update insert"
44
- onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'updateinsert1');">
45
-
46
- <input type="button" id="cmd_simple_resource" value="simple resource"
47
- onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'simpleresource');">
48
-
49
- <input type="button" id="cmd_complex_resource" value="complex resource"
50
- onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'complex_resource');">
51
-
52
- <input type="button" id="cmd_complex_resource2" value="complex resource2"
53
- onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'complex_resource2');">
54
-
55
- <input type="button" id="cmd_update_insert2" value="update insert second protocol path"
56
- onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'updateinsert2');">
57
-
58
- <input type="button" id="cmd_delete" value="delete"
59
- onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'delete1');">
60
-
61
- <input type="button" id="cmd_replace" value="Replace Body"
62
- onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'body_replace1');">
63
-
64
- <input type="button" id="cmd_attributeschange" value="change attributes"
65
- onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'attributes');">
66
-
67
- <input type="button" id="cmd_illegalresponse" value="illegal response, error trigger"
68
- onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'illegalResponse');">
69
-
70
- <input type="button" id="cmd_viewstate" value="Viewstate only update trigger"
71
- onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'viewstate');">
72
-
73
- <input type="button" id="cmd_error" value="Server error with error response"
74
- onclick="emitPPR(this, ('undefined' == typeof event)? null: event, 'errors');">
75
-
76
- <input type="button" id="cmd_error_component" value="Error: no component given"
77
- onclick="(window.faces || window.jsf).ajax.request(null, event, {}); return false">
78
1
 
2
+ <div id="viewroot_1">
3
+ <form id="viewroot_1:form1">
4
+ <button type="submit" id="viewroot_1:submit_1"></button>
5
+ <input type="hidden" id="viewroot_1:form1:jakarta.faces.ViewState:1" name="jakarta.faces.ViewState" value="updatedVST">
79
6
  </form>
7
+ <form id="viewroot_1:form2">
8
+ <button type="submit" id="viewroot_1:submit_2"></button>
9
+ </form>
10
+ </div>
80
11
 
81
- <script type="text/javascript">
82
- document.getElementById("evalarea1").innerHTML = "booga";
83
-
84
- var target = "./test.mockup";
85
-
86
- function emitPPR(source, event, action, useIframe, formName) {
87
- document.getElementById(formName || "form1").action = target;
88
-
89
- (window?.faces ?? window.jsf).ajax.request(/*String|Dom Node*/ source, /*|EVENT|*/ (window.event) ? window.event : event, /*{|OPTIONS|}*/ {op: action});
90
- }
91
- </script>
12
+ <div id="viewroot_2">
13
+ <form id="viewroot_2:form1">
14
+ <button type="submit" id="viewroot_1:submit_2"></button>
15
+ </form>
92
16
  </div>
@@ -1,13 +1,4 @@
1
1
  "use strict";
2
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
4
- if (ar || !(i in from)) {
5
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
6
- ar[i] = from[i];
7
- }
8
- }
9
- return to.concat(ar || Array.prototype.slice.call(from));
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.myfaces = exports.faces = void 0;
13
4
  /*! Licensed to the Apache Software Foundation (ASF) under one or more
@@ -25,10 +16,10 @@ exports.myfaces = exports.faces = void 0;
25
16
  * See the License for the specific language governing permissions and
26
17
  * limitations under the License.
27
18
  */
28
- var AjaxImpl_1 = require("../impl/AjaxImpl");
29
- var PushImpl_1 = require("../impl/PushImpl");
30
- var OamSubmit_1 = require("../myfaces/OamSubmit");
31
- var Const_1 = require("../impl/core/Const");
19
+ const AjaxImpl_1 = require("../impl/AjaxImpl");
20
+ const PushImpl_1 = require("../impl/PushImpl");
21
+ const OamSubmit_1 = require("../myfaces/OamSubmit");
22
+ const Const_1 = require("../impl/core/Const");
32
23
  //we use modules to get a proper jsdoc and static/map structure in the calls
33
24
  //as per spec requirement
34
25
  var faces;
@@ -106,13 +97,13 @@ var faces;
106
97
  faces.getClientWindow = getClientWindow;
107
98
  //private helper functions
108
99
  function getSeparatorChar() {
109
- var sep = '#{facesContext.namingContainerSeparatorChar}';
100
+ const sep = '#{facesContext.namingContainerSeparatorChar}';
110
101
  //We now enable standalone mode, the separator char was not mapped we make a fallback to 2.3 behavior
111
102
  //the idea is that the separator char is provided from the underlying container, but if not then we
112
103
  //will perform a fallback (aka 2.3 has the url fallback behavior)
113
104
  return (sep.match(/\#\{facesContext.namingContainerSeparatorChar\}/gi)) ? AjaxImpl_1.Implementation.getSeparatorChar() : sep;
114
105
  }
115
- var ajax;
106
+ let ajax;
116
107
  (function (ajax) {
117
108
  "use strict";
118
109
  /**
@@ -177,7 +168,7 @@ var faces;
177
168
  }
178
169
  ajax.addOnEvent = addOnEvent;
179
170
  })(ajax = faces.ajax || (faces.ajax = {}));
180
- var util;
171
+ let util;
181
172
  (function (util) {
182
173
  /**
183
174
  * varargs function which executes a chain of code (functions or any other code)
@@ -190,16 +181,12 @@ var faces;
190
181
  * @param funcs ... arbitrary array of functions or strings
191
182
  * @returns true if the chain has succeeded false otherwise
192
183
  */
193
- function chain(source, event) {
194
- var funcs = [];
195
- for (var _i = 2; _i < arguments.length; _i++) {
196
- funcs[_i - 2] = arguments[_i];
197
- }
198
- return AjaxImpl_1.Implementation.chain.apply(AjaxImpl_1.Implementation, __spreadArray([source, event], funcs, false));
184
+ function chain(source, event, ...funcs) {
185
+ return AjaxImpl_1.Implementation.chain(source, event, ...funcs);
199
186
  }
200
187
  util.chain = chain;
201
188
  })(util = faces.util || (faces.util = {}));
202
- var push;
189
+ let push;
203
190
  (function (push) {
204
191
  /**
205
192
  * @param socketClientId the sockets client identifier
@@ -250,19 +237,19 @@ var myfaces;
250
237
  * @param render
251
238
  * @param options
252
239
  */
253
- function ab(source, event, eventName, execute, render, options) {
254
- var _a;
255
- if (options === void 0) { options = {}; }
240
+ function ab(source, event, eventName, execute, render, options = {}) {
241
+ var _a, _b;
256
242
  if (eventName) {
257
- options[(0, Const_1.$nsp)(Const_1.P_BEHAVIOR_EVENT)] = eventName;
243
+ options[Const_1.CTX_OPTIONS_PARAMS] = (_a = options === null || options === void 0 ? void 0 : options[Const_1.CTX_OPTIONS_PARAMS]) !== null && _a !== void 0 ? _a : {};
244
+ options[Const_1.CTX_OPTIONS_PARAMS][(0, Const_1.$nsp)(Const_1.P_BEHAVIOR_EVENT)] = eventName;
258
245
  }
259
246
  if (execute) {
260
- options[Const_1.CTX_PARAM_EXECUTE] = execute;
247
+ options[Const_1.CTX_OPTIONS_EXECUTE] = execute;
261
248
  }
262
249
  if (render) {
263
250
  options[Const_1.CTX_PARAM_RENDER] = render;
264
251
  }
265
- ((_a = window === null || window === void 0 ? void 0 : window.faces) !== null && _a !== void 0 ? _a : window.jsf).ajax.request(source, event, options);
252
+ ((_b = window === null || window === void 0 ? void 0 : window.faces) !== null && _b !== void 0 ? _b : window.jsf).ajax.request(source, event, options);
266
253
  }
267
254
  myfaces.ab = ab;
268
255
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"_api.js","sourceRoot":"","sources":["../../src/main/typescript/api/_api.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,6CAAgD;AAChD,6CAA0C;AAC1C,kDAAiD;AACjD,4CAA+F;AAI/F,4EAA4E;AAC5E,yBAAyB;AACzB,IAAc,KAAK,CAuNlB;AAvND,WAAc,KAAK;IAGf;;;;;;;;;;OAUG;IACQ,iBAAW,GAAG,MAAM,CAAC;IAChC;;;;;;;OAOG;IACQ,iBAAW,GAAG,CAAC,CAAC;IAE3B;;OAEG;IACQ,mBAAa,GAAW,gBAAgB,EAAE,CAAC;IAEtD,qCAAqC;IACrC;;OAEG;IACQ,iBAAW,GAAW,oDAAoD,CAAC;IACtF,0CAA0C;IAE1C;;;;;;;;;;;;;;OAcG;IACH,SAAgB,eAAe;QAC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CAAC;QAFe,UAAK,QAEpB,CAAA;IAEL,CAAC,EA1Ca,IAAI,GAAJ,UAAI,KAAJ,UAAI,QA0CjB;AACL,CAAC,EAvNa,KAAK,GAAL,aAAK,KAAL,aAAK,QAuNlB;AAED,IAAc,OAAO,CAgCpB;AAhCD,WAAc,OAAO;IACjB;;;;;;;;;;;OAWG;IACH,SAAgB,EAAE,CAAC,MAAe,EAAE,KAAY,EAAE,SAAiB,EAAE,OAAe,EAAE,MAAc,EAAE,UAAmB,EAAE;;QACvH,IAAI,SAAS,EAAE;YACZ,OAAO,CAAC,0BAAkB,CAAC,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,0BAAkB,CAAC,mCAAI,EAAE,CAAC;YAClE,OAAO,CAAC,0BAAkB,CAAC,CAAC,IAAA,YAAI,EAAC,wBAAgB,CAAC,CAAC,GAAG,SAAS,CAAC;SAClE;QACD,IAAI,OAAO,EAAE;YACT,OAAO,CAAC,2BAAmB,CAAC,GAAG,OAAO,CAAC;SAC1C;QACD,IAAI,MAAM,EAAE;YACR,OAAO,CAAC,wBAAgB,CAAC,GAAG,MAAM,CAAC;SACtC;QAED,CAAC,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,mCAAI,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAbe,UAAE,KAajB,CAAA;IAED;;OAEG;IACU,WAAG,GAAG,eAAI,CAAC;AAC5B,CAAC,EAhCa,OAAO,GAAP,eAAO,KAAP,eAAO,QAgCpB"}
@@ -31,14 +31,14 @@ exports.myfaces = exports.faces = void 0;
31
31
  */
32
32
  if (!window.faces) {
33
33
  //we lazily load the code to prevent ram bloat
34
- var faces_1 = require("./_api").faces;
35
- window['faces'] = (_a = window === null || window === void 0 ? void 0 : window.faces) !== null && _a !== void 0 ? _a : faces_1;
34
+ const faces = require("./_api").faces;
35
+ window['faces'] = (_a = window === null || window === void 0 ? void 0 : window.faces) !== null && _a !== void 0 ? _a : faces;
36
36
  }
37
37
  if (!((_b = window === null || window === void 0 ? void 0 : window.myfaces) === null || _b === void 0 ? void 0 : _b.ab)) {
38
- var myfaces_1 = require("./_api").myfaces;
38
+ const myfaces = require("./_api").myfaces;
39
39
  //namespace might be extended is not exclusively reserved so we merge
40
40
  window["myfaces"] = (_c = window === null || window === void 0 ? void 0 : window.myfaces) !== null && _c !== void 0 ? _c : {};
41
- Object.keys(myfaces_1).forEach(function (key) { var _a, _b; return window.myfaces[key] = (_b = (_a = window.myfaces) === null || _a === void 0 ? void 0 : _a[key]) !== null && _b !== void 0 ? _b : myfaces_1[key]; });
41
+ Object.keys(myfaces).forEach(key => { var _a, _b; return window.myfaces[key] = (_b = (_a = window.myfaces) === null || _a === void 0 ? void 0 : _a[key]) !== null && _b !== void 0 ? _b : myfaces[key]; });
42
42
  }
43
43
  exports.faces = window.faces;
44
44
  exports.myfaces = window.myfaces;
@@ -1 +1 @@
1
- {"version":3,"file":"faces.js","sourceRoot":"","sources":["../../src/main/typescript/api/faces.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,YAAY,CAAC;;;;AAEb;;;;;;;;;;;GAWG;AACH,IAAG,CAAC,MAAM,CAAC,KAAK,EAAE;IACd,8CAA8C;IAC9C,IAAM,OAAK,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC;IACtC,MAAM,CAAC,OAAO,CAAC,GAAG,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,mCAAI,OAAK,CAAC;CAC5C;AACD,IAAG,CAAC,CAAA,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,0CAAE,EAAE,CAAA,EAAE;IACrB,IAAM,SAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC;IAE1C,qEAAqE;IACpE,MAAc,CAAC,SAAS,CAAC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AC,OAAO,0CAAG,GAAG,CAAC,mCAAI,OAAO,CAAC,GAAG,CAAC,CAAA,EAAA,CAAC,CAAC;CACpG;AACU,QAAA,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;AACrB,QAAA,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC"}
package/target/api/jsf.js CHANGED
@@ -24,31 +24,31 @@ exports.myfaces = exports.jsf = void 0;
24
24
  * on jsf2.3 or earlier level, for 4.0+ please include faces.js
25
25
  */
26
26
  if (!(window === null || window === void 0 ? void 0 : window.jsf)) {
27
- var faces_1 = require("./_api").faces;
28
- window['jsf'] = (_a = window === null || window === void 0 ? void 0 : window.jsf) !== null && _a !== void 0 ? _a : faces_1;
27
+ const faces = require("./_api").faces;
28
+ window['jsf'] = (_a = window === null || window === void 0 ? void 0 : window.jsf) !== null && _a !== void 0 ? _a : faces;
29
29
  window.jsf.specversion = 230000;
30
30
  delete window.jsf.contextpath;
31
- var faces4Init_1 = faces_1.push.init;
31
+ let faces4Init = faces.push.init;
32
32
  /*
33
33
  * we shim back the breaking api change from 3.0 to 4.0
34
34
  * onerror is gone
35
35
  */
36
- faces_1.push.init = function (socketClientId, url, channel, onopen, onmessage,
36
+ faces.push.init = (socketClientId, url, channel, onopen, onmessage,
37
37
  // no on error api change for 4.0
38
38
  //onerror: Function,
39
- onclose, behaviors, autoConnect) {
40
- faces4Init_1(socketClientId, url, channel, onopen, onmessage, null, onclose, behaviors, autoConnect);
39
+ onclose, behaviors, autoConnect) => {
40
+ faces4Init(socketClientId, url, channel, onopen, onmessage, null, onclose, behaviors, autoConnect);
41
41
  };
42
42
  }
43
43
  if (!((_b = window === null || window === void 0 ? void 0 : window.myfaces) === null || _b === void 0 ? void 0 : _b.ab)) {
44
- var myfaces_1 = require("./_api").myfaces;
44
+ const myfaces = require("./_api").myfaces;
45
45
  //namespace might be extended is not exclusively reserved so we merge
46
46
  window["myfaces"] = (_c = window === null || window === void 0 ? void 0 : window.myfaces) !== null && _c !== void 0 ? _c : {};
47
47
  if (!((_d = window === null || window === void 0 ? void 0 : window.myfaces) === null || _d === void 0 ? void 0 : _d.ab)) {
48
- var myfaces_2 = require("./_api").myfaces;
48
+ const myfaces = require("./_api").myfaces;
49
49
  //namespace might be extended is not exclusively reserved so we merge
50
50
  window["myfaces"] = (_e = window === null || window === void 0 ? void 0 : window.myfaces) !== null && _e !== void 0 ? _e : {};
51
- Object.keys(myfaces_2).forEach(function (key) { var _a, _b; return window.myfaces[key] = (_b = (_a = window.myfaces) === null || _a === void 0 ? void 0 : _a[key]) !== null && _b !== void 0 ? _b : myfaces_2[key]; });
51
+ Object.keys(myfaces).forEach(key => { var _a, _b; return window.myfaces[key] = (_b = (_a = window.myfaces) === null || _a === void 0 ? void 0 : _a[key]) !== null && _b !== void 0 ? _b : myfaces[key]; });
52
52
  }
53
53
  }
54
54
  exports.jsf = window.jsf;
@@ -1 +1 @@
1
- {"version":3,"file":"jsf.js","sourceRoot":"","sources":["../../src/main/typescript/api/jsf.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,YAAY,CAAC;;;;AACb;;;;;GAKG;AACH,IAAG,CAAC,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,GAAG,CAAA,EAAE;IACb,IAAM,OAAK,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC;IACrC,MAAc,CAAC,KAAK,CAAC,GAAG,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,GAAG,mCAAI,OAAK,CAAC;IAC9C,MAAM,CAAC,GAAG,CAAC,WAAW,GAAG,MAAM,CAAC;IAChC,OAAO,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC;IAE9B,IAAI,YAAU,GAAG,OAAK,CAAC,IAAI,CAAC,IAAI,CAAC;IACjC;;;OAGG;IACH,OAAK,CAAC,IAAI,CAAC,IAAI,GAAG,UAAC,cAAsB,EACtB,GAAW,EACX,OAAe,EACf,MAAgB,EAChB,SAAmB;IACn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