jsf.js_next_gen 4.0.4-beta.2 → 4.0.4-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.
- package/README.md +28 -17
- package/dist/docs/index.html +7 -9
- package/dist/window/faces-development.js +19 -10
- 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 +19 -10
- 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/remap.js +43 -0
- package/remap.js.map +1 -0
- package/src/main/typescript/impl/AjaxImpl.ts +5 -5
- package/src/main/typescript/impl/core/Const.ts +4 -4
- package/src/main/typescript/impl/util/ExtDomQuery.ts +7 -2
- package/src/main/typescript/impl/xhrCore/ErrorData.ts +7 -4
- package/src/main/typescript/test/impl/util/ExtDomQueryTest.spec.ts +68 -0
- package/src/main/typescript/test/myfaces/OamSubmit.spec.ts +10 -8
- package/src/main/typescript/test/xhrCore/ErrorChainTest.spec.ts +11 -0
- package/src/main/typescript/test/xhrCore/ResponseTest.spec.ts +1 -1
- package/src/main/typescript/test/xhrCore/XhrRequestProgress.spec.ts +32 -2
- package/target/impl/AjaxImpl.js +5 -5
- package/target/impl/AjaxImpl.js.map +1 -1
- package/target/impl/core/Const.js +4 -4
- package/target/impl/core/Const.js.map +1 -1
- package/target/impl/util/ExtDomQuery.js +6 -0
- package/target/impl/util/ExtDomQuery.js.map +1 -1
- package/target/impl/xhrCore/ErrorData.js +4 -1
- package/target/impl/xhrCore/ErrorData.js.map +1 -1
- package/target/test/impl/util/ExtDomQueryTest.spec.js +77 -0
- package/target/test/impl/util/ExtDomQueryTest.spec.js.map +1 -0
- package/target/test/myfaces/OamSubmit.spec.js +2 -2
- package/target/test/myfaces/OamSubmit.spec.js.map +1 -1
- package/target/test/util/ExtDomQueryTest.spec.js +4 -0
- package/target/test/util/ExtDomQueryTest.spec.js.map +1 -0
- package/target/test/xhrCore/ErrorChainTest.spec.js +9 -0
- package/target/test/xhrCore/ErrorChainTest.spec.js.map +1 -1
- package/target/test/xhrCore/ResponseTest.spec.js +1 -1
- package/target/test/xhrCore/ResponseTest.spec.js.map +1 -1
- package/target/test/xhrCore/XhrRequestProgress.spec.js +29 -2
- package/target/test/xhrCore/XhrRequestProgress.spec.js.map +1 -1
package/README.md
CHANGED
|
@@ -58,12 +58,6 @@ In fact the *contextpath* attribute is not present there.
|
|
|
58
58
|
All other attributes behave the same in both versions as in the original legacy codebase.
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
## Usage
|
|
62
|
-
|
|
63
|
-
It still is code complete and in bugfixing phase, for testing purposes
|
|
64
|
-
it can be used (check the dist directory for builds, I consider
|
|
65
|
-
stable enough for testing, or your own builds)
|
|
66
|
-
|
|
67
61
|
|
|
68
62
|
### General build
|
|
69
63
|
|
|
@@ -162,23 +156,40 @@ Usage *faces-config.xml*
|
|
|
162
156
|
This resource decorator detects automatically a faces*.js file coming from a resource library
|
|
163
157
|
and adjusts the references in the resource accordingly to the request patterns
|
|
164
158
|
|
|
165
|
-
##
|
|
159
|
+
## Upload Support
|
|
160
|
+
|
|
161
|
+
As non standard extension XMLHttpRequestUpload support is added
|
|
166
162
|
|
|
167
|
-
* Elimination of Streams in favor of native arrays
|
|
168
|
-
* Providing an internal non intrusive shim for browsers which do not have array map and flapMap
|
|
169
|
-
(older Edge and Chromium versions) - done in mona-dish
|
|
170
|
-
* Adding a progress monitoring functionality under the myfaces namespace
|
|
171
163
|
```json
|
|
172
|
-
faces.ajax.request(document.getElementById("cmd_eval"), null,
|
|
164
|
+
faces.ajax.request(document.getElementById("cmd_eval"), null,
|
|
165
|
+
{
|
|
173
166
|
render: '@form',
|
|
174
167
|
execute: '@form',
|
|
175
168
|
myfaces: {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
169
|
+
upload: {
|
|
170
|
+
progress: (upload: XMLHttpRequestUpload, event: ProgressEvent) => {
|
|
171
|
+
caughtProgressEvents.push(event);
|
|
172
|
+
},
|
|
173
|
+
preinit: (upload: XMLHttpRequestUpload) => preinitTriggered = true,
|
|
174
|
+
loadstart: (upload: XMLHttpRequestUpload, event: ProgressEvent) => loadstartTriggered = true,
|
|
175
|
+
load: (upload: XMLHttpRequestUpload, event: ProgressEvent) => loadTriggered = true,
|
|
176
|
+
loadend: (upload: XMLHttpRequestUpload, event: ProgressEvent) => loadendTriggered = true,
|
|
177
|
+
error: (upload: XMLHttpRequestUpload, event: ProgressEvent) => errorTriggered = true,
|
|
178
|
+
abort: (upload: XMLHttpRequestUpload, event: ProgressEvent) => abortTriggered = true,
|
|
179
|
+
timeout: (upload: XMLHttpRequestUpload, event: ProgressEvent) => timeoutTriggered = true,
|
|
180
|
+
}
|
|
181
181
|
}
|
|
182
182
|
});
|
|
183
183
|
```
|
|
184
184
|
|
|
185
|
+
## Changes since 4.0
|
|
186
|
+
|
|
187
|
+
* Elimination of Streams in favor of native arrays
|
|
188
|
+
* Providing an internal non intrusive shim for browsers which do not have array map and flapMap
|
|
189
|
+
(older Edge and Chromium versions) - done in mona-dish
|
|
190
|
+
* Adding a progress monitoring functionality under the myfaces namespace
|
|
191
|
+
* Bugfixes which improve tck compliance
|
|
192
|
+
* Integration in myfaces 4.0+ as default faces.js implementation
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
package/dist/docs/index.html
CHANGED
|
@@ -51,9 +51,6 @@ by the internal resource loader.</p>
|
|
|
51
51
|
<p>The JSF 2.3 version (jsf.js) is not affected by this change, so nothing needs to be done.
|
|
52
52
|
In fact the <em>contextpath</em> attribute is not present there.
|
|
53
53
|
All other attributes behave the same in both versions as in the original legacy codebase.</p>
|
|
54
|
-
<a id="md:usage" class="tsd-anchor"></a><h2><a href="#md:usage">Usage</a></h2><p>It still is code complete and in bugfixing phase, for testing purposes
|
|
55
|
-
it can be used (check the dist directory for builds, I consider
|
|
56
|
-
stable enough for testing, or your own builds)</p>
|
|
57
54
|
<a id="md:general-build" class="tsd-anchor"></a><h3><a href="#md:general-build">General build</a></h3><p>run </p>
|
|
58
55
|
<ul>
|
|
59
56
|
<li>npm install</li>
|
|
@@ -131,14 +128,17 @@ the decorator provided.</p>
|
|
|
131
128
|
</code><button>Copy</button></pre>
|
|
132
129
|
<p>This resource decorator detects automatically a faces*.js file coming from a resource library
|
|
133
130
|
and adjusts the references in the resource accordingly to the request patterns</p>
|
|
131
|
+
<a id="md:upload-support" class="tsd-anchor"></a><h2><a href="#md:upload-support">Upload Support</a></h2><p>As non standard extension XMLHttpRequestUpload support is added</p>
|
|
132
|
+
<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><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">progress</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><span class="hl-5">preinit</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">=></span><span class="hl-2"> </span><span class="hl-5">preinitTriggered</span><span class="hl-2"> </span><span class="hl-5">=</span><span class="hl-2"> </span><span class="hl-4">true</span><span class="hl-2">,</span><br/><span class="hl-2"> </span><span class="hl-5">loadstart</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><span class="hl-5">loadstartTriggered</span><span class="hl-2"> </span><span class="hl-5">=</span><span class="hl-2"> </span><span class="hl-4">true</span><span class="hl-2">,</span><br/><span class="hl-2"> </span><span class="hl-5">load</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><span class="hl-5">loadTriggered</span><span class="hl-2"> </span><span class="hl-5">=</span><span class="hl-2"> </span><span class="hl-4">true</span><span class="hl-2">,</span><br/><span class="hl-2"> </span><span class="hl-5">loadend</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><span class="hl-5">loadendTriggered</span><span class="hl-2"> </span><span class="hl-5">=</span><span class="hl-2"> </span><span class="hl-4">true</span><span class="hl-2">,</span><br/><span class="hl-2"> </span><span class="hl-5">error</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><span class="hl-5">errorTriggered</span><span class="hl-2"> </span><span class="hl-5">=</span><span class="hl-2"> </span><span class="hl-4">true</span><span class="hl-2">,</span><br/><span class="hl-2"> </span><span class="hl-5">abort</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><span class="hl-5">abortTriggered</span><span class="hl-2"> </span><span class="hl-5">=</span><span class="hl-2"> </span><span class="hl-4">true</span><span class="hl-2">,</span><br/><span class="hl-2"> </span><span class="hl-5">timeout</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><span class="hl-5">timeoutTriggered</span><span class="hl-2"> </span><span class="hl-5">=</span><span class="hl-2"> </span><span class="hl-4">true</span><span class="hl-2">,</span><br/><span class="hl-2"> }</span><br/><span class="hl-2"> }</span><br/><span class="hl-2">});</span>
|
|
133
|
+
</code><button>Copy</button></pre>
|
|
134
134
|
<a id="md:changes-since-40" class="tsd-anchor"></a><h2><a href="#md:changes-since-40">Changes since 4.0</a></h2><ul>
|
|
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
138
|
<li>Adding a progress monitoring functionality under the myfaces namespace</li>
|
|
139
|
+
<li>Bugfixes which improve tck compliance</li>
|
|
140
|
+
<li>Integration in myfaces 4.0+ as default faces.js implementation</li>
|
|
139
141
|
</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>
|
|
142
142
|
</div></div>
|
|
143
143
|
<div class="col-sidebar">
|
|
144
144
|
<div class="page-menu">
|
|
@@ -165,10 +165,7 @@ and adjusts the references in the resource accordingly to the request patterns</
|
|
|
165
165
|
<li><a href="#md:status"><span>Status</span></a></li>
|
|
166
166
|
<li>
|
|
167
167
|
<ul>
|
|
168
|
-
<li><a href="#md:special-info"><span>Special info</span></a></li
|
|
169
|
-
<li><a href="#md:usage"><span>Usage</span></a></li>
|
|
170
|
-
<li>
|
|
171
|
-
<ul>
|
|
168
|
+
<li><a href="#md:special-info"><span>Special info</span></a></li>
|
|
172
169
|
<li><a href="#md:general-build"><span>General build</span></a></li>
|
|
173
170
|
<li>
|
|
174
171
|
<ul>
|
|
@@ -176,6 +173,7 @@ and adjusts the references in the resource accordingly to the request patterns</
|
|
|
176
173
|
<li><a href="#md:tests"><span>Tests</span></a></li>
|
|
177
174
|
<li><a href="#md:test-coverage"><span>Test <wbr/>Coverage</span></a></li>
|
|
178
175
|
<li><a href="#md:changelist-compared-to-the-original-implementation"><span>Changelist compared to the original implementation</span></a></li></ul></li>
|
|
176
|
+
<li><a href="#md:upload-support"><span>Upload <wbr/>Support</span></a></li>
|
|
179
177
|
<li><a href="#md:changes-since-40"><span>Changes since 4.0</span></a></li></ul></li></ul></li></ul></div></details></div>
|
|
180
178
|
<div class="site-menu">
|
|
181
179
|
<nav class="tsd-navigation"><a href="modules.html" class="current"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>jsf.js_<wbr/>next_<wbr/>gen</span></a>
|
|
@@ -4548,10 +4548,10 @@ var Implementation;
|
|
|
4548
4548
|
* special myfaces only internal parameter for onProgress until we have an official api
|
|
4549
4549
|
* that way we can track the progress of a xhr request (useful for file uploads)
|
|
4550
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.progress;
|
|
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
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
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
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;
|
|
@@ -4916,7 +4916,7 @@ var Implementation;
|
|
|
4916
4916
|
// and no prepend (aka tobago testcase "must handle ':' in IDs properly", scenario 3,
|
|
4917
4917
|
// in this case we return the component id, and be happy
|
|
4918
4918
|
// we can roll a dom check here
|
|
4919
|
-
return
|
|
4919
|
+
return mona_dish_1.DQ.byId(finalIdentifier).isPresent() ? finalIdentifier : componentIdToTransform;
|
|
4920
4920
|
};
|
|
4921
4921
|
// in this case we do not use lazy stream because it won´t bring any code reduction
|
|
4922
4922
|
// or speedup
|
|
@@ -5385,10 +5385,10 @@ exports.CTX_OPTIONS_RESET = "resetValues";
|
|
|
5385
5385
|
exports.CTX_OPTIONS_EXECUTE = "execute";
|
|
5386
5386
|
exports.CTX_PARAM_MF_INTERNAL = "myfaces.internal";
|
|
5387
5387
|
exports.CTX_PARAM_SRC_FRM_ID = "myfaces.source.formId";
|
|
5388
|
-
exports.CTX_PARAM_UPLOAD_ON_PROGRESS = "myfaces.upload.
|
|
5389
|
-
exports.CTX_PARAM_UPLOAD_PREINIT = "myfaces.upload.
|
|
5390
|
-
exports.CTX_PARAM_UPLOAD_LOADSTART = "myfaces.upload.
|
|
5391
|
-
exports.CTX_PARAM_UPLOAD_LOADEND = "myfaces.upload.
|
|
5388
|
+
exports.CTX_PARAM_UPLOAD_ON_PROGRESS = "myfaces.upload.progress";
|
|
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
5392
|
exports.CTX_PARAM_UPLOAD_LOAD = "myfaces.upload.load";
|
|
5393
5393
|
exports.CTX_PARAM_UPLOAD_ERROR = "myfaces.upload.error";
|
|
5394
5394
|
exports.CTX_PARAM_UPLOAD_ABORT = "myfaces.upload.abort";
|
|
@@ -6069,7 +6069,13 @@ class ExtDomQuery extends mona_dish_1.DQ {
|
|
|
6069
6069
|
* @return a DomQuery containing the found elements
|
|
6070
6070
|
*/
|
|
6071
6071
|
static byId(selector, deep = false) {
|
|
6072
|
+
var _a, _b, _c;
|
|
6072
6073
|
const ret = mona_dish_1.DomQuery.byId(selector, deep);
|
|
6074
|
+
if ((0, Const_1.$faces)().getProjectStage().toLowerCase() == "development" &&
|
|
6075
|
+
(window === null || window === void 0 ? void 0 : window.console) && ret.isAbsent() && selector) {
|
|
6076
|
+
let identifier = (_c = (_b = (_a = selector === null || selector === void 0 ? void 0 : selector.id) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : selector === null || selector === void 0 ? void 0 : selector.id) !== null && _c !== void 0 ? _c : selector.toString();
|
|
6077
|
+
console.error("Element " + identifier + "not found");
|
|
6078
|
+
}
|
|
6073
6079
|
return new ExtDomQuery(ret);
|
|
6074
6080
|
}
|
|
6075
6081
|
filter(func) {
|
|
@@ -6752,6 +6758,7 @@ exports.ErrorData = exports.ErrorType = void 0;
|
|
|
6752
6758
|
* limitations under the License.
|
|
6753
6759
|
*/
|
|
6754
6760
|
const Const_1 = __webpack_require__(/*! ../core/Const */ "./src/main/typescript/impl/core/Const.ts");
|
|
6761
|
+
const mona_dish_1 = __webpack_require__(/*! mona-dish */ "./node_modules/mona-dish/src/main/typescript/index_core.ts");
|
|
6755
6762
|
const EventData_1 = __webpack_require__(/*! ./EventData */ "./src/main/typescript/impl/xhrCore/EventData.ts");
|
|
6756
6763
|
const Lang_1 = __webpack_require__(/*! ../util/Lang */ "./src/main/typescript/impl/util/Lang.ts");
|
|
6757
6764
|
var getMessage = Lang_1.ExtLang.getMessage;
|
|
@@ -6775,7 +6782,9 @@ class ErrorData extends EventData_1.EventData {
|
|
|
6775
6782
|
constructor(source, errorName, errorMessage, responseText = null, responseXML = null, responseCode = -1, statusOverride = null, type = ErrorType.CLIENT_ERROR) {
|
|
6776
6783
|
super();
|
|
6777
6784
|
this.type = "error";
|
|
6778
|
-
|
|
6785
|
+
///MYFACES-4676 error payload expects an element if possible
|
|
6786
|
+
//this code remaps the string in an element and if not existing just passes as is what comes in
|
|
6787
|
+
this.source = mona_dish_1.DQ.byId(source).value.orElse(source).value;
|
|
6779
6788
|
this.type = Const_1.ERROR;
|
|
6780
6789
|
this.errorName = errorName;
|
|
6781
6790
|
//tck requires that the type is prefixed to the message itself (jsdoc also) in case of a server error
|