jsf.js_next_gen 1.0.0-beta-20 → 4.0.0-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/.nyc_output/2303b649-59d9-485c-9228-73b0ec8787a7.json +1 -0
- package/.nyc_output/756f2f03-c85b-4cdb-9b92-5799eb45ef1e.json +1 -0
- package/.nyc_output/processinfo/2303b649-59d9-485c-9228-73b0ec8787a7.json +1 -0
- package/.nyc_output/processinfo/756f2f03-c85b-4cdb-9b92-5799eb45ef1e.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -0
- package/README.md +12 -0
- package/dist/docs/assets/search.js +1 -1
- package/dist/docs/functions/{jsf.ajax.addOnError.html → faces.ajax.addOnError.html} +11 -11
- package/dist/docs/functions/{jsf.ajax.addOnEvent.html → faces.ajax.addOnEvent.html} +11 -11
- package/dist/docs/functions/{jsf.ajax.request.html → faces.ajax.request.html} +11 -11
- package/dist/docs/functions/{jsf.ajax.response.html → faces.ajax.response.html} +11 -11
- package/dist/docs/functions/{jsf.getClientWindow.html → faces.getClientWindow.html} +12 -12
- package/dist/docs/functions/{jsf.getProjectStage.html → faces.getProjectStage.html} +13 -13
- package/dist/docs/functions/{jsf.getViewState.html → faces.getViewState.html} +13 -13
- package/dist/docs/functions/{jsf.push.close.html → faces.push.close.html} +10 -10
- package/dist/docs/functions/{jsf.push.init.html → faces.push.init.html} +10 -10
- package/dist/docs/functions/{jsf.push.open.html → faces.push.open.html} +10 -10
- package/dist/docs/functions/{jsf.util.chain.html → faces.util.chain.html} +8 -8
- package/dist/docs/functions/myfaces.ab.html +6 -6
- package/dist/docs/index.html +13 -4
- package/dist/docs/modules/{jsf.ajax.html → faces.ajax.html} +14 -14
- package/dist/docs/modules/{jsf.html → faces.html} +22 -22
- package/dist/docs/modules/{jsf.push.html → faces.push.html} +12 -12
- package/dist/docs/modules/{jsf.util.html → faces.util.html} +8 -8
- package/dist/docs/modules/myfaces.html +4 -4
- package/dist/docs/modules.html +5 -5
- package/dist/docs/variables/{jsf.implversion.html → faces.implversion.html} +12 -12
- package/dist/docs/variables/{jsf.separatorchar.html → faces.separatorchar.html} +12 -12
- package/dist/docs/variables/{jsf.specversion.html → faces.specversion.html} +13 -13
- package/dist/docs/variables/myfaces.oam.html +4 -4
- package/dist/window/faces-development.js +7695 -0
- 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 -0
- package/dist/window/faces.js +2 -0
- package/dist/window/faces.js.br +0 -0
- package/dist/window/faces.js.gz +0 -0
- package/dist/window/faces.js.map +1 -0
- package/dist/window/jsf-development.js +192 -102
- 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 +2 -2
- package/src/main/types/typedefs.d.ts +2 -0
- package/src/main/typescript/api/{Jsf.ts → faces.ts} +14 -10
- package/src/main/typescript/api/jsf.ts +30 -0
- package/src/main/typescript/impl/AjaxImpl.ts +17 -15
- package/src/main/typescript/impl/PushImpl.ts +3 -3
- package/src/main/typescript/impl/core/Const.ts +52 -14
- package/src/main/typescript/impl/i18n/Messages.ts +1 -1
- package/src/main/typescript/impl/util/Assertions.ts +1 -1
- package/src/main/typescript/impl/util/ExtDomQuery.ts +32 -21
- package/src/main/typescript/impl/xhrCore/EventData.ts +2 -1
- package/src/main/typescript/impl/xhrCore/RequestDataResolver.ts +1 -1
- package/src/main/typescript/impl/xhrCore/Response.ts +2 -2
- package/src/main/typescript/impl/xhrCore/ResponseProcessor.ts +4 -2
- package/src/main/typescript/impl/xhrCore/XhrFormData.ts +2 -2
- package/src/main/typescript/impl/xhrCore/XhrRequest.ts +4 -5
- package/src/main/typescript/myfaces/OamSubmit.ts +0 -1
- package/src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.ts +58 -27
- package/src/main/typescript/test/frameworkBase/_ext/shared/XmlResponses.ts +4 -4
- package/src/main/typescript/test/impl/ImplTest.spec.ts +12 -12
- package/src/main/typescript/test/impl/ImplTest_23.spec.ts +134 -0
- package/src/main/typescript/test/impl/SeparatorCharsTest.spec.ts +6 -3
- package/src/main/typescript/test/queue/AsynchronousQueueTest.spec.ts +1 -1
- package/src/main/typescript/test/xhrCore/EventTests.spec.ts +7 -7
- package/src/main/typescript/test/xhrCore/FileUploadTest.spec.ts +5 -5
- package/src/main/typescript/test/xhrCore/RequestParamsTest.spec.ts +22 -22
- package/src/main/typescript/test/xhrCore/RequestTest.spec.ts +11 -11
- package/src/main/typescript/test/xhrCore/ResponseTest.spec.ts +26 -26
- package/src/main/typescript/test/xhrCore/ShadowDomTest.spec.ts +3 -5
- package/src/main/typescript/test/xhrCore/WebsocketTest.ts +8 -8
- package/src/main/typescript/tsconfig-typedoc.json +1 -1
- package/src/test/resources/jsf-development.js +1 -1
- package/target/api/Jsf.js +16 -244
- package/target/api/Jsf.js.map +1 -1
- package/target/api/faces.js +265 -0
- package/target/api/faces.js.map +1 -0
- package/target/impl/AjaxImpl.js +14 -13
- package/target/impl/AjaxImpl.js.map +1 -1
- package/target/impl/PushImpl.js +3 -3
- package/target/impl/PushImpl.js.map +1 -1
- package/target/impl/core/Const.js +51 -14
- package/target/impl/core/Const.js.map +1 -1
- package/target/impl/i18n/Messages.js +1 -1
- package/target/impl/i18n/Messages.js.map +1 -1
- package/target/impl/util/Assertions.js +1 -1
- package/target/impl/util/Assertions.js.map +1 -1
- package/target/impl/util/ExtDomQuery.js +27 -16
- package/target/impl/util/ExtDomQuery.js.map +1 -1
- package/target/impl/xhrCore/EventData.js +2 -1
- package/target/impl/xhrCore/EventData.js.map +1 -1
- package/target/impl/xhrCore/RequestDataResolver.js +1 -1
- package/target/impl/xhrCore/Response.js +2 -2
- package/target/impl/xhrCore/ResponseProcessor.js +10 -10
- package/target/impl/xhrCore/ResponseProcessor.js.map +1 -1
- package/target/impl/xhrCore/XhrFormData.js +2 -2
- package/target/impl/xhrCore/XhrRequest.js +4 -3
- package/target/impl/xhrCore/XhrRequest.js.map +1 -1
- package/target/myfaces/OamSubmit.js +0 -1
- package/target/myfaces/OamSubmit.js.map +1 -1
- package/target/test/frameworkBase/_ext/shared/StandardInits.js +63 -25
- package/target/test/frameworkBase/_ext/shared/StandardInits.js.map +1 -1
- package/target/test/frameworkBase/_ext/shared/XmlResponses.js +4 -4
- package/target/test/frameworkBase/_ext/shared/XmlResponses.js.map +1 -1
- package/target/test/impl/ImplTest.spec.js +53 -12
- package/target/test/impl/ImplTest.spec.js.map +1 -1
- package/target/test/impl/ImplTest_23.spec.js +165 -0
- package/target/test/impl/ImplTest_23.spec.js.map +1 -0
- package/target/test/impl/ImplTest_23.spec_.js +165 -0
- package/target/test/impl/ImplTest_23.spec_.js.map +1 -0
- package/target/test/impl/SeparatorCharsTest.spec.js +6 -2
- package/target/test/impl/SeparatorCharsTest.spec.js.map +1 -1
- package/target/test/queue/AsynchronousQueueTest.spec.js +1 -1
- package/target/test/queue/AsynchronousQueueTest.spec.js.map +1 -1
- package/target/test/xhrCore/EventTests.spec.js +6 -6
- package/target/test/xhrCore/EventTests.spec.js.map +1 -1
- package/target/test/xhrCore/FileUploadTest.spec.js +4 -4
- package/target/test/xhrCore/FileUploadTest.spec.js.map +1 -1
- package/target/test/xhrCore/RequestParamsTest.spec.js +22 -22
- package/target/test/xhrCore/RequestParamsTest.spec.js.map +1 -1
- package/target/test/xhrCore/RequestTest.spec.js +10 -10
- package/target/test/xhrCore/RequestTest.spec.js.map +1 -1
- package/target/test/xhrCore/ResponseTest.spec.js +21 -21
- package/target/test/xhrCore/ResponseTest.spec.js.map +1 -1
- package/target/test/xhrCore/ShadowDomTest.spec.js +2 -3
- package/target/test/xhrCore/ShadowDomTest.spec.js.map +1 -1
- package/target/test/xhrCore/WebsocketTest.js +7 -7
- package/target/test/xhrCore/WebsocketTest.js.map +1 -1
- package/webpack.config.js +7 -4
- package/webpack.config.js.map +1 -1
- package/webpack.config.ts +7 -4
- package/integrationdeploy.cmd +0 -4
- package/integrationsdeploy.sh +0 -5
|
@@ -3767,10 +3767,10 @@ Object.defineProperty(exports, "QueryFormDataCollector", ({ enumerable: true, ge
|
|
|
3767
3767
|
|
|
3768
3768
|
/***/ }),
|
|
3769
3769
|
|
|
3770
|
-
/***/ "./src/main/typescript/api/
|
|
3771
|
-
|
|
3772
|
-
!*** ./src/main/typescript/api/
|
|
3773
|
-
|
|
3770
|
+
/***/ "./src/main/typescript/api/faces.ts":
|
|
3771
|
+
/*!******************************************!*\
|
|
3772
|
+
!*** ./src/main/typescript/api/faces.ts ***!
|
|
3773
|
+
\******************************************/
|
|
3774
3774
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
3775
3775
|
|
|
3776
3776
|
|
|
@@ -3799,19 +3799,19 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
3799
3799
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
3800
3800
|
};
|
|
3801
3801
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3802
|
-
exports.myfaces = exports.
|
|
3802
|
+
exports.myfaces = exports.faces = void 0;
|
|
3803
3803
|
///<reference types='../../types/typedefs'/>
|
|
3804
3804
|
var AjaxImpl_1 = __webpack_require__(/*! ../impl/AjaxImpl */ "./src/main/typescript/impl/AjaxImpl.ts");
|
|
3805
3805
|
var PushImpl_1 = __webpack_require__(/*! ../impl/PushImpl */ "./src/main/typescript/impl/PushImpl.ts");
|
|
3806
3806
|
var OamSubmit_1 = __webpack_require__(/*! ../myfaces/OamSubmit */ "./src/main/typescript/myfaces/OamSubmit.ts");
|
|
3807
3807
|
//declare const Implementation: any;
|
|
3808
|
-
var
|
|
3809
|
-
(function (
|
|
3808
|
+
var faces;
|
|
3809
|
+
(function (faces) {
|
|
3810
3810
|
"use strict";
|
|
3811
3811
|
/*
|
|
3812
|
-
* Version of the implementation for the
|
|
3812
|
+
* Version of the implementation for the faces.js.
|
|
3813
3813
|
* <p />
|
|
3814
|
-
* as specified within the jsf specifications
|
|
3814
|
+
* as specified within the jsf specifications faces.html:
|
|
3815
3815
|
* <ul>
|
|
3816
3816
|
* <li>left two digits major release number</li>
|
|
3817
3817
|
* <li>middle two digits minor spec release number</li>
|
|
@@ -3819,7 +3819,7 @@ var jsf;
|
|
|
3819
3819
|
* </ul>
|
|
3820
3820
|
* @constant
|
|
3821
3821
|
*/
|
|
3822
|
-
|
|
3822
|
+
faces.specversion = 400000;
|
|
3823
3823
|
/**
|
|
3824
3824
|
* Implementation version as specified within the jsf specification.
|
|
3825
3825
|
* <p />
|
|
@@ -3828,12 +3828,12 @@ var jsf;
|
|
|
3828
3828
|
*
|
|
3829
3829
|
* @constant
|
|
3830
3830
|
*/
|
|
3831
|
-
|
|
3831
|
+
faces.implversion = 0;
|
|
3832
3832
|
/**
|
|
3833
3833
|
* SeparatorChar as defined by UINamingContainer.getNamingContainerSeparatorChar()
|
|
3834
3834
|
* @type {Char}
|
|
3835
3835
|
*/
|
|
3836
|
-
|
|
3836
|
+
faces.separatorchar = getSeparatorChar();
|
|
3837
3837
|
/**
|
|
3838
3838
|
* This method is responsible for the return of a given project stage as defined
|
|
3839
3839
|
* by the jsf specification.
|
|
@@ -3847,15 +3847,15 @@ var jsf;
|
|
|
3847
3847
|
* </li>
|
|
3848
3848
|
*
|
|
3849
3849
|
* @return {String} the current project state emitted by the server side method:
|
|
3850
|
-
* <i>
|
|
3850
|
+
* <i>jakarta.faces.application.Application.getProjectStage()</i>
|
|
3851
3851
|
*/
|
|
3852
3852
|
function getProjectStage() {
|
|
3853
3853
|
return AjaxImpl_1.Implementation.getProjectStage();
|
|
3854
3854
|
}
|
|
3855
|
-
|
|
3855
|
+
faces.getProjectStage = getProjectStage;
|
|
3856
3856
|
/**
|
|
3857
3857
|
* collect and encode data for a given form element (must be of type form)
|
|
3858
|
-
* find the
|
|
3858
|
+
* find the jakarta.faces.ViewState element and encode its value as well!
|
|
3859
3859
|
* return a concatenated string of the encoded values!
|
|
3860
3860
|
*
|
|
3861
3861
|
* @throws an exception in case of the given element not being of type form!
|
|
@@ -3864,7 +3864,7 @@ var jsf;
|
|
|
3864
3864
|
function getViewState(formElement) {
|
|
3865
3865
|
return AjaxImpl_1.Implementation.getViewState(formElement);
|
|
3866
3866
|
}
|
|
3867
|
-
|
|
3867
|
+
faces.getViewState = getViewState;
|
|
3868
3868
|
/**
|
|
3869
3869
|
* returns the window identifier for the given node / window
|
|
3870
3870
|
* @return the window identifier or null if none is found
|
|
@@ -3873,7 +3873,7 @@ var jsf;
|
|
|
3873
3873
|
function getClientWindow(rootNode) {
|
|
3874
3874
|
return AjaxImpl_1.Implementation.getClientWindow(rootNode);
|
|
3875
3875
|
}
|
|
3876
|
-
|
|
3876
|
+
faces.getClientWindow = getClientWindow;
|
|
3877
3877
|
//private helper functions
|
|
3878
3878
|
function getSeparatorChar() {
|
|
3879
3879
|
return AjaxImpl_1.Implementation.getSeparatorChar();
|
|
@@ -3943,7 +3943,7 @@ var jsf;
|
|
|
3943
3943
|
AjaxImpl_1.Implementation.addOnEvent(eventFunc);
|
|
3944
3944
|
}
|
|
3945
3945
|
ajax.addOnEvent = addOnEvent;
|
|
3946
|
-
})(ajax =
|
|
3946
|
+
})(ajax = faces.ajax || (faces.ajax = {}));
|
|
3947
3947
|
var util;
|
|
3948
3948
|
(function (util) {
|
|
3949
3949
|
/**
|
|
@@ -3965,7 +3965,7 @@ var jsf;
|
|
|
3965
3965
|
return AjaxImpl_1.Implementation.chain.apply(AjaxImpl_1.Implementation, __spreadArray([source, event], funcs, false));
|
|
3966
3966
|
}
|
|
3967
3967
|
util.chain = chain;
|
|
3968
|
-
})(util =
|
|
3968
|
+
})(util = faces.util || (faces.util = {}));
|
|
3969
3969
|
var push;
|
|
3970
3970
|
(function (push) {
|
|
3971
3971
|
/**
|
|
@@ -3996,8 +3996,8 @@ var jsf;
|
|
|
3996
3996
|
PushImpl_1.PushImpl.close(socketClientId);
|
|
3997
3997
|
}
|
|
3998
3998
|
push.close = close;
|
|
3999
|
-
})(push =
|
|
4000
|
-
})(
|
|
3999
|
+
})(push = faces.push || (faces.push = {}));
|
|
4000
|
+
})(faces = exports.faces || (exports.faces = {}));
|
|
4001
4001
|
//fullfill the window contract for the myfaces namespace
|
|
4002
4002
|
var myfaces;
|
|
4003
4003
|
(function (myfaces) {
|
|
@@ -4008,15 +4008,20 @@ var myfaces;
|
|
|
4008
4008
|
*
|
|
4009
4009
|
* @param source the event source
|
|
4010
4010
|
* @param event the event
|
|
4011
|
-
* @param eventName event name for java.
|
|
4012
|
-
* @param execute execute list as passed down in
|
|
4011
|
+
* @param eventName event name for java.jakarta.faces.behavior.evemnt
|
|
4012
|
+
* @param execute execute list as passed down in faces.ajax.request
|
|
4013
4013
|
* @param render
|
|
4014
4014
|
* @param options
|
|
4015
4015
|
*/
|
|
4016
4016
|
function ab(source, event, eventName, execute, render, options) {
|
|
4017
4017
|
if (options === void 0) { options = {}; }
|
|
4018
4018
|
if (eventName) {
|
|
4019
|
-
|
|
4019
|
+
if (!(window === null || window === void 0 ? void 0 : window.jsf)) {
|
|
4020
|
+
options["jakarta.faces.behavior.event"] = eventName;
|
|
4021
|
+
}
|
|
4022
|
+
else {
|
|
4023
|
+
options["javax.faces.behavior.event"] = eventName;
|
|
4024
|
+
}
|
|
4020
4025
|
}
|
|
4021
4026
|
if (execute) {
|
|
4022
4027
|
options["execute"] = execute;
|
|
@@ -4024,7 +4029,7 @@ var myfaces;
|
|
|
4024
4029
|
if (render) {
|
|
4025
4030
|
options["render"] = render;
|
|
4026
4031
|
}
|
|
4027
|
-
|
|
4032
|
+
faces.ajax.request(source, event, options);
|
|
4028
4033
|
}
|
|
4029
4034
|
myfaces.ab = ab;
|
|
4030
4035
|
/**
|
|
@@ -4190,7 +4195,7 @@ var Implementation;
|
|
|
4190
4195
|
/**
|
|
4191
4196
|
* @return the project stage also emitted by the server:
|
|
4192
4197
|
* it cannot be cached and must be delivered over the server
|
|
4193
|
-
* The value for it comes from the requestInternal parameter of the
|
|
4198
|
+
* The value for it comes from the requestInternal parameter of the faces.js script called "stage".
|
|
4194
4199
|
*/
|
|
4195
4200
|
function getProjectStage() {
|
|
4196
4201
|
var _a, _b, _c;
|
|
@@ -4202,13 +4207,13 @@ var Implementation;
|
|
|
4202
4207
|
* @return the project stage or null
|
|
4203
4208
|
*/
|
|
4204
4209
|
function resolveProjectStateFromURL() {
|
|
4205
|
-
/* run through all script tags and try to find the one that includes
|
|
4210
|
+
/* run through all script tags and try to find the one that includes faces.js */
|
|
4206
4211
|
var foundStage = ExtDomQuery_1.ExtDomquery.searchJsfJsFor(/stage=([^&;]*)/).value;
|
|
4207
4212
|
return (foundStage in ProjectStages) ? foundStage : null;
|
|
4208
4213
|
}
|
|
4209
4214
|
Implementation.resolveProjectStateFromURL = resolveProjectStateFromURL;
|
|
4210
4215
|
/**
|
|
4211
|
-
* implementation of the
|
|
4216
|
+
* implementation of the faces.util.chain functionality
|
|
4212
4217
|
*
|
|
4213
4218
|
* @param source
|
|
4214
4219
|
* @param event
|
|
@@ -4282,16 +4287,16 @@ var Implementation;
|
|
|
4282
4287
|
*/
|
|
4283
4288
|
requestCtx.assign(Const_1.MYFACES).value = (_c = options.value) === null || _c === void 0 ? void 0 : _c.myfaces;
|
|
4284
4289
|
/**
|
|
4285
|
-
* binding contract the
|
|
4290
|
+
* binding contract the jakarta.faces.source must be set
|
|
4286
4291
|
*/
|
|
4287
4292
|
requestCtx.assign(Const_1.CTX_PARAM_PASS_THR, Const_1.P_PARTIAL_SOURCE).value = elementId;
|
|
4288
4293
|
/**
|
|
4289
|
-
*
|
|
4294
|
+
* jakarta.faces.partial.ajax must be set to true
|
|
4290
4295
|
*/
|
|
4291
4296
|
requestCtx.assign(Const_1.CTX_PARAM_PASS_THR, Const_1.P_AJAX).value = true;
|
|
4292
4297
|
/**
|
|
4293
4298
|
* if resetValues is set to true
|
|
4294
|
-
* then we have to set
|
|
4299
|
+
* then we have to set jakarta.faces.resetValues as well
|
|
4295
4300
|
* as pass through parameter
|
|
4296
4301
|
* the value has to be explicitly true, according to
|
|
4297
4302
|
* the specs jsdoc
|
|
@@ -4418,7 +4423,7 @@ var Implementation;
|
|
|
4418
4423
|
}
|
|
4419
4424
|
Implementation.sendError = sendError;
|
|
4420
4425
|
/**
|
|
4421
|
-
* @node optional element or id defining a rootnode where an element with the id "
|
|
4426
|
+
* @node optional element or id defining a rootnode where an element with the id "jakarta.faces.windowId" is hosted
|
|
4422
4427
|
* @return the client window id of the current window, if one is given if none is found, null is returned
|
|
4423
4428
|
*/
|
|
4424
4429
|
function getClientWindow(node) {
|
|
@@ -4472,7 +4477,7 @@ var Implementation;
|
|
|
4472
4477
|
Implementation.getClientWindow = getClientWindow;
|
|
4473
4478
|
/**
|
|
4474
4479
|
* collect and encode data for a given form element (must be of type form)
|
|
4475
|
-
* find the
|
|
4480
|
+
* find the jakarta.faces.ViewState element and encode its value as well!
|
|
4476
4481
|
* @return a concatenated string of the encoded values!
|
|
4477
4482
|
*
|
|
4478
4483
|
* @throws Error in case of the given element not being of type form!
|
|
@@ -4517,10 +4522,10 @@ var Implementation;
|
|
|
4517
4522
|
*
|
|
4518
4523
|
* This function does it for the render parameters
|
|
4519
4524
|
*
|
|
4520
|
-
* @param requestOptions the source options coming in as options object from
|
|
4525
|
+
* @param requestOptions the source options coming in as options object from faces.ajax.request (options parameter)
|
|
4521
4526
|
* @param targetContext the receiving target context
|
|
4522
4527
|
* @param issuingForm the issuing form
|
|
4523
|
-
* @param sourceElementId the executing element triggering the
|
|
4528
|
+
* @param sourceElementId the executing element triggering the faces.ajax.request (id of it)
|
|
4524
4529
|
*/
|
|
4525
4530
|
function assignRender(requestOptions, targetContext, issuingForm, sourceElementId) {
|
|
4526
4531
|
if (requestOptions.getIf(Const_1.RENDER).isPresent()) {
|
|
@@ -4534,10 +4539,10 @@ var Implementation;
|
|
|
4534
4539
|
*
|
|
4535
4540
|
* This function does it for the execute parameters
|
|
4536
4541
|
*
|
|
4537
|
-
* @param requestOptions the source options coming in as options object from
|
|
4542
|
+
* @param requestOptions the source options coming in as options object from faces.ajax.request (options parameter)
|
|
4538
4543
|
* @param targetContext the receiving target context
|
|
4539
4544
|
* @param issuingForm the issuing form
|
|
4540
|
-
* @param sourceElementId the executing element triggering the
|
|
4545
|
+
* @param sourceElementId the executing element triggering the faces.ajax.request (id of it)
|
|
4541
4546
|
*/
|
|
4542
4547
|
function assignExecute(requestOptions, targetContext, issuingForm, sourceElementId) {
|
|
4543
4548
|
if (requestOptions.getIf(Const_1.CTX_PARAM_EXECUTE).isPresent()) {
|
|
@@ -4559,7 +4564,8 @@ var Implementation;
|
|
|
4559
4564
|
* @param targetContext the target context receiving the value
|
|
4560
4565
|
*/
|
|
4561
4566
|
function assignClientWindowId(form, targetContext) {
|
|
4562
|
-
var
|
|
4567
|
+
var _a;
|
|
4568
|
+
var clientWindow = ((_a = window === null || window === void 0 ? void 0 : window.faces) !== null && _a !== void 0 ? _a : window === null || window === void 0 ? void 0 : window.jsf).getClientWindow(form.getAsElem(0).value);
|
|
4563
4569
|
if (clientWindow) {
|
|
4564
4570
|
targetContext.assign(Const_1.CTX_PARAM_PASS_THR, Const_1.P_CLIENT_WINDOW).value = clientWindow;
|
|
4565
4571
|
}
|
|
@@ -4691,11 +4697,10 @@ var Implementation;
|
|
|
4691
4697
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4692
4698
|
exports.PushImpl = void 0;
|
|
4693
4699
|
/**
|
|
4694
|
-
* Typescript port of the
|
|
4700
|
+
* Typescript port of the faces.push part in the myfaces implementation
|
|
4695
4701
|
*/
|
|
4696
4702
|
//TODO still work in progress
|
|
4697
4703
|
//this is a 1:1 port for the time being
|
|
4698
|
-
var Jsf_1 = __webpack_require__(/*! ../api/Jsf */ "./src/main/typescript/api/Jsf.ts");
|
|
4699
4704
|
var Const_1 = __webpack_require__(/*! ./core/Const */ "./src/main/typescript/impl/core/Const.ts");
|
|
4700
4705
|
/**
|
|
4701
4706
|
* Implementation class for the push functionality
|
|
@@ -4729,6 +4734,7 @@ var PushImpl;
|
|
|
4729
4734
|
* @param {boolean} autoconnect Whether or not to immediately open the socket. Defaults to <code>false</code>.
|
|
4730
4735
|
*/
|
|
4731
4736
|
function init(socketClientId, uri, channel, onopen, onmessage, onclose, behaviorScripts, autoconnect) {
|
|
4737
|
+
var _a;
|
|
4732
4738
|
onclose = resolveFunction(onclose);
|
|
4733
4739
|
if (!window.WebSocket) { // IE6-9.
|
|
4734
4740
|
onclose(-1, channel);
|
|
@@ -4753,7 +4759,7 @@ var PushImpl;
|
|
|
4753
4759
|
}
|
|
4754
4760
|
}
|
|
4755
4761
|
if (autoconnect) {
|
|
4756
|
-
|
|
4762
|
+
((_a = window === null || window === void 0 ? void 0 : window.faces) !== null && _a !== void 0 ? _a : window === null || window === void 0 ? void 0 : window.jsf).push.open(socketClientId);
|
|
4757
4763
|
}
|
|
4758
4764
|
}
|
|
4759
4765
|
PushImpl.init = init;
|
|
@@ -4930,16 +4936,16 @@ var PushImpl;
|
|
|
4930
4936
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4931
4937
|
exports.CTX_PARAM_RST = exports.CTX_PARAM_TIMEOUT = exports.CTX_PARAM_DELAY = exports.CTX_PARAM_PASS_THR = exports.CTX_PARAM_TR_TYPE = exports.CTX_PARAM_SRC_CTL_ID = exports.CTX_PARAM_SRC_FRM_ID = exports.CTX_PARAM_MF_INTERNAL = exports.TIMEOUT_EVENT = exports.CLIENT_ERROR = exports.SERVER_ERROR = exports.MALFORMEDXML = exports.EMPTY_RESPONSE = exports.HTTPERROR = 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.RENDER = exports.P_WINDOW_ID = exports.P_RESET_VALUES = exports.P_CLIENT_WINDOW = exports.P_EVT = exports.P_RENDER = exports.P_EXECUTE = exports.P_AJAX = exports.IDENT_FORM = exports.IDENT_THIS = exports.IDENT_NONE = exports.IDENT_ALL = exports.HTML_VIEWSTATE = exports.EMPTY_MAP = exports.EMPTY_STR = exports.EMPTY_FUNC = exports.P_VIEWBODY = exports.P_VIEWHEAD = exports.P_VIEWROOT = exports.P_VIEWSTATE = exports.PARTIAL_ID = exports.P_PARTIAL_SOURCE = void 0;
|
|
4932
4938
|
exports.RECONNECT_INTERVAL = exports.APPLIED_CLIENT_WINDOW = exports.APPLIED_VST = exports.REASON_EXPIRED = exports.MF_NONE = exports.SEL_SCRIPTS_STYLES = exports.MYFACES = exports.UPDATE_ELEMS = exports.UPDATE_FORMS = exports.CMD_REDIRECT = exports.CMD_EXTENSION = exports.CMD_ATTRIBUTES = exports.CMD_ERROR = exports.CMD_EVAL = exports.CMD_INSERT = exports.CMD_DELETE = exports.CMD_UPDATE = exports.CMD_CHANGES = exports.RESP_PARTIAL = exports.ATTR_ID = exports.ATTR_VALUE = exports.ATTR_NAME = exports.ATTR_URL = exports.ERR_NO_PARTIAL_RESPONSE = exports.PHASE_PROCESS_RESPONSE = exports.SEL_RESPONSE_XML = exports.SEL_CLIENT_WINDOW_ELEM = exports.SEL_VIEWSTATE_ELEM = exports.TAG_ATTR = exports.TAG_AFTER = exports.TAG_BEFORE = exports.TAG_BODY = exports.TAG_FORM = exports.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.STAGE_DEVELOPMENT = exports.CTX_PARAM_EXECUTE = void 0;
|
|
4933
|
-
exports.UNKNOWN = exports.MAX_RECONNECT_ATTEMPTS = void 0;
|
|
4939
|
+
exports.remapNamespacesFor40 = exports.remapNamespacesFor23 = exports.UNKNOWN = exports.MAX_RECONNECT_ATTEMPTS = void 0;
|
|
4934
4940
|
/*
|
|
4935
4941
|
* [export const] constants
|
|
4936
4942
|
*/
|
|
4937
|
-
exports.P_PARTIAL_SOURCE = "
|
|
4943
|
+
exports.P_PARTIAL_SOURCE = "jakarta.faces.source";
|
|
4938
4944
|
exports.PARTIAL_ID = "partialId";
|
|
4939
|
-
exports.P_VIEWSTATE = "
|
|
4940
|
-
exports.P_VIEWROOT = "
|
|
4941
|
-
exports.P_VIEWHEAD = "
|
|
4942
|
-
exports.P_VIEWBODY = "
|
|
4945
|
+
exports.P_VIEWSTATE = "jakarta.faces.ViewState";
|
|
4946
|
+
exports.P_VIEWROOT = "jakarta.faces.ViewRoot";
|
|
4947
|
+
exports.P_VIEWHEAD = "jakarta.faces.ViewHead";
|
|
4948
|
+
exports.P_VIEWBODY = "jakarta.faces.ViewBody";
|
|
4943
4949
|
/*some useful definitions*/
|
|
4944
4950
|
exports.EMPTY_FUNC = Object.freeze(function () {
|
|
4945
4951
|
});
|
|
@@ -4951,13 +4957,13 @@ exports.IDENT_ALL = "@all";
|
|
|
4951
4957
|
exports.IDENT_NONE = "@none";
|
|
4952
4958
|
exports.IDENT_THIS = "@this";
|
|
4953
4959
|
exports.IDENT_FORM = "@form";
|
|
4954
|
-
exports.P_AJAX = "
|
|
4955
|
-
exports.P_EXECUTE = "
|
|
4956
|
-
exports.P_RENDER = "
|
|
4957
|
-
exports.P_EVT = "
|
|
4958
|
-
exports.P_CLIENT_WINDOW = "
|
|
4959
|
-
exports.P_RESET_VALUES = "
|
|
4960
|
-
exports.P_WINDOW_ID = "
|
|
4960
|
+
exports.P_AJAX = "jakarta.faces.partial.ajax";
|
|
4961
|
+
exports.P_EXECUTE = "jakarta.faces.partial.execute";
|
|
4962
|
+
exports.P_RENDER = "jakarta.faces.partial.render";
|
|
4963
|
+
exports.P_EVT = "jakarta.faces.partial.event";
|
|
4964
|
+
exports.P_CLIENT_WINDOW = "jakarta.faces.ClientWindow";
|
|
4965
|
+
exports.P_RESET_VALUES = "jakarta.faces.partial.resetValues";
|
|
4966
|
+
exports.P_WINDOW_ID = "jakarta.faces.windowId";
|
|
4961
4967
|
exports.RENDER = "render";
|
|
4962
4968
|
exports.WINDOW_ID = "windowId";
|
|
4963
4969
|
/* message types */
|
|
@@ -4996,7 +5002,7 @@ exports.CONTENT_TYPE = "Content-Type";
|
|
|
4996
5002
|
exports.HEAD_FACES_REQ = "Faces-Request";
|
|
4997
5003
|
exports.REQ_ACCEPT = "Accept";
|
|
4998
5004
|
exports.VAL_AJAX = "partial/ajax";
|
|
4999
|
-
exports.ENCODED_URL = "
|
|
5005
|
+
exports.ENCODED_URL = "jakarta.faces.encodedURL";
|
|
5000
5006
|
exports.REQ_TYPE_GET = "GET";
|
|
5001
5007
|
exports.REQ_TYPE_POST = "POST";
|
|
5002
5008
|
exports.STATE_EVT_BEGIN = "begin"; //TODO remove this
|
|
@@ -5045,6 +5051,43 @@ exports.APPLIED_CLIENT_WINDOW = "appliedClientWindow";
|
|
|
5045
5051
|
exports.RECONNECT_INTERVAL = 500;
|
|
5046
5052
|
exports.MAX_RECONNECT_ATTEMPTS = 25;
|
|
5047
5053
|
exports.UNKNOWN = "UNKNOWN";
|
|
5054
|
+
/**
|
|
5055
|
+
* helper to remap the namespaces variables for 2.3
|
|
5056
|
+
* from 2.3 to 4.0 every javax namespace has been changed
|
|
5057
|
+
* to faces
|
|
5058
|
+
*/
|
|
5059
|
+
function remapNamespacesFor23() {
|
|
5060
|
+
exports.P_PARTIAL_SOURCE = "javax.faces.source";
|
|
5061
|
+
exports.P_VIEWSTATE = "javax.faces.ViewState";
|
|
5062
|
+
exports.P_VIEWROOT = "javax.faces.ViewRoot";
|
|
5063
|
+
exports.P_VIEWHEAD = "javax.faces.ViewHead";
|
|
5064
|
+
exports.P_VIEWBODY = "javax.faces.ViewBody";
|
|
5065
|
+
exports.P_AJAX = "javax.faces.partial.ajax";
|
|
5066
|
+
exports.P_EXECUTE = "javax.faces.partial.execute";
|
|
5067
|
+
exports.P_RENDER = "javax.faces.partial.render";
|
|
5068
|
+
exports.P_EVT = "javax.faces.partial.event";
|
|
5069
|
+
exports.P_CLIENT_WINDOW = "javax.faces.ClientWindow";
|
|
5070
|
+
exports.P_RESET_VALUES = "javax.faces.partial.resetValues";
|
|
5071
|
+
exports.P_WINDOW_ID = "javax.faces.windowId";
|
|
5072
|
+
exports.ENCODED_URL = "javax.faces.encodedURL";
|
|
5073
|
+
}
|
|
5074
|
+
exports.remapNamespacesFor23 = remapNamespacesFor23;
|
|
5075
|
+
function remapNamespacesFor40() {
|
|
5076
|
+
exports.P_PARTIAL_SOURCE = "jakarta.faces.source";
|
|
5077
|
+
exports.P_VIEWSTATE = "jakarta.faces.ViewState";
|
|
5078
|
+
exports.P_VIEWROOT = "jakarta.faces.ViewRoot";
|
|
5079
|
+
exports.P_VIEWHEAD = "jakarta.faces.ViewHead";
|
|
5080
|
+
exports.P_VIEWBODY = "jakarta.faces.ViewBody";
|
|
5081
|
+
exports.P_AJAX = "jakarta.faces.partial.ajax";
|
|
5082
|
+
exports.P_EXECUTE = "jakarta.faces.partial.execute";
|
|
5083
|
+
exports.P_RENDER = "jakarta.faces.partial.render";
|
|
5084
|
+
exports.P_EVT = "jakarta.faces.partial.event";
|
|
5085
|
+
exports.P_CLIENT_WINDOW = "jakarta.faces.ClientWindow";
|
|
5086
|
+
exports.P_RESET_VALUES = "jakarta.faces.partial.resetValues";
|
|
5087
|
+
exports.P_WINDOW_ID = "jakarta.faces.windowId";
|
|
5088
|
+
exports.ENCODED_URL = "jakarta.faces.encodedURL";
|
|
5089
|
+
}
|
|
5090
|
+
exports.remapNamespacesFor40 = remapNamespacesFor40;
|
|
5048
5091
|
|
|
5049
5092
|
|
|
5050
5093
|
/***/ }),
|
|
@@ -5152,7 +5195,7 @@ var Messages = /** @class */ (function () {
|
|
|
5152
5195
|
/** @constant */
|
|
5153
5196
|
this.ERR_FORM = "Sourceform could not be determined, either because element is not attached to a form or we have multiple forms with named elements of the same identifier or name, stopping the ajax processing";
|
|
5154
5197
|
/** @constant */
|
|
5155
|
-
this.ERR_VIEWSTATE = "
|
|
5198
|
+
this.ERR_VIEWSTATE = "faces.viewState= param value not of type form!";
|
|
5156
5199
|
/** @constant */
|
|
5157
5200
|
this.ERR_TRANSPORT = "Transport type {0} does not exist";
|
|
5158
5201
|
/** @constant */
|
|
@@ -5267,7 +5310,7 @@ var Assertions;
|
|
|
5267
5310
|
assertFunction(options.getIf(Const_1.ON_EVENT).value);
|
|
5268
5311
|
//improve the error messages if an empty elem is passed
|
|
5269
5312
|
//Assertions.assertElementExists(elem);
|
|
5270
|
-
assert(elem.isPresent(), getMessage("ERR_MUST_BE_PROVIDED1", "{0}: source must be provided or exist", "source element id"), "
|
|
5313
|
+
assert(elem.isPresent(), getMessage("ERR_MUST_BE_PROVIDED1", "{0}: source must be provided or exist", "source element id"), "faces.ajax.request", "ArgNotSet");
|
|
5271
5314
|
}
|
|
5272
5315
|
Assertions.assertRequestIntegrity = assertRequestIntegrity;
|
|
5273
5316
|
function assertUrlExists(node) {
|
|
@@ -5506,28 +5549,39 @@ exports.ExtDQ = exports.ExtDomquery = void 0;
|
|
|
5506
5549
|
var mona_dish_1 = __webpack_require__(/*! mona-dish */ "./node_modules/mona-dish/src/main/typescript/index_core.ts");
|
|
5507
5550
|
var Const_1 = __webpack_require__(/*! ../core/Const */ "./src/main/typescript/impl/core/Const.ts");
|
|
5508
5551
|
/**
|
|
5509
|
-
* detects whether a source is a
|
|
5552
|
+
* detects whether a source is a faces.js request
|
|
5510
5553
|
*
|
|
5511
|
-
* @param source the source string for the
|
|
5512
|
-
* @return true if a
|
|
5554
|
+
* @param source the source string for the faces.js request
|
|
5555
|
+
* @return true if a faces.js loading pattern is detected
|
|
5513
5556
|
* @constructor
|
|
5514
5557
|
*/
|
|
5515
|
-
var
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
(source === null || source === void 0 ? void 0 : source.search(/\/jsf
|
|
5558
|
+
var IS_FACES_SOURCE = function (source) {
|
|
5559
|
+
//spec version smaller 4 we have to deal with the jsf namespace
|
|
5560
|
+
if (window.jsf) {
|
|
5561
|
+
// fallback into 2.3 api level
|
|
5562
|
+
return source && !!((source === null || source === void 0 ? void 0 : source.search(/\/javax\.faces\.resource.*\/jsf\.js.*/)) != -1 ||
|
|
5563
|
+
(source === null || source === void 0 ? void 0 : source.search(/\/jsf-development\.js.*/)) != -1 ||
|
|
5564
|
+
(source === null || source === void 0 ? void 0 : source.search(/\/jsf-uncompressed\.js.*/)) != -1 ||
|
|
5565
|
+
(source === null || source === void 0 ? void 0 : source.search(/\/jsf[^.]*\.js.*ln=javax.faces.*/gi)) != -1);
|
|
5566
|
+
}
|
|
5567
|
+
return source && !!((source === null || source === void 0 ? void 0 : source.search(/\/jakarta\.faces\.resource.*\/faces\.js.*/)) != -1 ||
|
|
5568
|
+
(source === null || source === void 0 ? void 0 : source.search(/\/faces-development\.js.*/)) != -1 ||
|
|
5569
|
+
(source === null || source === void 0 ? void 0 : source.search(/\/faces-uncompressed\.js.*/)) != -1 ||
|
|
5570
|
+
(source === null || source === void 0 ? void 0 : source.search(/\/faces[^.]*\.js.*ln=jakarta.faces.*/gi)) != -1);
|
|
5520
5571
|
};
|
|
5521
5572
|
/**
|
|
5522
5573
|
* namespace myfaces.testscripts can be used as extension point for internal
|
|
5523
|
-
* tests, those will be handled similarly to
|
|
5574
|
+
* tests, those will be handled similarly to faces.js regarding
|
|
5524
5575
|
* reload blocking on ajax requests
|
|
5525
5576
|
*
|
|
5526
5577
|
* @param source the source to check
|
|
5527
5578
|
* @constructor
|
|
5528
5579
|
*/
|
|
5529
5580
|
var IS_INTERNAL_SOURCE = function (source) {
|
|
5530
|
-
|
|
5581
|
+
if (window === null || window === void 0 ? void 0 : window.jsf) {
|
|
5582
|
+
return source.search(/\/jsf[^.]*\.js.*ln=myfaces.testscripts.*/gi) != -1;
|
|
5583
|
+
}
|
|
5584
|
+
return source.search(/\/faces[^.]*\.js.*ln=myfaces.testscripts.*/gi) != -1;
|
|
5531
5585
|
};
|
|
5532
5586
|
var ATTR_SRC = 'src';
|
|
5533
5587
|
/**
|
|
@@ -5573,7 +5627,7 @@ var ExtDomquery = /** @class */ (function (_super) {
|
|
|
5573
5627
|
//byId ($)
|
|
5574
5628
|
if (this.value.isPresent()) {
|
|
5575
5629
|
var result = this.querySelectorAll("form input[name='" + Const_1.P_WINDOW_ID + "']");
|
|
5576
|
-
if (result.length >
|
|
5630
|
+
if (result.length > 1) {
|
|
5577
5631
|
throw Error("Multiple different windowIds found in document");
|
|
5578
5632
|
}
|
|
5579
5633
|
return (result.isPresent()) ? result.getAsElem(0).value.value : fetchWindowIdFromURL();
|
|
@@ -5587,7 +5641,7 @@ var ExtDomquery = /** @class */ (function (_super) {
|
|
|
5587
5641
|
});
|
|
5588
5642
|
Object.defineProperty(ExtDomquery.prototype, "nonce", {
|
|
5589
5643
|
/*
|
|
5590
|
-
* determines the
|
|
5644
|
+
* determines the faces.js nonce and adds them to the namespace
|
|
5591
5645
|
* this is done once and only lazily
|
|
5592
5646
|
*/
|
|
5593
5647
|
get: function () {
|
|
@@ -5609,7 +5663,7 @@ var ExtDomquery = /** @class */ (function (_super) {
|
|
|
5609
5663
|
.querySelectorAll("script[src], link[src]")
|
|
5610
5664
|
.lazyStream
|
|
5611
5665
|
.filter(function (item) { return item.attr("nonce").value != null && item.attr(ATTR_SRC) != null; })
|
|
5612
|
-
.map(function (item) { return
|
|
5666
|
+
.map(function (item) { return IS_FACES_SOURCE(item.attr(ATTR_SRC).value); })
|
|
5613
5667
|
.first();
|
|
5614
5668
|
if (nonceScript.isPresent()) {
|
|
5615
5669
|
nonce.value = mona_dish_1.DomQuery.byId(nonceScript.value, true).attr("nonce").value;
|
|
@@ -5623,14 +5677,14 @@ var ExtDomquery = /** @class */ (function (_super) {
|
|
|
5623
5677
|
return new ExtDomquery(document).searchJsfJsFor(item);
|
|
5624
5678
|
};
|
|
5625
5679
|
/**
|
|
5626
|
-
* searches the embedded
|
|
5680
|
+
* searches the embedded faces.js for items like separator char etc..
|
|
5627
5681
|
* expects a match as variable under position 1 in the result match
|
|
5628
5682
|
* @param rexp
|
|
5629
5683
|
*/
|
|
5630
5684
|
ExtDomquery.prototype.searchJsfJsFor = function (rexp) {
|
|
5631
5685
|
//perfect application for lazy stream
|
|
5632
5686
|
return mona_dish_1.DQ.querySelectorAll("script[src], link[src]").lazyStream
|
|
5633
|
-
.filter(function (item) { return
|
|
5687
|
+
.filter(function (item) { return IS_FACES_SOURCE(item.attr(ATTR_SRC).value); })
|
|
5634
5688
|
.map(function (item) { return item.attr(ATTR_SRC).value.match(rexp); })
|
|
5635
5689
|
.filter(function (item) { return item != null && item.length > 1; })
|
|
5636
5690
|
.map(function (result) {
|
|
@@ -5648,7 +5702,7 @@ var ExtDomquery = /** @class */ (function (_super) {
|
|
|
5648
5702
|
ExtDomquery.prototype.runScripts = function (whilteListed) {
|
|
5649
5703
|
var whitelistFunc = function (src) {
|
|
5650
5704
|
var _a;
|
|
5651
|
-
return ((_a = whilteListed === null || whilteListed === void 0 ? void 0 : whilteListed(src)) !== null && _a !== void 0 ? _a : true) && !
|
|
5705
|
+
return ((_a = whilteListed === null || whilteListed === void 0 ? void 0 : whilteListed(src)) !== null && _a !== void 0 ? _a : true) && !IS_FACES_SOURCE(src) && !IS_INTERNAL_SOURCE(src);
|
|
5652
5706
|
};
|
|
5653
5707
|
return _super.prototype.runScripts.call(this, whitelistFunc);
|
|
5654
5708
|
};
|
|
@@ -6047,7 +6101,8 @@ var EventData = /** @class */ (function () {
|
|
|
6047
6101
|
eventData.status = name;
|
|
6048
6102
|
var sourceId = context.getIf(Const_1.SOURCE)
|
|
6049
6103
|
.orElseLazy(function () { return context.getIf(Const_1.P_PARTIAL_SOURCE).value; })
|
|
6050
|
-
.orElseLazy(function () { return context.getIf(Const_1.CTX_PARAM_PASS_THR, Const_1.P_PARTIAL_SOURCE).value; })
|
|
6104
|
+
.orElseLazy(function () { return context.getIf(Const_1.CTX_PARAM_PASS_THR, Const_1.P_PARTIAL_SOURCE).value; })
|
|
6105
|
+
.value;
|
|
6051
6106
|
if (sourceId) {
|
|
6052
6107
|
eventData.source = mona_dish_1.DQ.byId(sourceId, true).first().value.value;
|
|
6053
6108
|
}
|
|
@@ -6198,7 +6253,7 @@ exports.getEventTarget = getEventTarget;
|
|
|
6198
6253
|
/**
|
|
6199
6254
|
* resolves a bunch of default values
|
|
6200
6255
|
* which can be further processed from the given
|
|
6201
|
-
* call parameters of
|
|
6256
|
+
* call parameters of faces.ajax.request
|
|
6202
6257
|
*
|
|
6203
6258
|
* @param event
|
|
6204
6259
|
* @param opts
|
|
@@ -6360,8 +6415,8 @@ var ResonseDataResolver_1 = __webpack_require__(/*! ./ResonseDataResolver */ "./
|
|
|
6360
6415
|
var Response;
|
|
6361
6416
|
(function (Response) {
|
|
6362
6417
|
/**
|
|
6363
|
-
* Standardized
|
|
6364
|
-
* this one is called straight from
|
|
6418
|
+
* Standardized faces.js response
|
|
6419
|
+
* this one is called straight from faces.js.response
|
|
6365
6420
|
*
|
|
6366
6421
|
* The processing follows the spec by going for the responseXML
|
|
6367
6422
|
* and processing its tags
|
|
@@ -6884,11 +6939,11 @@ var ResponseProcessor = /** @class */ (function () {
|
|
|
6884
6939
|
* @returns true of it ii
|
|
6885
6940
|
*/
|
|
6886
6941
|
ResponseProcessor.isViewStateNode = function (node) {
|
|
6887
|
-
var _a, _b, _c, _d, _e, _f;
|
|
6888
|
-
var separatorChar = window.jsf.separatorchar;
|
|
6889
|
-
return "undefined" != typeof ((
|
|
6890
|
-
((
|
|
6891
|
-
((
|
|
6942
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
6943
|
+
var separatorChar = ((_a = window === null || window === void 0 ? void 0 : window.faces) !== null && _a !== void 0 ? _a : window === null || window === void 0 ? void 0 : window.jsf).separatorchar;
|
|
6944
|
+
return "undefined" != typeof ((_b = node === null || node === void 0 ? void 0 : node.id) === null || _b === void 0 ? void 0 : _b.value) && (((_c = node === null || node === void 0 ? void 0 : node.id) === null || _c === void 0 ? void 0 : _c.value) == Const_1.P_VIEWSTATE ||
|
|
6945
|
+
((_e = (_d = node === null || node === void 0 ? void 0 : node.id) === null || _d === void 0 ? void 0 : _d.value) === null || _e === void 0 ? void 0 : _e.indexOf([separatorChar, Const_1.P_VIEWSTATE].join(Const_1.EMPTY_STR))) != -1 ||
|
|
6946
|
+
((_g = (_f = node === null || node === void 0 ? void 0 : node.id) === null || _f === void 0 ? void 0 : _f.value) === null || _g === void 0 ? void 0 : _g.indexOf([Const_1.P_VIEWSTATE, separatorChar].join(Const_1.EMPTY_STR))) != -1);
|
|
6892
6947
|
};
|
|
6893
6948
|
/**
|
|
6894
6949
|
* incoming client window node also needs special processing
|
|
@@ -6897,11 +6952,11 @@ var ResponseProcessor = /** @class */ (function () {
|
|
|
6897
6952
|
* @returns true of it ii
|
|
6898
6953
|
*/
|
|
6899
6954
|
ResponseProcessor.isClientWindowNode = function (node) {
|
|
6900
|
-
var _a, _b, _c, _d, _e, _f;
|
|
6901
|
-
var separatorChar = window.jsf.separatorchar;
|
|
6902
|
-
return "undefined" != typeof ((
|
|
6903
|
-
((
|
|
6904
|
-
((
|
|
6955
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
6956
|
+
var separatorChar = ((_a = window === null || window === void 0 ? void 0 : window.faces) !== null && _a !== void 0 ? _a : window === null || window === void 0 ? void 0 : window.jsf).separatorchar;
|
|
6957
|
+
return "undefined" != typeof ((_b = node === null || node === void 0 ? void 0 : node.id) === null || _b === void 0 ? void 0 : _b.value) && (((_c = node === null || node === void 0 ? void 0 : node.id) === null || _c === void 0 ? void 0 : _c.value) == Const_1.P_CLIENT_WINDOW ||
|
|
6958
|
+
((_e = (_d = node === null || node === void 0 ? void 0 : node.id) === null || _d === void 0 ? void 0 : _d.value) === null || _e === void 0 ? void 0 : _e.indexOf([separatorChar, Const_1.P_CLIENT_WINDOW].join(Const_1.EMPTY_STR))) != -1 ||
|
|
6959
|
+
((_g = (_f = node === null || node === void 0 ? void 0 : node.id) === null || _f === void 0 ? void 0 : _f.value) === null || _g === void 0 ? void 0 : _g.indexOf([Const_1.P_CLIENT_WINDOW, separatorChar].join(Const_1.EMPTY_STR))) != -1);
|
|
6905
6960
|
};
|
|
6906
6961
|
ResponseProcessor.prototype.triggerOnError = function (errorData) {
|
|
6907
6962
|
this.externalContext.getIf(Const_1.ON_ERROR).orElse(this.internalContext.getIf(Const_1.ON_ERROR).value).orElse(Const_1.EMPTY_FUNC).value(errorData);
|
|
@@ -6970,7 +7025,7 @@ var isString = mona_dish_1.Lang.isString;
|
|
|
6970
7025
|
*
|
|
6971
7026
|
* We cannot use standard html5 forms everywhere
|
|
6972
7027
|
* due to api constraints on the HTML Form object in IE11
|
|
6973
|
-
* and due to the url encoding constraint given by the
|
|
7028
|
+
* and due to the url encoding constraint given by the faces.js spec
|
|
6974
7029
|
*
|
|
6975
7030
|
* probably only one needed and one overlay!
|
|
6976
7031
|
* the entire file input storing probably is redundant now
|
|
@@ -7142,7 +7197,7 @@ var XhrFormData = /** @class */ (function (_super) {
|
|
|
7142
7197
|
/*
|
|
7143
7198
|
* Spec. 13.3.1
|
|
7144
7199
|
* Collect and encode input elements.
|
|
7145
|
-
* Additionally the hidden element
|
|
7200
|
+
* Additionally the hidden element jakarta.faces.ViewState
|
|
7146
7201
|
* Enhancement partial page submit
|
|
7147
7202
|
*
|
|
7148
7203
|
*/
|
|
@@ -7271,6 +7326,7 @@ var XhrRequest = /** @class */ (function () {
|
|
|
7271
7326
|
}
|
|
7272
7327
|
XhrRequest.prototype.start = function () {
|
|
7273
7328
|
var _this = this;
|
|
7329
|
+
var _a;
|
|
7274
7330
|
var ignoreErr = failSaveExecute;
|
|
7275
7331
|
var xhrObject = this.xhrObject;
|
|
7276
7332
|
var executesArr = function () {
|
|
@@ -7278,7 +7334,7 @@ var XhrRequest = /** @class */ (function () {
|
|
|
7278
7334
|
};
|
|
7279
7335
|
try {
|
|
7280
7336
|
var formElement = this.sourceForm.getAsElem(0).value;
|
|
7281
|
-
var viewState = jsf.getViewState(formElement);
|
|
7337
|
+
var viewState = ((_a = window === null || window === void 0 ? void 0 : window.faces) !== null && _a !== void 0 ? _a : window === null || window === void 0 ? void 0 : window.jsf).getViewState(formElement);
|
|
7282
7338
|
//encoded we need to decode
|
|
7283
7339
|
//We generated a base representation of the current form
|
|
7284
7340
|
//in case someone has overloaded the viewstate with addtional decorators we merge
|
|
@@ -7402,14 +7458,14 @@ var XhrRequest = /** @class */ (function () {
|
|
|
7402
7458
|
reject();
|
|
7403
7459
|
};
|
|
7404
7460
|
XhrRequest.prototype.onSuccess = function (resolve) {
|
|
7405
|
-
var _a, _b;
|
|
7461
|
+
var _a, _b, _c;
|
|
7406
7462
|
this.sendEvent(Const_1.COMPLETE);
|
|
7407
7463
|
//malforms always result in empty response xml
|
|
7408
7464
|
if (!((_a = this === null || this === void 0 ? void 0 : this.xhrObject) === null || _a === void 0 ? void 0 : _a.responseXML)) {
|
|
7409
7465
|
this.handleMalFormedXML(resolve);
|
|
7410
7466
|
return;
|
|
7411
7467
|
}
|
|
7412
|
-
jsf.ajax.response(this.xhrObject, (
|
|
7468
|
+
((_b = window === null || window === void 0 ? void 0 : window.faces) !== null && _b !== void 0 ? _b : window.jsf).ajax.response(this.xhrObject, (_c = this.responseContext.value) !== null && _c !== void 0 ? _c : {});
|
|
7413
7469
|
};
|
|
7414
7470
|
XhrRequest.prototype.handleMalFormedXML = function (resolve) {
|
|
7415
7471
|
var _a;
|
|
@@ -7510,7 +7566,6 @@ exports.XhrRequest = XhrRequest;
|
|
|
7510
7566
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7511
7567
|
exports.oam = void 0;
|
|
7512
7568
|
var mona_dish_1 = __webpack_require__(/*! mona-dish */ "./node_modules/mona-dish/src/main/typescript/index_core.ts");
|
|
7513
|
-
//TODO add unit tests to check all this here that it works just as before
|
|
7514
7569
|
var oam;
|
|
7515
7570
|
(function (oam) {
|
|
7516
7571
|
/**
|
|
@@ -7626,15 +7681,50 @@ var oam;
|
|
|
7626
7681
|
/******/ }
|
|
7627
7682
|
/******/
|
|
7628
7683
|
/************************************************************************/
|
|
7629
|
-
|
|
7630
|
-
|
|
7631
|
-
|
|
7632
|
-
|
|
7633
|
-
|
|
7634
|
-
|
|
7635
|
-
|
|
7636
|
-
|
|
7637
|
-
|
|
7684
|
+
var __webpack_exports__ = {};
|
|
7685
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
7686
|
+
(() => {
|
|
7687
|
+
var exports = __webpack_exports__;
|
|
7688
|
+
/*!****************************************!*\
|
|
7689
|
+
!*** ./src/main/typescript/api/jsf.ts ***!
|
|
7690
|
+
\****************************************/
|
|
7691
|
+
|
|
7692
|
+
var _a;
|
|
7693
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7694
|
+
exports.jsf = void 0;
|
|
7695
|
+
/* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
7696
|
+
* contributor license agreements. See the NOTICE file distributed with
|
|
7697
|
+
* this work for additional information regarding copyright ownership.
|
|
7698
|
+
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
7699
|
+
* (the "License"); you may not use this file except in compliance with
|
|
7700
|
+
* the License. You may obtain a copy of the License at
|
|
7701
|
+
*
|
|
7702
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
7703
|
+
*
|
|
7704
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
7705
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
7706
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
7707
|
+
* See the License for the specific language governing permissions and
|
|
7708
|
+
* limitations under the License.
|
|
7709
|
+
*/
|
|
7710
|
+
var faces_1 = __webpack_require__(/*! ./faces */ "./src/main/typescript/api/faces.ts");
|
|
7711
|
+
var Const_1 = __webpack_require__(/*! ../impl/core/Const */ "./src/main/typescript/impl/core/Const.ts");
|
|
7712
|
+
/**
|
|
7713
|
+
* jsf.js back compatibility shim layer
|
|
7714
|
+
* the entire namespace for jsf and javax still is provided
|
|
7715
|
+
*/
|
|
7716
|
+
if (!window.jsf) {
|
|
7717
|
+
window['jsf'] = (_a = window === null || window === void 0 ? void 0 : window.jsf) !== null && _a !== void 0 ? _a : faces_1.faces;
|
|
7718
|
+
window.jsf.specversion = 230000;
|
|
7719
|
+
(0, Const_1.remapNamespacesFor23)();
|
|
7720
|
+
}
|
|
7721
|
+
exports.jsf = window.jsf;
|
|
7722
|
+
|
|
7723
|
+
})();
|
|
7724
|
+
|
|
7725
|
+
var __webpack_export_target__ = window;
|
|
7726
|
+
for(var i in __webpack_exports__) __webpack_export_target__[i] = __webpack_exports__[i];
|
|
7727
|
+
if(__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, "__esModule", { value: true });
|
|
7638
7728
|
/******/ })()
|
|
7639
7729
|
;
|
|
7640
7730
|
//# sourceMappingURL=jsf-development.js.map
|