jsf.js_next_gen 4.0.0-RC.20 → 4.0.0-RC.21
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 +9 -4
- 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 +9 -4
- 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 +4 -0
- package/src/main/typescript/impl/xhrCore/ResponseProcessor.ts +0 -2
- package/src/main/typescript/impl/xhrCore/XhrFormData.ts +4 -2
- package/src/main/typescript/test/xhrCore/NamespacesRequestTest.spec.ts +11 -4
- package/src/main/typescript/test/xhrCore/ResponseTest.spec.ts +27 -27
- package/src/main/typescript/test/xhrCore/ResponseTest23.spec.ts +6 -6
- package/target/impl/util/HiddenInputBuilder.js +5 -2
- package/target/impl/util/HiddenInputBuilder.js.map +1 -1
- package/target/impl/xhrCore/ResponseProcessor.js.map +1 -1
- package/target/impl/xhrCore/XhrFormData.js +4 -2
- package/target/impl/xhrCore/XhrFormData.js.map +1 -1
- package/target/test/xhrCore/NamespacesRequestTest.spec.js +6 -3
- package/target/test/xhrCore/NamespacesRequestTest.spec.js.map +1 -1
- package/target/test/xhrCore/ResponseTest.spec.js +27 -27
- package/target/test/xhrCore/ResponseTest.spec.js.map +1 -1
- package/target/test/xhrCore/ResponseTest23.spec.js +6 -6
- package/target/test/xhrCore/ResponseTest23.spec.js.map +1 -1
|
@@ -6085,7 +6085,7 @@ class HiddenInputBuilder {
|
|
|
6085
6085
|
return this;
|
|
6086
6086
|
}
|
|
6087
6087
|
build() {
|
|
6088
|
-
var _a, _b;
|
|
6088
|
+
var _a, _b, _c;
|
|
6089
6089
|
const SEP = (0, Const_1.$faces)().separatorchar;
|
|
6090
6090
|
let existingStates = (0, mona_dish_1.DQ$)(`[name*='${(0, Const_1.$nsp)(this.name)}']`);
|
|
6091
6091
|
let cnt = existingStates.stream.map(state => {
|
|
@@ -6101,7 +6101,10 @@ class HiddenInputBuilder {
|
|
|
6101
6101
|
newElement.id.value = (((_a = this.namingContainerId) === null || _a === void 0 ? void 0 : _a.length) ?
|
|
6102
6102
|
[this.namingContainerId, (0, Const_1.$nsp)(this.name), cnt] :
|
|
6103
6103
|
[(0, Const_1.$nsp)(this.name), cnt]).join(SEP);
|
|
6104
|
-
|
|
6104
|
+
//name must be prefixed with the naming container id as well according to the jsdocs
|
|
6105
|
+
newElement.name.value = ((_b = this.namingContainerId) === null || _b === void 0 ? void 0 : _b.length) ?
|
|
6106
|
+
[this.namingContainerId, (0, Const_1.$nsp)(this.name)].join(SEP) : (0, Const_1.$nsp)(this.name);
|
|
6107
|
+
(_c = this === null || this === void 0 ? void 0 : this.parent) === null || _c === void 0 ? void 0 : _c.append(newElement);
|
|
6105
6108
|
return newElement;
|
|
6106
6109
|
}
|
|
6107
6110
|
}
|
|
@@ -7509,8 +7512,10 @@ class XhrFormData extends mona_dish_1.Config {
|
|
|
7509
7512
|
* @param form the form holding the view state value
|
|
7510
7513
|
*/
|
|
7511
7514
|
applyViewState(form) {
|
|
7512
|
-
let
|
|
7513
|
-
|
|
7515
|
+
let viewStateElement = form.querySelectorAllDeep(`[name*='${Const_1.P_VIEWSTATE}'`);
|
|
7516
|
+
let viewState = viewStateElement.inputValue;
|
|
7517
|
+
// this.appendIf(viewState.isPresent(), P_VIEWSTATE).value = viewState.value;
|
|
7518
|
+
this.appendIf(viewState.isPresent(), viewStateElement.name.value).value = viewState.value;
|
|
7514
7519
|
}
|
|
7515
7520
|
/**
|
|
7516
7521
|
* assigns an url encoded string to this xhrFormData object
|
|
Binary file
|
|
Binary file
|