jsf.js_next_gen 4.0.4-beta.3 → 4.0.4-beta.5
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 +13 -5
- 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 +13 -5
- 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/@types/definitions/index.d.ts +1 -1
- package/src/main/typescript/impl/AjaxImpl.ts +1 -1
- package/src/main/typescript/impl/util/ExtDomQuery.ts +7 -2
- package/src/main/typescript/impl/xhrCore/ErrorData.ts +8 -5
- package/src/main/typescript/impl/xhrCore/EventData.ts +2 -2
- 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/RequestTest_23.spec.ts +1 -0
- package/src/main/typescript/test/xhrCore/ResponseTest.spec.ts +1 -1
- package/target/classes/com/example/jsfs_js_ts/DecoratedFacesJS.class +0 -0
- package/target/classes/com/example/jsfs_js_ts/DecoratingResourceHandlerWrapper.class +0 -0
- package/target/classes/com/example/jsfs_js_ts/FacesJSMapFileResourceWrapper.class +0 -0
- package/target/classes/com/example/jsfs_js_ts/FacesJSMappingDecorator.class +0 -0
- package/target/impl/AjaxImpl.js +1 -1
- package/target/impl/AjaxImpl.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 +5 -2
- package/target/impl/xhrCore/ErrorData.js.map +1 -1
- package/target/impl/xhrCore/EventData.js +1 -2
- package/target/impl/xhrCore/EventData.js.map +1 -1
- package/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst +4 -0
- package/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +4 -0
- package/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst +1 -0
- package/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst +1 -0
- package/target/surefire-reports/TEST-com.example.jsfs_js_ts.JsfsJsTsApplicationTests.xml +76 -0
- package/target/surefire-reports/com.example.jsfs_js_ts.JsfsJsTsApplicationTests.txt +7 -0
- 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/xhrCore/ErrorChainTest.spec.js +9 -0
- package/target/test/xhrCore/ErrorChainTest.spec.js.map +1 -1
- package/target/test/xhrCore/RequestTest_23.spec.js +1 -0
- package/target/test/xhrCore/RequestTest_23.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-classes/com/example/jsfs_js_ts/JsfsJsTsApplicationTests.class +0 -0
|
@@ -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
|
|
@@ -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,12 +6782,14 @@ 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
|
|
6782
6791
|
this.errorMessage = errorMessage;
|
|
6783
|
-
this.responseCode =
|
|
6792
|
+
this.responseCode = responseCode;
|
|
6784
6793
|
this.responseText = responseText;
|
|
6785
6794
|
this.responseXML = responseXML;
|
|
6786
6795
|
this.status = statusOverride;
|
|
@@ -6848,7 +6857,6 @@ const mona_dish_1 = __webpack_require__(/*! mona-dish */ "./node_modules/mona-di
|
|
|
6848
6857
|
const Const_1 = __webpack_require__(/*! ../core/Const */ "./src/main/typescript/impl/core/Const.ts");
|
|
6849
6858
|
class EventData {
|
|
6850
6859
|
static createFromRequest(request, context, /*event name*/ name) {
|
|
6851
|
-
var _a;
|
|
6852
6860
|
let eventData = new EventData();
|
|
6853
6861
|
eventData.type = Const_1.EVENT;
|
|
6854
6862
|
eventData.status = name;
|
|
@@ -6860,7 +6868,7 @@ class EventData {
|
|
|
6860
6868
|
eventData.source = mona_dish_1.DQ.byId(sourceId, true).first().value.value;
|
|
6861
6869
|
}
|
|
6862
6870
|
if (name !== Const_1.BEGIN) {
|
|
6863
|
-
eventData.responseCode =
|
|
6871
|
+
eventData.responseCode = request === null || request === void 0 ? void 0 : request.status;
|
|
6864
6872
|
eventData.responseText = request === null || request === void 0 ? void 0 : request.responseText;
|
|
6865
6873
|
eventData.responseXML = request === null || request === void 0 ? void 0 : request.responseXML;
|
|
6866
6874
|
}
|