jsf.js_next_gen 4.0.2-beta.1 → 4.0.2-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/dist/window/faces-development.js +8 -6
- package/dist/window/faces-development.js.br +0 -0
- package/dist/window/faces-development.js.gz +0 -0
- package/dist/window/faces-development.js.map +1 -1
- package/dist/window/faces.js +1 -1
- package/dist/window/faces.js.br +0 -0
- package/dist/window/faces.js.gz +0 -0
- package/dist/window/faces.js.map +1 -1
- package/dist/window/jsf-development.js +8 -6
- package/dist/window/jsf-development.js.br +0 -0
- package/dist/window/jsf-development.js.gz +0 -0
- package/dist/window/jsf-development.js.map +1 -1
- package/dist/window/jsf.js +1 -1
- package/dist/window/jsf.js.br +0 -0
- package/dist/window/jsf.js.gz +0 -0
- package/dist/window/jsf.js.map +1 -1
- package/package.json +1 -1
- package/src/main/typescript/impl/util/HiddenInputBuilder.ts +2 -2
- package/src/main/typescript/impl/xhrCore/XhrRequest.ts +6 -4
- package/src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.ts +22 -0
- package/src/main/typescript/test/xhrCore/RequestTest.spec.ts +45 -0
- package/src/main/typescript/test/xhrCore/ResponseTest.spec.ts +3 -3
- package/target/impl/util/HiddenInputBuilder.js +2 -2
- package/target/impl/util/HiddenInputBuilder.js.map +1 -1
- package/target/impl/xhrCore/XhrRequest.js +6 -4
- package/target/impl/xhrCore/XhrRequest.js.map +1 -1
- package/target/test/frameworkBase/_ext/shared/StandardInits.js +20 -0
- package/target/test/frameworkBase/_ext/shared/StandardInits.js.map +1 -1
- package/target/test/xhrCore/RequestTest.spec.js +36 -0
- package/target/test/xhrCore/RequestTest.spec.js.map +1 -1
- package/target/test/xhrCore/ResponseTest.spec.js +3 -3
|
@@ -6220,7 +6220,7 @@ class HiddenInputBuilder {
|
|
|
6220
6220
|
const SEP = (0, Const_1.$faces)().separatorchar;
|
|
6221
6221
|
let existingStates = (0, mona_dish_1.DQ$)(`[name*='${(0, Const_1.$nsp)(this.name)}']`);
|
|
6222
6222
|
let cnt = existingStates.asArray.map(state => {
|
|
6223
|
-
let ident = state.id.orElse("
|
|
6223
|
+
let ident = state.id.orElse("0").value;
|
|
6224
6224
|
ident = ident.substring(ident.lastIndexOf(SEP) + 1);
|
|
6225
6225
|
return parseInt(ident);
|
|
6226
6226
|
})
|
|
@@ -6229,7 +6229,7 @@ class HiddenInputBuilder {
|
|
|
6229
6229
|
})
|
|
6230
6230
|
.reduce((item1, item2) => {
|
|
6231
6231
|
return Math.max(item1, item2);
|
|
6232
|
-
},
|
|
6232
|
+
}, 0); //we start with 1 (see cnt++)
|
|
6233
6233
|
//the maximum new ident is the current max + 1
|
|
6234
6234
|
cnt++;
|
|
6235
6235
|
const newElement = mona_dish_1.DQ.fromMarkup((0, Const_1.$nsp)(this.template));
|
|
@@ -8035,10 +8035,12 @@ class XhrRequest extends AsyncRunnable_1.AsyncRunnable {
|
|
|
8035
8035
|
}
|
|
8036
8036
|
const issuingItemId = this.internalContext.getIf(Const_1.CTX_PARAM_SRC_CTL_ID).value;
|
|
8037
8037
|
if (issuingItemId) {
|
|
8038
|
-
const
|
|
8039
|
-
|
|
8040
|
-
|
|
8041
|
-
|
|
8038
|
+
const itemValue = mona_dish_1.DQ.byId(issuingItemId).inputValue;
|
|
8039
|
+
if (itemValue.isPresent()) {
|
|
8040
|
+
const arr = new ExtDomQuery_1.ExtConfig({});
|
|
8041
|
+
arr.assign(issuingItemId).value = itemValue.value;
|
|
8042
|
+
formData.shallowMerge(arr, true, true);
|
|
8043
|
+
}
|
|
8042
8044
|
}
|
|
8043
8045
|
this.responseContext = requestPassThroughParams.deepCopy;
|
|
8044
8046
|
// we have to shift the internal passthroughs around to build up our response context
|
|
Binary file
|
|
Binary file
|