jsf.js_next_gen 4.0.3-beta.5 → 4.0.4-beta.2
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.
- package/README.md +14 -1
- package/dist/docs/assets/highlight.css +21 -0
- package/dist/docs/index.html +3 -0
- package/dist/window/faces-development.js +59 -4
- package/dist/window/faces-development.js.map +1 -1
- package/dist/window/faces.js +1 -1
- package/dist/window/faces.js.map +1 -1
- package/dist/window/jsf-development.js +59 -4
- package/dist/window/jsf-development.js.map +1 -1
- package/dist/window/jsf.js +1 -1
- package/dist/window/jsf.js.map +1 -1
- package/package.json +1 -1
- package/src/main/typescript/impl/AjaxImpl.ts +19 -1
- package/src/main/typescript/impl/core/Const.ts +8 -0
- package/src/main/typescript/impl/xhrCore/XhrRequest.ts +44 -2
- package/src/main/typescript/test/xhrCore/XhrRequestProgress.spec.ts +65 -0
- package/target/impl/AjaxImpl.js +14 -2
- package/target/impl/AjaxImpl.js.map +1 -1
- package/target/impl/core/Const.js +10 -2
- package/target/impl/core/Const.js.map +1 -1
- package/target/impl/xhrCore/XhrRequest.js +35 -0
- package/target/impl/xhrCore/XhrRequest.js.map +1 -1
- package/target/test/xhrCore/XhrRequestProgress.spec.js +93 -0
- package/target/test/xhrCore/XhrRequestProgress.spec.js.map +1 -0
package/README.md
CHANGED
|
@@ -167,5 +167,18 @@ and adjusts the references in the resource accordingly to the request patterns
|
|
|
167
167
|
* Elimination of Streams in favor of native arrays
|
|
168
168
|
* Providing an internal non intrusive shim for browsers which do not have array map and flapMap
|
|
169
169
|
(older Edge and Chromium versions) - done in mona-dish
|
|
170
|
-
|
|
170
|
+
* Adding a progress monitoring functionality under the myfaces namespace
|
|
171
|
+
```json
|
|
172
|
+
faces.ajax.request(document.getElementById("cmd_eval"), null, {
|
|
173
|
+
render: '@form',
|
|
174
|
+
execute: '@form',
|
|
175
|
+
myfaces: {
|
|
176
|
+
upload: {
|
|
177
|
+
onProgress: (upload: XMLHttpRequestUpload,event: ProgressEvent) => {
|
|
178
|
+
caughtProgressEvents.push(event);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
```
|
|
171
184
|
|
|
@@ -5,6 +5,12 @@
|
|
|
5
5
|
--dark-hl-1: #569CD6;
|
|
6
6
|
--light-hl-2: #000000;
|
|
7
7
|
--dark-hl-2: #D4D4D4;
|
|
8
|
+
--light-hl-3: #A31515;
|
|
9
|
+
--dark-hl-3: #CE9178;
|
|
10
|
+
--light-hl-4: #0000FF;
|
|
11
|
+
--dark-hl-4: #569CD6;
|
|
12
|
+
--light-hl-5: #CD3131;
|
|
13
|
+
--dark-hl-5: #F44747;
|
|
8
14
|
--light-code-background: #FFFFFF;
|
|
9
15
|
--dark-code-background: #1E1E1E;
|
|
10
16
|
}
|
|
@@ -13,6 +19,9 @@
|
|
|
13
19
|
--hl-0: var(--light-hl-0);
|
|
14
20
|
--hl-1: var(--light-hl-1);
|
|
15
21
|
--hl-2: var(--light-hl-2);
|
|
22
|
+
--hl-3: var(--light-hl-3);
|
|
23
|
+
--hl-4: var(--light-hl-4);
|
|
24
|
+
--hl-5: var(--light-hl-5);
|
|
16
25
|
--code-background: var(--light-code-background);
|
|
17
26
|
} }
|
|
18
27
|
|
|
@@ -20,6 +29,9 @@
|
|
|
20
29
|
--hl-0: var(--dark-hl-0);
|
|
21
30
|
--hl-1: var(--dark-hl-1);
|
|
22
31
|
--hl-2: var(--dark-hl-2);
|
|
32
|
+
--hl-3: var(--dark-hl-3);
|
|
33
|
+
--hl-4: var(--dark-hl-4);
|
|
34
|
+
--hl-5: var(--dark-hl-5);
|
|
23
35
|
--code-background: var(--dark-code-background);
|
|
24
36
|
} }
|
|
25
37
|
|
|
@@ -27,6 +39,9 @@
|
|
|
27
39
|
--hl-0: var(--light-hl-0);
|
|
28
40
|
--hl-1: var(--light-hl-1);
|
|
29
41
|
--hl-2: var(--light-hl-2);
|
|
42
|
+
--hl-3: var(--light-hl-3);
|
|
43
|
+
--hl-4: var(--light-hl-4);
|
|
44
|
+
--hl-5: var(--light-hl-5);
|
|
30
45
|
--code-background: var(--light-code-background);
|
|
31
46
|
}
|
|
32
47
|
|
|
@@ -34,10 +49,16 @@
|
|
|
34
49
|
--hl-0: var(--dark-hl-0);
|
|
35
50
|
--hl-1: var(--dark-hl-1);
|
|
36
51
|
--hl-2: var(--dark-hl-2);
|
|
52
|
+
--hl-3: var(--dark-hl-3);
|
|
53
|
+
--hl-4: var(--dark-hl-4);
|
|
54
|
+
--hl-5: var(--dark-hl-5);
|
|
37
55
|
--code-background: var(--dark-code-background);
|
|
38
56
|
}
|
|
39
57
|
|
|
40
58
|
.hl-0 { color: var(--hl-0); }
|
|
41
59
|
.hl-1 { color: var(--hl-1); }
|
|
42
60
|
.hl-2 { color: var(--hl-2); }
|
|
61
|
+
.hl-3 { color: var(--hl-3); }
|
|
62
|
+
.hl-4 { color: var(--hl-4); }
|
|
63
|
+
.hl-5 { color: var(--hl-5); }
|
|
43
64
|
pre, code { background: var(--code-background); }
|
package/dist/docs/index.html
CHANGED
|
@@ -135,7 +135,10 @@ and adjusts the references in the resource accordingly to the request patterns</
|
|
|
135
135
|
<li>Elimination of Streams in favor of native arrays</li>
|
|
136
136
|
<li>Providing an internal non intrusive shim for browsers which do not have array map and flapMap
|
|
137
137
|
(older Edge and Chromium versions) - done in mona-dish</li>
|
|
138
|
+
<li>Adding a progress monitoring functionality under the myfaces namespace</li>
|
|
138
139
|
</ul>
|
|
140
|
+
<pre><code class="language-json"><span class="hl-2">faces.ajax.request(document.getElementById(</span><span class="hl-3">"cmd_eval"</span><span class="hl-2">), </span><span class="hl-4">null</span><span class="hl-2">, {</span><br/><span class="hl-2"> </span><span class="hl-5">render</span><span class="hl-2">: </span><span class="hl-5">'@form'</span><span class="hl-2">,</span><br/><span class="hl-2"> </span><span class="hl-5">execute</span><span class="hl-2">: </span><span class="hl-5">'@form'</span><span class="hl-2">,</span><br/><span class="hl-2"> </span><span class="hl-5">myfaces</span><span class="hl-2">: {</span><br/><span class="hl-2"> </span><span class="hl-5">upload</span><span class="hl-2">: {</span><br/><span class="hl-2"> </span><span class="hl-5">onProgress</span><span class="hl-2">: </span><span class="hl-5">(upload:</span><span class="hl-2"> </span><span class="hl-5">XMLHttpRequestUpload</span><span class="hl-2">,</span><span class="hl-5">event</span><span class="hl-2">: </span><span class="hl-5">ProgressEvent)</span><span class="hl-2"> </span><span class="hl-5">=></span><span class="hl-2"> {</span><br/><span class="hl-2"> </span><span class="hl-5">caughtProgressEvents.push(event);</span><br/><span class="hl-2"> }</span><br/><span class="hl-2"> }</span><br/><span class="hl-2"> }</span><br/><span class="hl-2">});</span>
|
|
141
|
+
</code><button>Copy</button></pre>
|
|
139
142
|
</div></div>
|
|
140
143
|
<div class="col-sidebar">
|
|
141
144
|
<div class="page-menu">
|
|
@@ -4478,7 +4478,7 @@ var Implementation;
|
|
|
4478
4478
|
* b) passThrough handling with a map copy with a filter map block map
|
|
4479
4479
|
*/
|
|
4480
4480
|
function request(el, event, opts) {
|
|
4481
|
-
var _a, _b, _c, _d, _e;
|
|
4481
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4;
|
|
4482
4482
|
const { options, elem, elementId, windowId, isResetValues } = (0, RequestDataResolver_1.resolveDefaults)(event, opts, el);
|
|
4483
4483
|
const requestCtx = new ExtDomQuery_1.ExtConfig({});
|
|
4484
4484
|
const internalCtx = new ExtDomQuery_1.ExtConfig({});
|
|
@@ -4544,6 +4544,18 @@ var Implementation;
|
|
|
4544
4544
|
// additional meta information to speed things up, note internal non jsf
|
|
4545
4545
|
// pass through options are stored under _mfInternal in the context
|
|
4546
4546
|
internalCtx.assign(Const_1.CTX_PARAM_SRC_FRM_ID).value = formId;
|
|
4547
|
+
/**
|
|
4548
|
+
* special myfaces only internal parameter for onProgress until we have an official api
|
|
4549
|
+
* that way we can track the progress of a xhr request (useful for file uploads)
|
|
4550
|
+
*/
|
|
4551
|
+
internalCtx.assign(Const_1.CTX_PARAM_UPLOAD_PREINIT).value = (_f = (_e = (_d = options.value) === null || _d === void 0 ? void 0 : _d.myfaces) === null || _e === void 0 ? void 0 : _e.upload) === null || _f === void 0 ? void 0 : _f.preInit;
|
|
4552
|
+
internalCtx.assign(Const_1.CTX_PARAM_UPLOAD_LOADSTART).value = (_j = (_h = (_g = options.value) === null || _g === void 0 ? void 0 : _g.myfaces) === null || _h === void 0 ? void 0 : _h.upload) === null || _j === void 0 ? void 0 : _j.loadStart;
|
|
4553
|
+
internalCtx.assign(Const_1.CTX_PARAM_UPLOAD_ON_PROGRESS).value = (_m = (_l = (_k = options.value) === null || _k === void 0 ? void 0 : _k.myfaces) === null || _l === void 0 ? void 0 : _l.upload) === null || _m === void 0 ? void 0 : _m.onProgress;
|
|
4554
|
+
internalCtx.assign(Const_1.CTX_PARAM_UPLOAD_LOADEND).value = (_q = (_p = (_o = options.value) === null || _o === void 0 ? void 0 : _o.myfaces) === null || _p === void 0 ? void 0 : _p.upload) === null || _q === void 0 ? void 0 : _q.loadEnd;
|
|
4555
|
+
internalCtx.assign(Const_1.CTX_PARAM_UPLOAD_LOAD).value = (_t = (_s = (_r = options.value) === null || _r === void 0 ? void 0 : _r.myfaces) === null || _s === void 0 ? void 0 : _s.upload) === null || _t === void 0 ? void 0 : _t.load;
|
|
4556
|
+
internalCtx.assign(Const_1.CTX_PARAM_UPLOAD_ERROR).value = (_w = (_v = (_u = options.value) === null || _u === void 0 ? void 0 : _u.myfaces) === null || _v === void 0 ? void 0 : _v.upload) === null || _w === void 0 ? void 0 : _w.error;
|
|
4557
|
+
internalCtx.assign(Const_1.CTX_PARAM_UPLOAD_ABORT).value = (_z = (_y = (_x = options.value) === null || _x === void 0 ? void 0 : _x.myfaces) === null || _y === void 0 ? void 0 : _y.upload) === null || _z === void 0 ? void 0 : _z.abort;
|
|
4558
|
+
internalCtx.assign(Const_1.CTX_PARAM_UPLOAD_TIMEOUT).value = (_2 = (_1 = (_0 = options.value) === null || _0 === void 0 ? void 0 : _0.myfaces) === null || _1 === void 0 ? void 0 : _1.upload) === null || _2 === void 0 ? void 0 : _2.timeout;
|
|
4547
4559
|
// mojarra compatibility, mojarra is sending the form id as well
|
|
4548
4560
|
// this is not documented behavior but can be determined by running
|
|
4549
4561
|
// mojarra under blackbox conditions.
|
|
@@ -4552,7 +4564,7 @@ var Implementation;
|
|
|
4552
4564
|
requestCtx.assign(Const_1.CTX_PARAM_REQ_PASS_THR, formId).value = formId;
|
|
4553
4565
|
internalCtx.assign(Const_1.CTX_PARAM_SRC_CTL_ID).value = elementId;
|
|
4554
4566
|
// reintroduction of PPS as per myfaces 2.3 (myfaces.pps = true, only the executes are submitted)
|
|
4555
|
-
internalCtx.assign(Const_1.CTX_PARAM_PPS).value = (
|
|
4567
|
+
internalCtx.assign(Const_1.CTX_PARAM_PPS).value = (_4 = (_3 = extractMyFacesParams(options.value)) === null || _3 === void 0 ? void 0 : _3[Const_1.MYFACES_OPTION_PPS]) !== null && _4 !== void 0 ? _4 : false;
|
|
4556
4568
|
assignClientWindowId(form, requestCtx);
|
|
4557
4569
|
assignExecute(options, requestCtx, form, elementId);
|
|
4558
4570
|
assignRender(options, requestCtx, form, elementId);
|
|
@@ -5304,8 +5316,8 @@ var PushImpl;
|
|
|
5304
5316
|
*/
|
|
5305
5317
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5306
5318
|
exports.CTX_OPTIONS_PARAMS = exports.TIMEOUT_EVENT = exports.CLIENT_ERROR = exports.SERVER_ERROR = exports.MALFORMEDXML = exports.EMPTY_RESPONSE = exports.HTTP_ERROR = exports.RESPONSE_XML = exports.RESPONSE_TEXT = exports.ERROR_MESSAGE = exports.ERROR_NAME = exports.STATUS = exports.SOURCE = exports.SUCCESS = exports.COMPLETE = exports.BEGIN = exports.ON_EVENT = exports.ON_ERROR = exports.EVENT = exports.ERROR = exports.WINDOW_ID = exports.CTX_PARAM_RENDER = exports.P_BEHAVIOR_EVENT = exports.P_WINDOW_ID = exports.P_RESET_VALUES = exports.P_EVT = exports.P_RENDER_OVERRIDE = exports.P_RENDER = exports.P_EXECUTE = exports.P_AJAX = exports.IDENT_FORM = exports.IDENT_THIS = exports.IDENT_NONE = exports.IDENT_ALL = exports.HTML_CLIENT_WINDOW = exports.HTML_VIEWSTATE = exports.EMPTY_MAP = exports.EMPTY_STR = exports.EMPTY_FUNC = exports.P_RESOURCE = exports.P_VIEWBODY = exports.P_VIEWHEAD = exports.P_VIEWROOT = exports.P_CLIENT_WINDOW = exports.P_VIEWSTATE = exports.VIEW_ID = exports.NAMING_CONTAINER_ID = exports.P_AJAX_SOURCE = exports.NAMED_VIEWROOT = exports.XML_ATTR_NAMED_VIEWROOT = void 0;
|
|
5307
|
-
exports.
|
|
5308
|
-
exports.$nsp = exports.$faces = exports.UNKNOWN = exports.MAX_RECONNECT_ATTEMPTS = exports.RECONNECT_INTERVAL = exports.APPLIED_CLIENT_WINDOW = exports.APPLIED_VST = exports.REASON_EXPIRED = exports.MF_NONE = exports.MYFACES = exports.DEFERRED_HEAD_INSERTS = exports.UPDATE_ELEMS = exports.UPDATE_FORMS = exports.XML_TAG_ATTR = exports.XML_TAG_AFTER = exports.XML_TAG_BEFORE = void 0;
|
|
5319
|
+
exports.XML_TAG_CHANGES = exports.XML_TAG_PARTIAL_RESP = exports.ATTR_ID = exports.ATTR_VALUE = exports.ATTR_NAME = exports.ATTR_URL = exports.MYFACES_OPTION_PPS = exports.ERR_NO_PARTIAL_RESPONSE = exports.PHASE_PROCESS_RESPONSE = exports.SEL_RESPONSE_XML = exports.SEL_CLIENT_WINDOW_ELEM = exports.SEL_VIEWSTATE_ELEM = exports.HTML_TAG_STYLE = exports.HTML_TAG_SCRIPT = exports.HTML_TAG_LINK = exports.HTML_TAG_BODY = exports.HTML_TAG_FORM = exports.HTML_TAG_HEAD = exports.STD_ACCEPT = exports.NO_TIMEOUT = exports.MULTIPART = exports.URL_ENCODED = exports.STATE_EVT_COMPLETE = exports.STATE_EVT_TIMEOUT = exports.STATE_EVT_BEGIN = exports.REQ_TYPE_POST = exports.REQ_TYPE_GET = exports.ENCODED_URL = exports.VAL_AJAX = exports.REQ_ACCEPT = exports.HEAD_FACES_REQ = exports.CONTENT_TYPE = exports.CTX_PARAM_PPS = exports.CTX_PARAM_REQ_PASS_THR = exports.CTX_PARAM_SRC_CTL_ID = exports.CTX_PARAM_UPLOAD_TIMEOUT = exports.CTX_PARAM_UPLOAD_ABORT = exports.CTX_PARAM_UPLOAD_ERROR = exports.CTX_PARAM_UPLOAD_LOAD = exports.CTX_PARAM_UPLOAD_LOADEND = exports.CTX_PARAM_UPLOAD_LOADSTART = exports.CTX_PARAM_UPLOAD_PREINIT = exports.CTX_PARAM_UPLOAD_ON_PROGRESS = exports.CTX_PARAM_SRC_FRM_ID = exports.CTX_PARAM_MF_INTERNAL = exports.CTX_OPTIONS_EXECUTE = exports.CTX_OPTIONS_RESET = exports.CTX_OPTIONS_TIMEOUT = exports.DELAY_NONE = exports.CTX_OPTIONS_DELAY = void 0;
|
|
5320
|
+
exports.$nsp = exports.$faces = exports.UNKNOWN = exports.MAX_RECONNECT_ATTEMPTS = exports.RECONNECT_INTERVAL = exports.APPLIED_CLIENT_WINDOW = exports.APPLIED_VST = exports.REASON_EXPIRED = exports.MF_NONE = exports.MYFACES = exports.DEFERRED_HEAD_INSERTS = exports.UPDATE_ELEMS = exports.UPDATE_FORMS = exports.XML_TAG_ATTR = exports.XML_TAG_AFTER = exports.XML_TAG_BEFORE = exports.XML_TAG_REDIRECT = exports.XML_TAG_EXTENSION = exports.XML_TAG_ATTRIBUTES = exports.XML_TAG_ERROR = exports.XML_TAG_EVAL = exports.XML_TAG_INSERT = exports.XML_TAG_DELETE = exports.XML_TAG_UPDATE = void 0;
|
|
5309
5321
|
/*
|
|
5310
5322
|
* [export const] constants
|
|
5311
5323
|
*/
|
|
@@ -5373,6 +5385,14 @@ exports.CTX_OPTIONS_RESET = "resetValues";
|
|
|
5373
5385
|
exports.CTX_OPTIONS_EXECUTE = "execute";
|
|
5374
5386
|
exports.CTX_PARAM_MF_INTERNAL = "myfaces.internal";
|
|
5375
5387
|
exports.CTX_PARAM_SRC_FRM_ID = "myfaces.source.formId";
|
|
5388
|
+
exports.CTX_PARAM_UPLOAD_ON_PROGRESS = "myfaces.upload.onProgress";
|
|
5389
|
+
exports.CTX_PARAM_UPLOAD_PREINIT = "myfaces.upload.preInit";
|
|
5390
|
+
exports.CTX_PARAM_UPLOAD_LOADSTART = "myfaces.upload.loadStart";
|
|
5391
|
+
exports.CTX_PARAM_UPLOAD_LOADEND = "myfaces.upload.loadEnd";
|
|
5392
|
+
exports.CTX_PARAM_UPLOAD_LOAD = "myfaces.upload.load";
|
|
5393
|
+
exports.CTX_PARAM_UPLOAD_ERROR = "myfaces.upload.error";
|
|
5394
|
+
exports.CTX_PARAM_UPLOAD_ABORT = "myfaces.upload.abort";
|
|
5395
|
+
exports.CTX_PARAM_UPLOAD_TIMEOUT = "myfaces.upload.timeout";
|
|
5376
5396
|
exports.CTX_PARAM_SRC_CTL_ID = "myfaces.source.controlId";
|
|
5377
5397
|
exports.CTX_PARAM_REQ_PASS_THR = "myfaces.request.passThrough";
|
|
5378
5398
|
exports.CTX_PARAM_PPS = "myfaces.request.pps";
|
|
@@ -8171,6 +8191,7 @@ class XhrRequest extends AsyncRunnable_1.AsyncRunnable {
|
|
|
8171
8191
|
* @param reject
|
|
8172
8192
|
*/
|
|
8173
8193
|
registerXhrCallbacks(resolve, reject) {
|
|
8194
|
+
var _a, _b;
|
|
8174
8195
|
const xhrObject = this.xhrObject;
|
|
8175
8196
|
xhrObject.onabort = () => {
|
|
8176
8197
|
this.onAbort(resolve, reject);
|
|
@@ -8184,6 +8205,40 @@ class XhrRequest extends AsyncRunnable_1.AsyncRunnable {
|
|
|
8184
8205
|
xhrObject.onloadend = () => {
|
|
8185
8206
|
this.onResponseProcessed(this.xhrObject, resolve);
|
|
8186
8207
|
};
|
|
8208
|
+
if (xhrObject === null || xhrObject === void 0 ? void 0 : xhrObject.upload) {
|
|
8209
|
+
//this is an extension so that we can send the upload object of the current
|
|
8210
|
+
//request before any operation
|
|
8211
|
+
(_b = (_a = this.internalContext.getIf(Const_1.CTX_PARAM_UPLOAD_PREINIT)).value) === null || _b === void 0 ? void 0 : _b.call(_a, xhrObject.upload);
|
|
8212
|
+
//now we hook in the upload events
|
|
8213
|
+
xhrObject.upload.addEventListener("progress", (event) => {
|
|
8214
|
+
var _a, _b;
|
|
8215
|
+
(_b = (_a = this.internalContext.getIf(Const_1.CTX_PARAM_UPLOAD_ON_PROGRESS)).value) === null || _b === void 0 ? void 0 : _b.call(_a, xhrObject.upload, event);
|
|
8216
|
+
});
|
|
8217
|
+
xhrObject.upload.addEventListener("load", (event) => {
|
|
8218
|
+
var _a, _b;
|
|
8219
|
+
(_b = (_a = this.internalContext.getIf(Const_1.CTX_PARAM_UPLOAD_LOAD)).value) === null || _b === void 0 ? void 0 : _b.call(_a, xhrObject.upload, event);
|
|
8220
|
+
});
|
|
8221
|
+
xhrObject.upload.addEventListener("loadstart", (event) => {
|
|
8222
|
+
var _a, _b;
|
|
8223
|
+
(_b = (_a = this.internalContext.getIf(Const_1.CTX_PARAM_UPLOAD_LOADSTART)).value) === null || _b === void 0 ? void 0 : _b.call(_a, xhrObject.upload, event);
|
|
8224
|
+
});
|
|
8225
|
+
xhrObject.upload.addEventListener("loadend", (event) => {
|
|
8226
|
+
var _a, _b;
|
|
8227
|
+
(_b = (_a = this.internalContext.getIf(Const_1.CTX_PARAM_UPLOAD_LOADEND)).value) === null || _b === void 0 ? void 0 : _b.call(_a, xhrObject.upload, event);
|
|
8228
|
+
});
|
|
8229
|
+
xhrObject.upload.addEventListener("abort", (event) => {
|
|
8230
|
+
var _a, _b;
|
|
8231
|
+
(_b = (_a = this.internalContext.getIf(Const_1.CTX_PARAM_UPLOAD_ABORT)).value) === null || _b === void 0 ? void 0 : _b.call(_a, xhrObject.upload, event);
|
|
8232
|
+
});
|
|
8233
|
+
xhrObject.upload.addEventListener("timeout", (event) => {
|
|
8234
|
+
var _a, _b;
|
|
8235
|
+
(_b = (_a = this.internalContext.getIf(Const_1.CTX_PARAM_UPLOAD_TIMEOUT)).value) === null || _b === void 0 ? void 0 : _b.call(_a, xhrObject.upload, event);
|
|
8236
|
+
});
|
|
8237
|
+
xhrObject.upload.addEventListener("error", (event) => {
|
|
8238
|
+
var _a, _b;
|
|
8239
|
+
(_b = (_a = this.internalContext.getIf(Const_1.CTX_PARAM_UPLOAD_ERROR)).value) === null || _b === void 0 ? void 0 : _b.call(_a, xhrObject.upload, event);
|
|
8240
|
+
});
|
|
8241
|
+
}
|
|
8187
8242
|
xhrObject.onerror = (errorData) => {
|
|
8188
8243
|
// Safari in rare cases triggers an error when cancelling a request internally, or when
|
|
8189
8244
|
// in this case we simply ignore the request and clear up the queue, because
|