jsf.js_next_gen 4.0.0-beta-11 → 4.0.0-beta-12

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 (146) hide show
  1. package/dist/window/faces-development.js +164 -49
  2. package/dist/window/faces-development.js.br +0 -0
  3. package/dist/window/faces-development.js.gz +0 -0
  4. package/dist/window/faces-development.js.map +1 -1
  5. package/dist/window/faces.js +1 -1
  6. package/dist/window/faces.js.br +0 -0
  7. package/dist/window/faces.js.gz +0 -0
  8. package/dist/window/faces.js.map +1 -1
  9. package/dist/window/jsf-development.js +164 -49
  10. package/dist/window/jsf-development.js.br +0 -0
  11. package/dist/window/jsf-development.js.gz +0 -0
  12. package/dist/window/jsf-development.js.map +1 -1
  13. package/dist/window/jsf.js +1 -1
  14. package/dist/window/jsf.js.br +0 -0
  15. package/dist/window/jsf.js.gz +0 -0
  16. package/dist/window/jsf.js.map +1 -1
  17. package/package.json +3 -3
  18. package/pom.xml +14 -0
  19. package/src/main/java/com/example/jsfs_js_ts/DecoratedFacesJS.java +80 -0
  20. package/src/main/java/com/example/jsfs_js_ts/DecoratingResourceHandlerWrapper.java +54 -0
  21. package/src/main/typescript/impl/util/ExtDomQuery.ts +10 -6
  22. package/src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.ts +0 -2
  23. package/target/api/{Jsf.js → jsf.js} +0 -0
  24. package/target/api/{Jsf.js.map → jsf.js.map} +0 -0
  25. package/target/impl/util/ExtDomQuery.js +10 -6
  26. package/target/impl/util/ExtDomQuery.js.map +1 -1
  27. package/target/test/frameworkBase/_ext/shared/StandardInits.js +0 -2
  28. package/target/test/frameworkBase/_ext/shared/StandardInits.js.map +1 -1
  29. package/src/main/java/com/example/jsfs_js_ts/JsfsJsTsApplication.java +0 -12
  30. package/target/api/_faces.js +0 -251
  31. package/target/api/_faces.js.map +0 -1
  32. package/target/classes/com/example/jsfs_js_ts/JsfsJsTsApplication.class +0 -0
  33. package/target/impl/util/ListenerQueue.js +0 -3
  34. package/target/impl/util/ListenerQueue.js.map +0 -1
  35. package/target/main/typescript/api/Jsf.js +0 -258
  36. package/target/main/typescript/api/Jsf.js.map +0 -1
  37. package/target/main/typescript/impl/AjaxImpl.js +0 -569
  38. package/target/main/typescript/impl/AjaxImpl.js.map +0 -1
  39. package/target/main/typescript/impl/PushImpl.js +0 -215
  40. package/target/main/typescript/impl/PushImpl.js.map +0 -1
  41. package/target/main/typescript/impl/core/Const.js +0 -135
  42. package/target/main/typescript/impl/core/Const.js.map +0 -1
  43. package/target/main/typescript/impl/core/ImplTypes.js +0 -43
  44. package/target/main/typescript/impl/core/ImplTypes.js.map +0 -1
  45. package/target/main/typescript/impl/i18n/Messages.js +0 -114
  46. package/target/main/typescript/impl/i18n/Messages.js.map +0 -1
  47. package/target/main/typescript/impl/util/Assertions.js +0 -90
  48. package/target/main/typescript/impl/util/Assertions.js.map +0 -1
  49. package/target/main/typescript/impl/util/AsyncQueue.js +0 -104
  50. package/target/main/typescript/impl/util/AsyncQueue.js.map +0 -1
  51. package/target/main/typescript/impl/util/AsyncRunnable.js +0 -18
  52. package/target/main/typescript/impl/util/AsyncRunnable.js.map +0 -1
  53. package/target/main/typescript/impl/util/ExtDomQuery.js +0 -129
  54. package/target/main/typescript/impl/util/ExtDomQuery.js.map +0 -1
  55. package/target/main/typescript/impl/util/Lang.js +0 -215
  56. package/target/main/typescript/impl/util/Lang.js.map +0 -1
  57. package/target/main/typescript/impl/util/ListenerQueue.js +0 -3
  58. package/target/main/typescript/impl/util/ListenerQueue.js.map +0 -1
  59. package/target/main/typescript/impl/xhrCore/ErrorData.js +0 -89
  60. package/target/main/typescript/impl/xhrCore/ErrorData.js.map +0 -1
  61. package/target/main/typescript/impl/xhrCore/EventData.js +0 -30
  62. package/target/main/typescript/impl/xhrCore/EventData.js.map +0 -1
  63. package/target/main/typescript/impl/xhrCore/IResponseProcessor.js +0 -3
  64. package/target/main/typescript/impl/xhrCore/IResponseProcessor.js.map +0 -1
  65. package/target/main/typescript/impl/xhrCore/RequestDataResolver.js +0 -143
  66. package/target/main/typescript/impl/xhrCore/RequestDataResolver.js.map +0 -1
  67. package/target/main/typescript/impl/xhrCore/ResonseDataResolver.js +0 -103
  68. package/target/main/typescript/impl/xhrCore/ResonseDataResolver.js.map +0 -1
  69. package/target/main/typescript/impl/xhrCore/Response.js +0 -167
  70. package/target/main/typescript/impl/xhrCore/Response.js.map +0 -1
  71. package/target/main/typescript/impl/xhrCore/ResponseProcessor.js +0 -368
  72. package/target/main/typescript/impl/xhrCore/ResponseProcessor.js.map +0 -1
  73. package/target/main/typescript/impl/xhrCore/XhrFormData.js +0 -272
  74. package/target/main/typescript/impl/xhrCore/XhrFormData.js.map +0 -1
  75. package/target/main/typescript/impl/xhrCore/XhrRequest.js +0 -281
  76. package/target/main/typescript/impl/xhrCore/XhrRequest.js.map +0 -1
  77. package/target/test/frameworkBase/_ext/monadish/DomQueryTest.js +0 -293
  78. package/target/test/frameworkBase/_ext/monadish/DomQueryTest.js.map +0 -1
  79. package/target/test/frameworkBase/_ext/monadish/LangTest.js +0 -89
  80. package/target/test/frameworkBase/_ext/monadish/LangTest.js.map +0 -1
  81. package/target/test/frameworkBase/_ext/monadish/MappingTest.js +0 -39
  82. package/target/test/frameworkBase/_ext/monadish/MappingTest.js.map +0 -1
  83. package/target/test/frameworkBase/_ext/monadish/MonadTest.js +0 -155
  84. package/target/test/frameworkBase/_ext/monadish/MonadTest.js.map +0 -1
  85. package/target/test/frameworkBase/_ext/monadish/StreamTest.js +0 -176
  86. package/target/test/frameworkBase/_ext/monadish/StreamTest.js.map +0 -1
  87. package/target/test/frameworkBase/_ext/monadish/XmlQueryTest.js +0 -1
  88. package/target/test/frameworkBase/_ext/monadish/XmlQueryTest.js.map +0 -1
  89. package/target/test/impl/ImplTest_23.spec_.js +0 -165
  90. package/target/test/impl/ImplTest_23.spec_.js.map +0 -1
  91. package/target/test/typescript/frameworkBase/LangTest.js +0 -112
  92. package/target/test/typescript/frameworkBase/LangTest.js.map +0 -1
  93. package/target/test/typescript/frameworkBase/_ext/monadish/DomQueryTest.js +0 -293
  94. package/target/test/typescript/frameworkBase/_ext/monadish/DomQueryTest.js.map +0 -1
  95. package/target/test/typescript/frameworkBase/_ext/monadish/LangTest.js +0 -89
  96. package/target/test/typescript/frameworkBase/_ext/monadish/LangTest.js.map +0 -1
  97. package/target/test/typescript/frameworkBase/_ext/monadish/MappingProbes.js +0 -115
  98. package/target/test/typescript/frameworkBase/_ext/monadish/MappingProbes.js.map +0 -1
  99. package/target/test/typescript/frameworkBase/_ext/monadish/MappingTest.js +0 -39
  100. package/target/test/typescript/frameworkBase/_ext/monadish/MappingTest.js.map +0 -1
  101. package/target/test/typescript/frameworkBase/_ext/monadish/MonadTest.js +0 -155
  102. package/target/test/typescript/frameworkBase/_ext/monadish/MonadTest.js.map +0 -1
  103. package/target/test/typescript/frameworkBase/_ext/monadish/StreamTest.js +0 -176
  104. package/target/test/typescript/frameworkBase/_ext/monadish/StreamTest.js.map +0 -1
  105. package/target/test/typescript/frameworkBase/_ext/monadish/XmlQueryTest.js +0 -1
  106. package/target/test/typescript/frameworkBase/_ext/monadish/XmlQueryTest.js.map +0 -1
  107. package/target/test/typescript/frameworkBase/_ext/shared/StandardInits.js +0 -264
  108. package/target/test/typescript/frameworkBase/_ext/shared/StandardInits.js.map +0 -1
  109. package/target/test/typescript/frameworkBase/_ext/shared/XmlResponses.js +0 -23
  110. package/target/test/typescript/frameworkBase/_ext/shared/XmlResponses.js.map +0 -1
  111. package/target/test/typescript/impl/ImplTest.js +0 -98
  112. package/target/test/typescript/impl/ImplTest.js.map +0 -1
  113. package/target/test/typescript/impl/SeparatorCharsTest.js +0 -72
  114. package/target/test/typescript/impl/SeparatorCharsTest.js.map +0 -1
  115. package/target/test/typescript/queue/AsynchronousProbe.js +0 -99
  116. package/target/test/typescript/queue/AsynchronousProbe.js.map +0 -1
  117. package/target/test/typescript/queue/AsynchronousQueueTest.js +0 -130
  118. package/target/test/typescript/queue/AsynchronousQueueTest.js.map +0 -1
  119. package/target/test/typescript/xhrCore/EventTests.js +0 -155
  120. package/target/test/typescript/xhrCore/EventTests.js.map +0 -1
  121. package/target/test/typescript/xhrCore/FakeWebsocket.js +0 -25
  122. package/target/test/typescript/xhrCore/FakeWebsocket.js.map +0 -1
  123. package/target/test/typescript/xhrCore/FileUploadTest.js +0 -166
  124. package/target/test/typescript/xhrCore/FileUploadTest.js.map +0 -1
  125. package/target/test/typescript/xhrCore/RequestParamsTest.js +0 -151
  126. package/target/test/typescript/xhrCore/RequestParamsTest.js.map +0 -1
  127. package/target/test/typescript/xhrCore/RequestTest.js +0 -318
  128. package/target/test/typescript/xhrCore/RequestTest.js.map +0 -1
  129. package/target/test/typescript/xhrCore/ResponseTest.js +0 -257
  130. package/target/test/typescript/xhrCore/ResponseTest.js.map +0 -1
  131. package/target/test/typescript/xhrCore/ShadowDomTest.js +0 -122
  132. package/target/test/typescript/xhrCore/ShadowDomTest.js.map +0 -1
  133. package/target/test/typescript/xhrCore/WebsocketTest.js +0 -182
  134. package/target/test/typescript/xhrCore/WebsocketTest.js.map +0 -1
  135. package/target/test/typescript/xhrCore/XhrFormDataTest.js +0 -58
  136. package/target/test/typescript/xhrCore/XhrFormDataTest.js.map +0 -1
  137. package/target/test-classes/.gz +0 -0
  138. package/target/test-classes/com/example/jsfs_js_ts/JsfsJsTsApplicationTests.class +0 -0
  139. package/target/test-classes/fileuploadtest.html +0 -24
  140. package/target/test-classes/jsf-development.js +0 -6781
  141. package/target/test-classes/jsf-development.js.br +0 -0
  142. package/target/test-classes/jsf-development.js.gz +0 -0
  143. package/target/test-classes/jsf-development.js.map +0 -1
  144. package/target/test-classes/jsf.js +0 -3
  145. package/target/test-classes/jsf.js.br +0 -0
  146. package/target/test-classes/jsf.js.gz +0 -0
