jsf.js_next_gen 1.0.0-beta-1 → 1.0.0-beta-4

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 (184) hide show
  1. package/.github/workflows/codeql-analysis.yml +83 -0
  2. package/.github/workflows/nodejs.yml +1 -1
  3. package/dist/docs/.nojekyll +1 -0
  4. package/dist/docs/assets/highlight.css +22 -0
  5. package/dist/docs/assets/main.js +54 -0
  6. package/dist/docs/assets/search.js +1 -0
  7. package/dist/docs/assets/style.css +1225 -0
  8. package/dist/docs/assets/widgets.png +0 -0
  9. package/dist/docs/assets/widgets@2x.png +0 -0
  10. package/dist/docs/functions/jsf.ajax.addOnError.html +84 -0
  11. package/dist/docs/functions/jsf.ajax.addOnEvent.html +74 -0
  12. package/dist/docs/functions/jsf.ajax.request.html +74 -0
  13. package/dist/docs/functions/jsf.ajax.response.html +69 -0
  14. package/dist/docs/functions/jsf.getClientWindow.html +65 -0
  15. package/dist/docs/functions/jsf.getProjectStage.html +69 -0
  16. package/dist/docs/functions/jsf.getViewState.html +68 -0
  17. package/dist/docs/functions/jsf.push.close.html +63 -0
  18. package/dist/docs/functions/jsf.push.init.html +81 -0
  19. package/dist/docs/functions/jsf.push.open.html +63 -0
  20. package/dist/docs/functions/jsf.util.chain.html +69 -0
  21. package/dist/docs/functions/myfaces.ab.html +78 -0
  22. package/dist/docs/index.html +173 -0
  23. package/dist/docs/modules/jsf.ajax.html +59 -0
  24. package/dist/docs/modules/jsf.html +71 -0
  25. package/dist/docs/modules/jsf.push.html +57 -0
  26. package/dist/docs/modules/jsf.util.html +53 -0
  27. package/dist/docs/modules/myfaces.html +52 -0
  28. package/dist/docs/modules.html +48 -0
  29. package/dist/docs/variables/jsf.implversion.html +57 -0
  30. package/dist/docs/variables/jsf.separatorchar.html +54 -0
  31. package/dist/docs/variables/jsf.specversion.html +52 -0
  32. package/dist/window/jsf-development.js +51 -39
  33. package/dist/window/jsf-development.js.map +1 -1
  34. package/dist/window/jsf.js +1 -1
  35. package/dist/window/jsf.js.br +0 -0
  36. package/dist/window/jsf.js.gz +0 -0
  37. package/dist/window/jsf.js.map +1 -1
  38. package/package.json +26 -25
  39. package/remap.js +44 -0
  40. package/remap.js.map +1 -0
  41. package/remap.ts +1 -1
  42. package/src/main/typescript/impl/util/AsyncQueue.ts +1 -1
  43. package/src/main/typescript/impl/xhrCore/RequestDataResolver.ts +1 -1
  44. package/src/main/typescript/tsconfig-typedoc.json +20 -0
  45. package/src/test/typescript/frameworkBase/LangTest.ts +2 -10
  46. package/src/test/typescript/frameworkBase/_ext/monadish/DomQueryTest.ts +12 -11
  47. package/src/test/typescript/frameworkBase/_ext/monadish/LangTest.ts +1 -1
  48. package/src/test/typescript/frameworkBase/_ext/monadish/MappingProbes.ts +13 -19
  49. package/src/test/typescript/frameworkBase/_ext/monadish/StreamTest.ts +5 -9
  50. package/target/api/Jsf.js +258 -0
  51. package/target/api/Jsf.js.map +1 -0
  52. package/target/impl/AjaxImpl.js +569 -0
  53. package/target/impl/AjaxImpl.js.map +1 -0
  54. package/target/impl/PushImpl.js +215 -0
  55. package/target/impl/PushImpl.js.map +1 -0
  56. package/target/impl/core/Const.js +135 -0
  57. package/target/impl/core/Const.js.map +1 -0
  58. package/target/impl/core/ImplTypes.js +43 -0
  59. package/target/impl/core/ImplTypes.js.map +1 -0
  60. package/target/impl/i18n/Messages.js +114 -0
  61. package/target/impl/i18n/Messages.js.map +1 -0
  62. package/target/impl/util/Assertions.js +90 -0
  63. package/target/impl/util/Assertions.js.map +1 -0
  64. package/target/impl/util/AsyncQueue.js +104 -0
  65. package/target/impl/util/AsyncQueue.js.map +1 -0
  66. package/target/impl/util/AsyncRunnable.js +18 -0
  67. package/target/impl/util/AsyncRunnable.js.map +1 -0
  68. package/target/impl/util/ExtDomQuery.js +129 -0
  69. package/target/impl/util/ExtDomQuery.js.map +1 -0
  70. package/target/impl/util/Lang.js +215 -0
  71. package/target/impl/util/Lang.js.map +1 -0
  72. package/target/impl/util/ListenerQueue.js +3 -0
  73. package/target/impl/util/ListenerQueue.js.map +1 -0
  74. package/target/impl/xhrCore/ErrorData.js +89 -0
  75. package/target/impl/xhrCore/ErrorData.js.map +1 -0
  76. package/target/impl/xhrCore/EventData.js +30 -0
  77. package/target/impl/xhrCore/EventData.js.map +1 -0
  78. package/target/impl/xhrCore/IResponseProcessor.js +3 -0
  79. package/target/impl/xhrCore/IResponseProcessor.js.map +1 -0
  80. package/target/impl/xhrCore/RequestDataResolver.js +143 -0
  81. package/target/impl/xhrCore/RequestDataResolver.js.map +1 -0
  82. package/target/impl/xhrCore/ResonseDataResolver.js +103 -0
  83. package/target/impl/xhrCore/ResonseDataResolver.js.map +1 -0
  84. package/target/impl/xhrCore/Response.js +167 -0
  85. package/target/impl/xhrCore/Response.js.map +1 -0
  86. package/target/impl/xhrCore/ResponseProcessor.js +368 -0
  87. package/target/impl/xhrCore/ResponseProcessor.js.map +1 -0
  88. package/target/impl/xhrCore/XhrFormData.js +272 -0
  89. package/target/impl/xhrCore/XhrFormData.js.map +1 -0
  90. package/target/impl/xhrCore/XhrRequest.js +281 -0
  91. package/target/impl/xhrCore/XhrRequest.js.map +1 -0
  92. package/target/main/typescript/api/Jsf.js +258 -0
  93. package/target/main/typescript/api/Jsf.js.map +1 -0
  94. package/target/main/typescript/impl/AjaxImpl.js +569 -0
  95. package/target/main/typescript/impl/AjaxImpl.js.map +1 -0
  96. package/target/main/typescript/impl/PushImpl.js +215 -0
  97. package/target/main/typescript/impl/PushImpl.js.map +1 -0
  98. package/target/main/typescript/impl/core/Const.js +135 -0
  99. package/target/main/typescript/impl/core/Const.js.map +1 -0
  100. package/target/main/typescript/impl/core/ImplTypes.js +43 -0
  101. package/target/main/typescript/impl/core/ImplTypes.js.map +1 -0
  102. package/target/main/typescript/impl/i18n/Messages.js +114 -0
  103. package/target/main/typescript/impl/i18n/Messages.js.map +1 -0
  104. package/target/main/typescript/impl/util/Assertions.js +90 -0
  105. package/target/main/typescript/impl/util/Assertions.js.map +1 -0
  106. package/target/main/typescript/impl/util/AsyncQueue.js +104 -0
  107. package/target/main/typescript/impl/util/AsyncQueue.js.map +1 -0
  108. package/target/main/typescript/impl/util/AsyncRunnable.js +18 -0
  109. package/target/main/typescript/impl/util/AsyncRunnable.js.map +1 -0
  110. package/target/main/typescript/impl/util/ExtDomQuery.js +129 -0
  111. package/target/main/typescript/impl/util/ExtDomQuery.js.map +1 -0
  112. package/target/main/typescript/impl/util/Lang.js +215 -0
  113. package/target/main/typescript/impl/util/Lang.js.map +1 -0
  114. package/target/main/typescript/impl/util/ListenerQueue.js +3 -0
  115. package/target/main/typescript/impl/util/ListenerQueue.js.map +1 -0
  116. package/target/main/typescript/impl/xhrCore/ErrorData.js +89 -0
  117. package/target/main/typescript/impl/xhrCore/ErrorData.js.map +1 -0
  118. package/target/main/typescript/impl/xhrCore/EventData.js +30 -0
  119. package/target/main/typescript/impl/xhrCore/EventData.js.map +1 -0
  120. package/target/main/typescript/impl/xhrCore/IResponseProcessor.js +3 -0
  121. package/target/main/typescript/impl/xhrCore/IResponseProcessor.js.map +1 -0
  122. package/target/main/typescript/impl/xhrCore/RequestDataResolver.js +143 -0
  123. package/target/main/typescript/impl/xhrCore/RequestDataResolver.js.map +1 -0
  124. package/target/main/typescript/impl/xhrCore/ResonseDataResolver.js +103 -0
  125. package/target/main/typescript/impl/xhrCore/ResonseDataResolver.js.map +1 -0
  126. package/target/main/typescript/impl/xhrCore/Response.js +167 -0
  127. package/target/main/typescript/impl/xhrCore/Response.js.map +1 -0
  128. package/target/main/typescript/impl/xhrCore/ResponseProcessor.js +368 -0
  129. package/target/main/typescript/impl/xhrCore/ResponseProcessor.js.map +1 -0
  130. package/target/main/typescript/impl/xhrCore/XhrFormData.js +272 -0
  131. package/target/main/typescript/impl/xhrCore/XhrFormData.js.map +1 -0
  132. package/target/main/typescript/impl/xhrCore/XhrRequest.js +281 -0
  133. package/target/main/typescript/impl/xhrCore/XhrRequest.js.map +1 -0
  134. package/target/test/typescript/frameworkBase/LangTest.js +112 -0
  135. package/target/test/typescript/frameworkBase/LangTest.js.map +1 -0
  136. package/target/test/typescript/frameworkBase/_ext/monadish/DomQueryTest.js +293 -0
  137. package/target/test/typescript/frameworkBase/_ext/monadish/DomQueryTest.js.map +1 -0
  138. package/target/test/typescript/frameworkBase/_ext/monadish/LangTest.js +89 -0
  139. package/target/test/typescript/frameworkBase/_ext/monadish/LangTest.js.map +1 -0
  140. package/target/test/typescript/frameworkBase/_ext/monadish/MappingProbes.js +115 -0
  141. package/target/test/typescript/frameworkBase/_ext/monadish/MappingProbes.js.map +1 -0
  142. package/target/test/typescript/frameworkBase/_ext/monadish/MappingTest.js +39 -0
  143. package/target/test/typescript/frameworkBase/_ext/monadish/MappingTest.js.map +1 -0
  144. package/target/test/typescript/frameworkBase/_ext/monadish/MonadTest.js +155 -0
  145. package/target/test/typescript/frameworkBase/_ext/monadish/MonadTest.js.map +1 -0
  146. package/target/test/typescript/frameworkBase/_ext/monadish/StreamTest.js +176 -0
  147. package/target/test/typescript/frameworkBase/_ext/monadish/StreamTest.js.map +1 -0
  148. package/target/test/typescript/frameworkBase/_ext/monadish/XmlQueryTest.js +1 -0
  149. package/target/test/typescript/frameworkBase/_ext/monadish/XmlQueryTest.js.map +1 -0
  150. package/target/test/typescript/frameworkBase/_ext/shared/StandardInits.js +264 -0
  151. package/target/test/typescript/frameworkBase/_ext/shared/StandardInits.js.map +1 -0
  152. package/target/test/typescript/frameworkBase/_ext/shared/XmlResponses.js +23 -0
  153. package/target/test/typescript/frameworkBase/_ext/shared/XmlResponses.js.map +1 -0
  154. package/target/test/typescript/impl/ImplTest.js +98 -0
  155. package/target/test/typescript/impl/ImplTest.js.map +1 -0
  156. package/target/test/typescript/impl/SeparatorCharsTest.js +72 -0
  157. package/target/test/typescript/impl/SeparatorCharsTest.js.map +1 -0
  158. package/target/test/typescript/queue/AsynchronousProbe.js +99 -0
  159. package/target/test/typescript/queue/AsynchronousProbe.js.map +1 -0
  160. package/target/test/typescript/queue/AsynchronousQueueTest.js +130 -0
  161. package/target/test/typescript/queue/AsynchronousQueueTest.js.map +1 -0
  162. package/target/test/typescript/xhrCore/EventTests.js +155 -0
  163. package/target/test/typescript/xhrCore/EventTests.js.map +1 -0
  164. package/target/test/typescript/xhrCore/FakeWebsocket.js +25 -0
  165. package/target/test/typescript/xhrCore/FakeWebsocket.js.map +1 -0
  166. package/target/test/typescript/xhrCore/FileUploadTest.js +166 -0
  167. package/target/test/typescript/xhrCore/FileUploadTest.js.map +1 -0
  168. package/target/test/typescript/xhrCore/RequestParamsTest.js +151 -0
  169. package/target/test/typescript/xhrCore/RequestParamsTest.js.map +1 -0
  170. package/target/test/typescript/xhrCore/RequestTest.js +318 -0
  171. package/target/test/typescript/xhrCore/RequestTest.js.map +1 -0
  172. package/target/test/typescript/xhrCore/ResponseTest.js +257 -0
  173. package/target/test/typescript/xhrCore/ResponseTest.js.map +1 -0
  174. package/target/test/typescript/xhrCore/ShadowDomTest.js +122 -0
  175. package/target/test/typescript/xhrCore/ShadowDomTest.js.map +1 -0
  176. package/target/test/typescript/xhrCore/WebsocketTest.js +182 -0
  177. package/target/test/typescript/xhrCore/WebsocketTest.js.map +1 -0
  178. package/target/test/typescript/xhrCore/XhrFormDataTest.js +58 -0
  179. package/target/test/typescript/xhrCore/XhrFormDataTest.js.map +1 -0
  180. package/webpack.config.js +71 -0
  181. package/webpack.config.js.map +1 -0
  182. package/webpack.config.ts +4 -6
  183. package/dist/window/jsf-development.js.LICENSE.txt +0 -135
  184. package/dist/window/jsf-development.js.br +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"XhrFormData.js","sourceRoot":"","sources":["../../../src/main/typescript/impl/xhrCore/XhrFormData.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,uCAAgG;AAEhG,uCAAqC;AACrC,IAAO,QAAQ,GAAG,gBAAI,CAAC,QAAQ,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281 @@
1
+ "use strict";
2
+ /* Licensed to the Apache Software Foundation (ASF) under one or more
3
+ * contributor license agreements. See the NOTICE file distributed with
4
+ * this work for additional information regarding copyright ownership.
5
+ * The ASF licenses this file to you under the Apache License, Version 2.0
6
+ * (the "License"); you may not use this file except in compliance with
7
+ * the License. You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.XhrRequest = void 0;
19
+ var mona_dish_1 = require("mona-dish");
20
+ var AjaxImpl_1 = require("../AjaxImpl");
21
+ var XhrFormData_1 = require("./XhrFormData");
22
+ var ErrorData_1 = require("./ErrorData");
23
+ var EventData_1 = require("./EventData");
24
+ var Lang_1 = require("../util/Lang");
25
+ var Const_1 = require("../core/Const");
26
+ var RequestDataResolver_1 = require("./RequestDataResolver");
27
+ var failSaveExecute = Lang_1.ExtLang.failSaveExecute;
28
+ var XhrRequest = /** @class */ (function () {
29
+ /**
30
+ * Reqired Parameters
31
+ *
32
+ * @param source the issuing element
33
+ * @param sourceForm the form which is related to the issuing element
34
+ * @param requestContext the request context with allö pass through values
35
+ *
36
+ * Optional Parameters
37
+ *
38
+ * @param partialIdsArray an optional restricting partial ids array for encoding
39
+ * @param timeout optional xhr timeout
40
+ * @param ajaxType optional request type, default "POST"
41
+ * @param contentType optional content type, default "application/x-www-form-urlencoded"
42
+ * @param xhrObject optional xhr object which must fullfill the XMLHTTPRequest api, default XMLHttpRequest
43
+ */
44
+ function XhrRequest(source, sourceForm, requestContext, internalContext, partialIdsArray, timeout, ajaxType, contentType, xhrObject) {
45
+ if (partialIdsArray === void 0) { partialIdsArray = []; }
46
+ if (timeout === void 0) { timeout = Const_1.NO_TIMEOUT; }
47
+ if (ajaxType === void 0) { ajaxType = Const_1.REQ_TYPE_POST; }
48
+ if (contentType === void 0) { contentType = Const_1.URL_ENCODED; }
49
+ if (xhrObject === void 0) { xhrObject = new XMLHttpRequest(); }
50
+ var _this = this;
51
+ this.source = source;
52
+ this.sourceForm = sourceForm;
53
+ this.requestContext = requestContext;
54
+ this.internalContext = internalContext;
55
+ this.partialIdsArray = partialIdsArray;
56
+ this.timeout = timeout;
57
+ this.ajaxType = ajaxType;
58
+ this.contentType = contentType;
59
+ this.xhrObject = xhrObject;
60
+ this.stopProgress = false;
61
+ /**
62
+ * helper support so that we do not have to drag in Promise shims
63
+ */
64
+ this.catchFuncs = [];
65
+ this.thenFunc = [];
66
+ /*
67
+ * we omit promises here
68
+ * some browsers do not support it and we do not need shim code
69
+ */
70
+ this.registerXhrCallbacks(function (data) {
71
+ _this.resolve(data);
72
+ }, function (data) {
73
+ _this.reject(data);
74
+ });
75
+ }
76
+ XhrRequest.prototype.start = function () {
77
+ var _this = this;
78
+ var ignoreErr = failSaveExecute;
79
+ var xhrObject = this.xhrObject;
80
+ var executesArr = function () {
81
+ return _this.requestContext.getIf(Const_1.CTX_PARAM_PASS_THR, Const_1.P_EXECUTE).get("none").value.split(/\s+/gi);
82
+ };
83
+ try {
84
+ var formElement = this.sourceForm.getAsElem(0).value;
85
+ var viewState = jsf.getViewState(formElement);
86
+ //encoded we need to decode
87
+ //We generated a base representation of the current form
88
+ var formData = new XhrFormData_1.XhrFormData(this.sourceForm);
89
+ //in case someone has overloaded the viewstate with addtional decorators we merge
90
+ //that in, there is no way around it, the spec allows it and getViewState
91
+ //must be called, so whatever getViewState delivers has higher priority then
92
+ //whatever the formData object delivers
93
+ formData.assignEncodedString(viewState);
94
+ formData.applyFileInputs.apply(formData, executesArr());
95
+ this.contentType = formData.isMultipartRequest ? "undefined" : this.contentType;
96
+ //next step the pass through parameters are merged in for post params
97
+ var requestContext = this.requestContext;
98
+ var passThroughParams = requestContext.getIf(Const_1.CTX_PARAM_PASS_THR);
99
+ formData.shallowMerge(passThroughParams, true, true);
100
+ this.responseContext = passThroughParams.deepCopy;
101
+ //we have to shift the internal passthroughs around to build up our response context
102
+ var responseContext = this.responseContext;
103
+ responseContext.assign(Const_1.CTX_PARAM_MF_INTERNAL).value = this.internalContext.value;
104
+ //per spec the onevent and onerrors must be passed through to the response
105
+ responseContext.assign(Const_1.ON_EVENT).value = requestContext.getIf(Const_1.ON_EVENT).value;
106
+ responseContext.assign(Const_1.ON_ERROR).value = requestContext.getIf(Const_1.ON_ERROR).value;
107
+ xhrObject.open(this.ajaxType, (0, RequestDataResolver_1.resolveFinalUrl)(this.sourceForm, formData, this.ajaxType), true);
108
+ //adding timeout
109
+ this.timeout ? xhrObject.timeout = this.timeout : null;
110
+ //a bug in the xhr stub library prevents the setRequestHeader to be properly executed on fake xhr objects
111
+ //normal browsers should resolve this
112
+ //tests can quietly fail on this one
113
+ if (this.contentType != "undefined") {
114
+ ignoreErr(function () { return xhrObject.setRequestHeader(Const_1.CONTENT_TYPE, "".concat(_this.contentType, "; charset=utf-8")); });
115
+ }
116
+ ignoreErr(function () { return xhrObject.setRequestHeader(Const_1.HEAD_FACES_REQ, Const_1.VAL_AJAX); });
117
+ //probably not needed anymore, will test this
118
+ //some webkit based mobile browsers do not follow the w3c spec of
119
+ // setting the accept headers automatically
120
+ ignoreErr(function () { return xhrObject.setRequestHeader(Const_1.REQ_ACCEPT, Const_1.STD_ACCEPT); });
121
+ this.sendEvent(Const_1.BEGIN);
122
+ this.sendRequest(formData);
123
+ }
124
+ catch (e) {
125
+ //_onError//_onError
126
+ this.handleError(e);
127
+ }
128
+ return this;
129
+ };
130
+ XhrRequest.prototype.cancel = function () {
131
+ try {
132
+ this.xhrObject.abort();
133
+ }
134
+ catch (e) {
135
+ this.handleError(e);
136
+ }
137
+ };
138
+ XhrRequest.prototype.resolve = function (data) {
139
+ mona_dish_1.Stream.of.apply(mona_dish_1.Stream, this.thenFunc).reduce(function (inputVal, thenFunc) {
140
+ return thenFunc(inputVal);
141
+ }, data);
142
+ };
143
+ XhrRequest.prototype.reject = function (data) {
144
+ mona_dish_1.Stream.of.apply(mona_dish_1.Stream, this.catchFuncs).reduce(function (inputVal, catchFunc) {
145
+ return catchFunc(inputVal);
146
+ }, data);
147
+ };
148
+ XhrRequest.prototype.catch = function (func) {
149
+ //this.$promise.catch(func);
150
+ this.catchFuncs.push(func);
151
+ return this;
152
+ };
153
+ XhrRequest.prototype.finally = function (func) {
154
+ //no ie11 support we probably are going to revert to shims for that one
155
+ //(<any>this.$promise).then(func).catch(func);
156
+ this.catchFuncs.push(func);
157
+ this.thenFunc.push(func);
158
+ return this;
159
+ };
160
+ XhrRequest.prototype.then = function (func) {
161
+ //this.$promise.then(func);
162
+ this.thenFunc.push(func);
163
+ return this;
164
+ };
165
+ /**
166
+ * attaches the internal event and processing
167
+ * callback within the promise to our xhr object
168
+ *
169
+ * @param resolve
170
+ * @param reject
171
+ */
172
+ XhrRequest.prototype.registerXhrCallbacks = function (resolve, reject) {
173
+ var _this = this;
174
+ var xhrObject = this.xhrObject;
175
+ xhrObject.onabort = function () {
176
+ _this.onAbort(resolve, reject);
177
+ };
178
+ xhrObject.ontimeout = function () {
179
+ _this.onTimeout(resolve, reject);
180
+ };
181
+ xhrObject.onload = function () {
182
+ _this.onSuccess(_this.xhrObject, resolve, reject);
183
+ };
184
+ xhrObject.onloadend = function () {
185
+ _this.onDone(_this.xhrObject, resolve, reject);
186
+ };
187
+ xhrObject.onerror = function (errorData) {
188
+ _this.onError(errorData, resolve, reject);
189
+ };
190
+ };
191
+ /*
192
+ * xhr processing callbacks
193
+ *
194
+ * Those methods are the callbacks called by
195
+ * the xhr object depending on its own state
196
+ */
197
+ XhrRequest.prototype.onAbort = function (resolve, reject) {
198
+ reject();
199
+ };
200
+ XhrRequest.prototype.onTimeout = function (resolve, reject) {
201
+ this.sendEvent(Const_1.STATE_EVT_TIMEOUT);
202
+ reject();
203
+ };
204
+ XhrRequest.prototype.onSuccess = function (data, resolve, reject) {
205
+ var _a, _b;
206
+ this.sendEvent(Const_1.COMPLETE);
207
+ //malforms always result in empty response xml
208
+ if (!((_a = this === null || this === void 0 ? void 0 : this.xhrObject) === null || _a === void 0 ? void 0 : _a.responseXML)) {
209
+ this.handleMalFormedXML(resolve);
210
+ return;
211
+ }
212
+ jsf.ajax.response(this.xhrObject, (_b = this.responseContext.value) !== null && _b !== void 0 ? _b : {});
213
+ };
214
+ XhrRequest.prototype.handleMalFormedXML = function (resolve) {
215
+ var _a;
216
+ this.stopProgress = true;
217
+ var errorData = {
218
+ type: Const_1.ERROR,
219
+ status: Const_1.MALFORMEDXML,
220
+ responseCode: 200,
221
+ responseText: (_a = this.xhrObject) === null || _a === void 0 ? void 0 : _a.responseText,
222
+ source: {
223
+ id: this.source.id.value
224
+ }
225
+ };
226
+ try {
227
+ AjaxImpl_1.Implementation.sendError(errorData);
228
+ }
229
+ finally {
230
+ resolve(errorData);
231
+ }
232
+ //non blocking non clearing
233
+ };
234
+ XhrRequest.prototype.onDone = function (data, resolve, reject) {
235
+ if (this.stopProgress) {
236
+ return;
237
+ }
238
+ resolve(data);
239
+ };
240
+ XhrRequest.prototype.onError = function (errorData, resolve, reject) {
241
+ this.handleError(errorData);
242
+ reject();
243
+ };
244
+ /*
245
+ * other helpers
246
+ */
247
+ XhrRequest.prototype.sendEvent = function (evtType) {
248
+ var eventData = EventData_1.EventData.createFromRequest(this.xhrObject, this.requestContext, evtType);
249
+ try {
250
+ //user code error, we might cover
251
+ //this in onError but also we cannot swallow it
252
+ //we need to resolve the local handlers lazyly,
253
+ //because some frameworks might decorate them over the context in the response
254
+ var eventHandler = (0, RequestDataResolver_1.resolveHandlerFunc)(this.requestContext, this.responseContext, Const_1.ON_EVENT);
255
+ AjaxImpl_1.Implementation.sendEvent(eventData, eventHandler);
256
+ }
257
+ catch (e) {
258
+ this.handleError(e);
259
+ throw e;
260
+ }
261
+ };
262
+ XhrRequest.prototype.handleError = function (exception) {
263
+ var errorData = ErrorData_1.ErrorData.fromClient(exception);
264
+ var eventHandler = (0, RequestDataResolver_1.resolveHandlerFunc)(this.requestContext, this.responseContext, Const_1.ON_ERROR);
265
+ AjaxImpl_1.Implementation.sendError(errorData, eventHandler);
266
+ };
267
+ XhrRequest.prototype.sendRequest = function (formData) {
268
+ var isPost = this.ajaxType != Const_1.REQ_TYPE_GET;
269
+ if (formData.isMultipartRequest) {
270
+ //in case of a multipart request we send in a formData object as body
271
+ this.xhrObject.send((isPost) ? formData.toFormData() : null);
272
+ }
273
+ else {
274
+ //in case of a normal request we send it normally
275
+ this.xhrObject.send((isPost) ? formData.toString() : null);
276
+ }
277
+ };
278
+ return XhrRequest;
279
+ }());
280
+ exports.XhrRequest = XhrRequest;
281
+ //# sourceMappingURL=XhrRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"XhrRequest.js","sourceRoot":"","sources":["../../../src/main/typescript/impl/xhrCore/XhrRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,uCAA6C;AAC7C,wCAA2C;AAE3C,6CAA0C;AAC1C,yCAAsC;AACtC,yCAAsC;AACtC,qCAAqC;AACrC,uCAoBuB;AACvB,6DAA0E;AAC1E,IAAO,eAAe,GAAG,cAAO,CAAC,eAAe,CAAC;AAcjD;IAYI;;;;;;;;;;;;;;OAcG;IACH,oBACY,MAAU,EACV,UAAc,EACd,cAAsB,EACtB,eAAuB,EACvB,eAAoB,EACpB,OAAoB,EACpB,QAAwB,EACxB,WAAyB,EACzB,SAAgC;QAJhC,gCAAA,EAAA,oBAAoB;QACpB,wBAAA,EAAA,UAAU,kBAAU;QACpB,yBAAA,EAAA,WAAW,qBAAa;QACxB,4BAAA,EAAA,cAAc,mBAAW;QACzB,0BAAA,EAAA,gBAAgB,cAAc,EAAE;QAT5C,iBAoBC;QAnBW,WAAM,GAAN,MAAM,CAAI;QACV,eAAU,GAAV,UAAU,CAAI;QACd,mBAAc,G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C,IAAI,QAAQ,CAAC,kBAAkB,EAAE;YAC7B,qEAAqE;YACrE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;SAChE;aAAM;YACH,iDAAiD;YACjD,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;SAC9D;IACL,CAAC;IAEL,iBAAC;AAAD,CAAC,AA3RD,IA2RC;AA3RY,gCAAU"}
@@ -0,0 +1,258 @@
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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
18
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
19
+ if (ar || !(i in from)) {
20
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
21
+ ar[i] = from[i];
22
+ }
23
+ }
24
+ return to.concat(ar || Array.prototype.slice.call(from));
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.myfaces = exports.jsf = void 0;
28
+ ///<reference types='../../types/typedefs'/>
29
+ var AjaxImpl_1 = require("../impl/AjaxImpl");
30
+ var PushImpl_1 = require("../impl/PushImpl");
31
+ var jsf;
32
+ (function (jsf) {
33
+ "use strict";
34
+ /*
35
+ * Version of the implementation for the jsf.js.
36
+ * <p />
37
+ * as specified within the jsf specifications jsf.html:
38
+ * <ul>
39
+ * <li>left two digits major release number</li>
40
+ * <li>middle two digits minor spec release number</li>
41
+ * <li>right two digits bug release number</li>
42
+ * </ul>
43
+ * @constant
44
+ */
45
+ jsf.specversion = 220000;
46
+ /**
47
+ * Implementation version as specified within the jsf specification.
48
+ * <p />
49
+ * A number increased with every implementation version
50
+ * and reset by moving to a new spec release number
51
+ *
52
+ * @constant
53
+ */
54
+ jsf.implversion = 0;
55
+ /**
56
+ * SeparatorChar as defined by UINamingContainer.getNamingContainerSeparatorChar()
57
+ * @type {Char}
58
+ */
59
+ jsf.separatorchar = getSeparatorChar();
60
+ /**
61
+ * This method is responsible for the return of a given project stage as defined
62
+ * by the jsf specification.
63
+ * <p/>
64
+ * Valid return values are:
65
+ * <ul>
66
+ * <li>&quot;Production&quot;</li>
67
+ * <li>&quot;Development&quot;</li>
68
+ * <li>&quot;SystemTest&quot;</li>
69
+ * <li>&quot;UnitTest&quot;</li>
70
+ * </li>
71
+ *
72
+ * @return {String} the current project state emitted by the server side method:
73
+ * <i>javax.faces.application.Application.getProjectStage()</i>
74
+ */
75
+ function getProjectStage() {
76
+ return AjaxImpl_1.Implementation.getProjectStage();
77
+ }
78
+ jsf.getProjectStage = getProjectStage;
79
+ /**
80
+ * collect and encode data for a given form element (must be of type form)
81
+ * find the javax.faces.ViewState element and encode its value as well!
82
+ * return a concatenated string of the encoded values!
83
+ *
84
+ * @throws an exception in case of the given element not being of type form!
85
+ * https://issues.apache.org/jira/browse/MYFACES-2110
86
+ */
87
+ function getViewState(formElement) {
88
+ return AjaxImpl_1.Implementation.getViewState(formElement);
89
+ }
90
+ jsf.getViewState = getViewState;
91
+ /**
92
+ * returns the window identifier for the given node / window
93
+ * @return the window identifier or null if none is found
94
+ * @param rootNode
95
+ */
96
+ function getClientWindow(rootNode) {
97
+ return AjaxImpl_1.Implementation.getClientWindow(rootNode);
98
+ }
99
+ jsf.getClientWindow = getClientWindow;
100
+ //private helper functions
101
+ function getSeparatorChar() {
102
+ return AjaxImpl_1.Implementation.getSeparatorChar();
103
+ }
104
+ var ajax;
105
+ (function (ajax) {
106
+ "use strict";
107
+ /**
108
+ * this function has to send the ajax requests
109
+ *
110
+ * following requestInternal conditions must be met:
111
+ * <ul>
112
+ * <li> the requestInternal must be sent asynchronously! </li>
113
+ * <li> the requestInternal must be a POST!!! requestInternal </li>
114
+ * <li> the requestInternal url must be the form action attribute </li>
115
+ * <li> all requests must be queued with a client side requestInternal queue to ensure the requestInternal ordering!</li>
116
+ * </ul>
117
+ *
118
+ * @param {String|Node} element: any dom element no matter being it html or jsf, from which the event is emitted
119
+ * @param {EVENT} event: any javascript event supported by that object
120
+ * @param {Map} options : map of options being pushed into the ajax cycle
121
+ */
122
+ function request(element, event, options) {
123
+ AjaxImpl_1.Implementation.request(element, event, options);
124
+ //Implementation.getInstance().requestInternal(element, event, options);
125
+ }
126
+ ajax.request = request;
127
+ /**
128
+ * response handler
129
+ * @param request the request object having triggered this response
130
+ * @param context the request context
131
+ *
132
+ * TODO add info on what can be in the context
133
+ */
134
+ function response(request, context) {
135
+ AjaxImpl_1.Implementation.response(request, context);
136
+ }
137
+ ajax.response = response;
138
+ /**
139
+ * Adds an error handler to our global error queue.
140
+ * the error handler must be of the format <i>function errorListener(&lt;errorData&gt;)</i>
141
+ * with errorData being of following format:
142
+ * <ul>
143
+ * <li> errorData.type : &quot;error&quot;</li>
144
+ * <li> errorData.status : the error status message</li>
145
+ * <li> errorData.serverErrorName : the server error name in case of a server error</li>
146
+ * <li> errorData.serverErrorMessage : the server error message in case of a server error</li>
147
+ * <li> errorData.source : the issuing source element which triggered the requestInternal </li>
148
+ * <li> eventData.responseCode: the response code (aka http requestInternal response code, 401 etc...) </li>
149
+ * <li> eventData.responseText: the requestInternal response text </li>
150
+ * <li> eventData.responseXML: the requestInternal response xml </li>
151
+ * </ul>
152
+ *
153
+ * @param {function} errorListener error handler must be of the format <i>function errorListener(&lt;errorData&gt;)</i>
154
+ */
155
+ function addOnError(errorFunc) {
156
+ AjaxImpl_1.Implementation.addOnError(errorFunc);
157
+ }
158
+ ajax.addOnError = addOnError;
159
+ /**
160
+ * Adds a global event listener to the ajax event queue. The event listener must be a function
161
+ * of following format: <i>function eventListener(&lt;eventData&gt;)</i>
162
+ *
163
+ * @param {function} eventListener event must be of the format <i>function eventListener(&lt;eventData&gt;)</i>
164
+ */
165
+ function addOnEvent(eventFunc) {
166
+ AjaxImpl_1.Implementation.addOnEvent(eventFunc);
167
+ }
168
+ ajax.addOnEvent = addOnEvent;
169
+ })(ajax = jsf.ajax || (jsf.ajax = {}));
170
+ var util;
171
+ (function (util) {
172
+ /**
173
+ * varargs function which executes a chain of code (functions or any other code)
174
+ *
175
+ * if any of the code returns false, the execution
176
+ * is terminated prematurely skipping the rest of the code!
177
+ *
178
+ * @param {DomNode} source, the callee object
179
+ * @param {Event} event, the event object of the callee event triggering this function
180
+ * @param funcs ... arbitrary array of functions or strings
181
+ * @returns true if the chain has succeeded false otherwise
182
+ */
183
+ function chain(source, event) {
184
+ var funcs = [];
185
+ for (var _i = 2; _i < arguments.length; _i++) {
186
+ funcs[_i - 2] = arguments[_i];
187
+ }
188
+ return AjaxImpl_1.Implementation.chain.apply(AjaxImpl_1.Implementation, __spreadArray([source, event], funcs, false));
189
+ }
190
+ util.chain = chain;
191
+ })(util = jsf.util || (jsf.util = {}));
192
+ var push;
193
+ (function (push) {
194
+ /**
195
+ * @param {function} onopen The function to be invoked when the web socket is opened.
196
+ * @param {function} onmessage The function to be invoked when a message is received.
197
+ * @param {function} onclose The function to be invoked when the web socket is closed.
198
+ * @param {boolean} autoconnect Whether or not to immediately open the socket. Defaults to <code>false</code>.
199
+ */
200
+ function init(socketClientId, uri, channel, onopen, onmessage, onclose, behaviorScripts, autoconnect) {
201
+ PushImpl_1.PushImpl.init(socketClientId, uri, channel, onopen, onmessage, onclose, behaviorScripts, autoconnect);
202
+ }
203
+ push.init = init;
204
+ /**
205
+ * Open the web socket on the given channel.
206
+ * @param {string} channel The name of the web socket channel.
207
+ * @throws {Error} When channel is unknown.
208
+ */
209
+ function open(socketClientId) {
210
+ PushImpl_1.PushImpl.open(socketClientId);
211
+ }
212
+ push.open = open;
213
+ /**
214
+ * Close the web socket on the given channel.
215
+ * @param {string} channel The name of the web socket channel.
216
+ * @throws {Error} When channel is unknown.
217
+ */
218
+ function close(socketClientId) {
219
+ PushImpl_1.PushImpl.close(socketClientId);
220
+ }
221
+ push.close = close;
222
+ })(push = jsf.push || (jsf.push = {}));
223
+ //We hook the old namespace system into our npm system
224
+ //if ("undefined" == window.jsf) {
225
+ // window.jsf = jsf;
226
+ //}
227
+ })(jsf = exports.jsf || (exports.jsf = {}));
228
+ //fullfill the window contract
229
+ var myfaces;
230
+ (function (myfaces) {
231
+ /**
232
+ * AB function similar to mojarra and Primefaces
233
+ * not part of the spec but a convenience accessor method
234
+ * Code provided by Thomas Andraschko
235
+ *
236
+ * @param source the event source
237
+ * @param event the event
238
+ * @param eventName event name for java.javax.faces.behavior.evemnt
239
+ * @param execute execute list as passed down in jsf.ajax.request
240
+ * @param render
241
+ * @param options
242
+ */
243
+ function ab(source, event, eventName, execute, render, options) {
244
+ if (options === void 0) { options = {}; }
245
+ if (eventName) {
246
+ options["javax.faces.behavior.event"] = eventName;
247
+ }
248
+ if (execute) {
249
+ options["execute"] = execute;
250
+ }
251
+ if (render) {
252
+ options["render"] = render;
253
+ }
254
+ jsf.ajax.request(source, event, options);
255
+ }
256
+ myfaces.ab = ab;
257
+ })(myfaces = exports.myfaces || (exports.myfaces = {}));
258
+ //# sourceMappingURL=Jsf.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Jsf.js","sourceRoot":"","sources":["../../../../src/main/typescript/api/Jsf.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;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