@@ -1,58 +0,0 @@
1
- "use strict";
2
- /* Licensed to the Apache Software Foundation (ASF) under one or more
3
- * contributor license agreements. See the NOTICE file distributed with
4
- * this work for additional information regarding copyright ownership.
5
- * The ASF licenses this file to you under the Apache License, Version 2.0
6
- * (the "License"); you may not use this file except in compliance with
7
- * the License. You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- var mocha_1 = require("mocha");
19
- var mona_dish_1 = require("mona-dish");
20
- var sinon = require("sinon");
21
- var XhrFormData_1 = require("../../../main/typescript/impl/xhrCore/XhrFormData");
22
- var chai_1 = require("chai");
23
- var jsdom = require("jsdom");
24
- var JSDOM = jsdom.JSDOM;
25
- (0, mocha_1.describe)('XhrFormData tests', function () {
26
- beforeEach(function () {
27
- var _this = this;
28
- var dom = new JSDOM("\n <!DOCTYPE html>\n <html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\">\n <title>Title</title>\n </head>\n <body>\n <div id=\"id_1\"></div>\n <div id=\"id_2\" booga=\"blarg\"></div>\n <div id=\"id_3\"></div>\n <div id=\"id_4\"></div>\n </body>\n </html>\n \n ", {
29
- contentType: "text/html",
30
- runScripts: "dangerously"
31
- });
32
- var window = dom.window;
33
- global.window = window;
34
- global.body = window.document.body;
35
- global.document = window.document;
36
- global.navigator = {
37
- language: "en-En"
38
- };
39
- this.xhr = sinon.useFakeXMLHttpRequest();
40
- this.requests = [];
41
- this.xhr.onCreate = function (xhr) {
42
- _this.requests.push(xhr);
43
- };
44
- global.XMLHttpRequest = this.xhr;
45
- window.XMLHttpRequest = this.xhr;
46
- });
47
- this.afterEach(function () {
48
- global.XMLHttpRequest = window.XMLHttpRequest = this.xhr.restore();
49
- });
50
- (0, mocha_1.it)("must have multiple values for a name", function () {
51
- window.document.body.innerHTML = "<form id=\"page::form\">\n <tobago-select-many-checkbox id=\"page:animals\">\n <label for=\"page:animals\">Checkbox Group</label>\n <label><input type=\"checkbox\" name=\"page:animals\" id=\"page:animals::0\" value=\"Cat\" checked=\"checked\">Cat</label>\n <label><input type=\"checkbox\" name=\"page:animals\" id=\"page:animals::1\" value=\"Dog\">Dog</label>\n <label><input type=\"checkbox\" name=\"page:animals\" id=\"page:animals::2\" value=\"Fox\" checked=\"checked\">Fox</label>\n <label><input type=\"checkbox\" name=\"page:animals\" id=\"page:animals::3\" value=\"Rabbit\">Rabbit</label>\n </tobago-select-many-checkbox>\n <div id=\"page:animalsOutput\">\n <label for=\"page:animalsOutput\">Selected Animals</label>\n <span>Cat, Fox</span>\n </div>\n </form>";
52
- var xhrFormData = new XhrFormData_1.XhrFormData(mona_dish_1.DQ.byId("page::form"));
53
- var formData = xhrFormData.toString();
54
- (0, chai_1.expect)(formData).to.contain("animals=Cat");
55
- (0, chai_1.expect)(formData).to.contain("animals=Fox");
56
- });
57
- });
58
- //# sourceMappingURL=XhrFormDataTest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"XhrFormDataTest.js","sourceRoot":"","sources":["../../../../src/test/typescript/xhrCore/XhrFormDataTest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,+BAAmC;AACnC,uCAA6B;AAC7B,6BAA+B;AAC/B,iFAA8E;AAC9E,6BAA4B;AAE5B,IAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AACxB,IAAA,KAAK,GAAI,KAAK,MAAT,CAAU;AAEtB,IAAA,gBAAQ,EAAC,mBAAmB,EAAE;IAE5B,UAAU,CAAC;QAAA,iBAsCV;QApCC,IAAI,GAAG,GAAG,IAAI,KAAK,CAAC,uaAenB,EAAE;YACD,WAAW,EAAE,WAAW;YACxB,UAAU,EAAE,aAAa;SAC1B,CAAC,CAAC;QAEH,IAAI,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;QAElB,MAAO,CAAC,MAAM,GAAG,MAAM,CAAC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- <head>
3
- <script type="text/javascript" src="./jsf-development.js"></script>
4
- </head>
5
- <body>
6
-
7
- <form id="form" enctype="multipart/form-data">
8
- <input type="file" id="form:fileinput" name="form:fileinput"></input>
9
- <input type="text" id="form:textinput" name="form:textinput"></input>
10
- <div id="form:booga1">
11
- <input type="button" id="form:booga1:sourceid" value="click me" onclick="clickIt(event)"></input>
12
- </div>
13
- </form>
14
-
15
-
16
- <script type="text/javascript">
17
- function clickIt(evt) {
18
- jsf.ajax.request(document.getElementById("form:booga1"), evt, {execute:"@this form:fileinput", render:"@form"})
19
- }
20
-
21
- </script>
22
-
23
- </body>
24
- </html>